Exam Details

Subject computer programming (ee)
Paper
Exam / Course b.tech
Department
Organization Government Degree College, Kamalpur
Position
Exam Date December, 2017
City, State tripura, dhalai


Question Paper

E E7254
Page 1 of 2
Total Pages: 2
Reg
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
THIRD SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2017
Course Code: EE207
Course Name: COMPUTER PROGRAMMING
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions, each carries 5 marks. Marks
1 Differentiate between machine language, assembly language and high level
languages? What is the difference between compiler and assembler?

2 Write a C program to find the LCM and HCF of any two numbers entered by
user.

3 Write a C program to reverse a string.
4 What are the 4 basic storage classes in
5 Differentiate between structure and union.
6 Write a C program to add two variables using pointers.
7 Explain how a new file is opened. What are the 3 modes while opening an
existing file.

8 Write a Python program to reverse a given integer.
PART B
Answer any two full questions, each carries 10 marks.
9 Explain any five kinds of operators in C.
Draw a flowchart to find the sum of digits of an integer.
10 If more than one kind of operator is present in an expression, explain the order of
precedence.

Write a C program to print the prime numbers between 101 and 500. Those
numbers whose sum of digits is 5 need not be printed. Use loop in the
program

11 Explain 'switch' and statements in C with the help of examples
Write a C program to print the following pattern using loop






PART C
Answer any two full questions, each carries 10 marks.
12 Explain how a 3 dimensional array is declared and initialised. How is a character
array different from a string

Write a C program to count the number of characters, words and lines in a text
13 Write a C program to find the product of two matrices
E E7254
Page 2 of 2
Explain the differences between pass by value and pass by reference with the
help of examples.

14 Explain recursive function with the help of an example program.
Write a program to print all prime numbers between any two numbers entered by
user, using functions.

PART D
Answer any two full questions, each carries 10 marks.
15 What is a pointer. How can you access a variable using chain of pointers?
Write a C program to sort an array using pointers.
16 Write a C program to store the name and roll numbers of 10 students using
structure. The name has to be then printed in the ascending order of roll numbers.

Explain the basic control statements in Python.
17 Write a C program to copy the contents of one file to another.
How can a random part in a file be accessed?



Subjects

  • analog electronic circuits (ee)
  • basics of electrical engineering
  • basics of mechanical engineering
  • circuits and networks (ee)
  • computer aided design and analysis (ma, me, mp, pe)
  • computer programming (ee)
  • dc machines and transformers (ee)
  • digital electronics and logic design (ee)
  • dynamics of machinery (me, mp, au, pe)
  • fluid mechanics and machinery
  • heat and mass transfer (ma, me, au)
  • machine design (pe)
  • machine tools and digital manufacturing (ie, me)
  • manufacturing technology
  • manufacturing technology (ie, me, ma)
  • material science (ee)
  • measurements and instrumentation (ee)
  • mechanics of machinery (me, mp, pe)
  • mechanics of solids (me,mp,ma,mt,au,pe,sf)
  • mechanics of solids(au, ma, me, mp, mt, pe, sf)
  • metallurgy and materials engineering(mc, mp, ma, me, pe)
  • metrology and instrumentation (me, mp, pe)
  • synchronous and induction machines (ee)