Semester : SEMESTER 3
Subject : Computer Programming
Year : 2018
Term : DECEMBER
Scheme : 2015 Full Time
Course Code : EE 207
Page:1
Reg No.:
R3965 Pages: 2
Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
THIRD SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2018
Course Code: EE207
Course Name: COMPUTER PROGRAMMING
Max. Marks: 100 Duration: 3 Hours
~ ७४ ൧൧. ~
10
11
PART A
Answer all questions, each carries 5 marks. Marks
What is a compiler? How does it differ from an interpreter? (5)
An electricity company charges people based on the number of units used. (5)
Input the number of units and calculate the bill amount and print using C program
No. of units Rate/amount
Up to 100 units Rs. 1.80/-unit
Otherwise Rs. 3.50/- extra per unit
Write a short note on array declaration and array initialization (5)
Write a C program to find factorial of given number using recursive function. (5)
Differentiate between structure and union with example. (5)
Write ೩ ಲೆ program to swap the values of two variables using pointer. (5)
Write a C program 10 read data from the keyboard, write it to a file, read the ( 5) same
data from the file and display on the screen.
Write a Python program to check whether a number is prime or not (5)
PART B
Answer any two full questions, each carries 10 marks.
a) Differentiate between ++ i and 1 ++ with the help of examples. (4 ) 9) Explain
different data types in C with examples. (6)
Write ೩ C program to print prime numbers up to 14. Draw flow chart also. (10)
To initiate a group activity, a teacher decided to group the whole class of (10) strength 60
into 6 groups according to the following rule
Reminder (R)
Page 1 of 2
R3965 Pages: 2