Exam Details
| Subject | computer programming (ee) | |
| Paper | ||
| Exam / Course | b.tech | |
| Department | ||
| Organization | Government Degree College, Kamalpur | |
| Position | ||
| Exam Date | April, 2018 | |
| City, State | tripura, dhalai |
Question Paper
E E3843 Pages: 2
Page 1 of 2
Reg
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
THIRD SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018
Course Code: EE207
Course Name: COMPUTER PROGRAMMING
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions, each carries 5 marks Marks
1 What are the advantages of High Level languages? How a high-level language is
converted to Machine language?
2 With suitable example differentiate between while and do....while statements.
3 Write a program to read an array of integers and search for the occurrence of a
given value.
4 What is recursion? Write a recursive function to find factorial of a number
5 Which arithmetic operations are possible with pointers? Illustrate with suitable
example.
6 Define and explain a structure to store Roll no, Name, marks for three subjects of a
group of 25 students. Write a program to read the data and print the same as a table.
7 How is a file pointer declared? What are the different modes of opening a file?
Explain with one simple example.
8 Differentiate between for and while loops in Python with examples.
PART B
Answer any two full questions, each carries 10 marks
9 Write an algorithm and draw flow chart for finding the Average mark for one
subject in a class of 50 students.
10 Which are the basic data types in C language? How much memory is allocated for
each?
Write a program to swap two numbers without third variable.
11 Find the reverse of a number using loop statement.
Write a program to print first 10 numbers of Fibonacci series.
PART C
Answer any two full questions, each carries 10 marks
12 What are the differences between Auto and Extern variables? Explain with
example.
Write a program for multiplication of two matrices.
13 Write a program to reverse a string without using string function.
With suitable example, explain any three string manipulating functions in header
file 'string.h'.
14 Differentiate between 'register' and 'static' storage classes with examples.
Write a program to prepare a rank list based on marks for five subjects, using three
separate functions to read the marks, prepare rank list and print the same.
E E3843 Pages: 2
Page 2 of 2
PART D
Answer any two full questions, each carries 10 marks
15 With an example each, state the differences between structure and union.
Write a C program using pointers to sort an array of integers by calling a function.
16 Distinguish between address stored in the pointer and value in that address. How
does one pointer point to another pointer? Explain with examples.
Write a C program to store Roll No, Name and Marks for five subjects of class of
50 students to a file named "Student_data". Based on the data read from this file,
prepare a rank list and write into another file "Rank_list".
17 Enumerate any three major differences between C and Python.
Write a program to add and subtract two matrices using Python.
.
Page 1 of 2
Reg
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
THIRD SEMESTER B.TECH DEGREE EXAMINATION, APRIL 2018
Course Code: EE207
Course Name: COMPUTER PROGRAMMING
Max. Marks: 100 Duration: 3 Hours
PART A
Answer all questions, each carries 5 marks Marks
1 What are the advantages of High Level languages? How a high-level language is
converted to Machine language?
2 With suitable example differentiate between while and do....while statements.
3 Write a program to read an array of integers and search for the occurrence of a
given value.
4 What is recursion? Write a recursive function to find factorial of a number
5 Which arithmetic operations are possible with pointers? Illustrate with suitable
example.
6 Define and explain a structure to store Roll no, Name, marks for three subjects of a
group of 25 students. Write a program to read the data and print the same as a table.
7 How is a file pointer declared? What are the different modes of opening a file?
Explain with one simple example.
8 Differentiate between for and while loops in Python with examples.
PART B
Answer any two full questions, each carries 10 marks
9 Write an algorithm and draw flow chart for finding the Average mark for one
subject in a class of 50 students.
10 Which are the basic data types in C language? How much memory is allocated for
each?
Write a program to swap two numbers without third variable.
11 Find the reverse of a number using loop statement.
Write a program to print first 10 numbers of Fibonacci series.
PART C
Answer any two full questions, each carries 10 marks
12 What are the differences between Auto and Extern variables? Explain with
example.
Write a program for multiplication of two matrices.
13 Write a program to reverse a string without using string function.
With suitable example, explain any three string manipulating functions in header
file 'string.h'.
14 Differentiate between 'register' and 'static' storage classes with examples.
Write a program to prepare a rank list based on marks for five subjects, using three
separate functions to read the marks, prepare rank list and print the same.
E E3843 Pages: 2
Page 2 of 2
PART D
Answer any two full questions, each carries 10 marks
15 With an example each, state the differences between structure and union.
Write a C program using pointers to sort an array of integers by calling a function.
16 Distinguish between address stored in the pointer and value in that address. How
does one pointer point to another pointer? Explain with examples.
Write a C program to store Roll No, Name and Marks for five subjects of class of
50 students to a file named "Student_data". Based on the data read from this file,
prepare a rank list and write into another file "Rank_list".
17 Enumerate any three major differences between C and Python.
Write a program to add and subtract two matrices using Python.
.
Other Question Papers
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)