B.SC(IT),
2014
PROGRAMMING
IN C
PAPER
CODE: BS 105
PAPER
ID:[B0403]
NOTE: Section A is
compulsory. Attempt any four questions from Section-B.
Time: 3 Hrs. Max.
Marks: 60
SECTION-A
Q1. Answer in brief:
(a)
What is the difference between a variable and a constant?
(b)
What is conditional operator?
(c)
What is the use of the comma operator in for loop?
(d)
What is the difference between break and continue statements?
(e)
What is a pointer?
(f)
What are difference modes in which a file may be opened?
(g)
Why should we not use goto statement in our program?
(h)
Why is C known a middle level language?
(i)
What is the difference between global and local variables?
(j)
What are symbolic constants? Why are they used?
SECTION-B
Q2. Discuss
different operators available in C? What is hierarchy of all operators?
Q3.
(a) What are different forms of if-else used in C language. Discuss.
(b)Write
a program to convert a decimal number to its binary equivalent.
Q4. Compare
recursion with iteration. Also write a program using recursion to find the GCD of two numbers.
Q5.
Differentiate between a structure and a union. Explain in detail using suitable example program for each.
Q6. Write
a program to sort an array using bubble sort method. Also explain using a suitable example.
Q7. What
is function? Write a program to swap the values of two variables using a function.
0 comments:
Post a Comment
North India Campus