Semester : SEMESTER 3
Subject : Computer Programming
Year : 2020
Term : DECEMBER
Scheme : 2015 Full Time
Course Code : EE 207
Page:2
12
13
14
15
16
17
b)
a)
b)
a)
a)
b)
a)
b)
a)
b)
a)
b)
00000EE207121902
Write a C program to input code (1/2/3).Read a number and print the result
based on the input option. Use if-elseif ladder
1, check if the no is ೦೮6/0೪೦0
2. check if the no is positive / negative
3) check if it is divisible by 5.
PART ட
Answer any two full questions, each carries 10 marks.
With suitable example, explain terms: i) Function definition, ii) Function
prototype, iii) Formal argument vii) Actual argument
Explain any four string handling functions in C with examples.
What is meant by storage class specifier? Explain the 4 basic storage classes in
C with examples.
Write a C program to find the product of two matrices.
Develop a C program to sort given n names in alphabetic order?
PART 0
Answer any two full questions, each carries 10 marks.
Define a structure to store the complex number. Using this structure write a
program to add and subtract two complex numbers.
Explain the basic control statements in Python.
What is a pointer? Why they are used? How can you access a variable using
chain of pointers?
Write a C program to sort an array of integers using pointers.
How is a file pointer declared? What are the different modes of opening a file?
Explain with one simple example.
Write 8 C program to copy the contents of one file to another.
Page 2 of 2
(5)
(6)
(4)
(10)
(5)
(5)
(5)
(5)
(5)
(5)
(5)
(5)