Semester : SEMESTER 3
Subject : Computer Programming
Year : 2020
Term : SEPTEMBER
Scheme : 2015 Full Time
Course Code : EE 207
Page:2
11
12
13
14
15
16
17
b)
a)
b)
a)
b)
a)
b)
a)
b)
00000EE207121903
What is the difference between compiler and interpreter?
Write a C program to find the solution of a quadratic equation (real and distinct,
equal or complex roots) using switch construct. Draw the flow chart also.
PART C
Answer any two full questions, each carries 10 marks.
Write a C program to read ೩ matrix A and find the product A * A’ .
Discuss any two string handling function.
Write aC program to print first n Fibonacci numbers using recursive function.
Explain the differences between pass by value and pass by reference with the
help of example.
Write a C program to read the array elements and to sort them in ascending
order. Use functions to read, sort, and print the array.
PART D
Answer any two full questions, each carries 10 marks.
A student database stores following information about students in a class: Roll
number, name, gender and CGPA. Write a program to prepare a rank list based
on CGPA. Also prepare a list of students having CGPA less than 7.
What is the output of the program:
main()
{
int m[2]={ 100,200};
int a,b,c,*p=m;
a=*p;
b=*(p+l);
c=(*p+1);
printf("%d छत कत", a,b,c);
|
Write a program to read integer numbers from one file and then save into
another file.
Write a python program to check the largest among the three numbers.
Explain user defined functions in python with syntax. Write your own function
to print “Hello Python”.
Page 2 of 2
(4)
(10)
(8)
(2)
(5)
(5)
(10)
(10)
(5)
(5)
(4)
(6)