Semester : SEMESTER 3
Subject : Computer Programming
Year : 2017
Term : DECEMBER
Scheme : 2015 Full Time
Course Code : EE 207
Page:2
14
15
16
17
b)
a)
E7254
Explain the differences between pass by value and pass by reference with the
help of examples.
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.
What is a pointer. How can you access a variable using chain of pointers?
Write a C program to sort an array using pointers.
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.
Write a C program to copy the contents of one file to another.
How can arandom part in a file be accessed?
اد ೫ ೫ ೫
Page 2 of 2
(5)
(5)
(5)
(5)
(5)
(5)
(5)
(5)
(5)