Roll No……….
Total No. of Questions: 13
Paper ID
[A0302]
B.Sc.
(IT/DCA) (102/103) (S05) (Old/New) (Semester.-1st)
PROGRAMMING
IN WITH C
Time: 3 Hrs. Max.
Marks: 75
Instruction to Candidates:
1. Section-A is Compulsory.
2. Attempt any Nine questions from Section-B.
SECTION-A
Q1.
(a)
What is procedure oriented programming?
(b)
Differentiate between bitwise left shift and bitwise right shift operator.
(c)
How is explicit conversion done? Give examples?
(d)
What is the significance of gets and puts function?
(e)
How is source program converted to executable program in C?
(f) What is the significance of ‘\v’ and ‘\b’ escape sequences? Give example.
(f) What is the significance of ‘\v’ and ‘\b’ escape sequences? Give example.
(g)
What is the difference between switch and if else statements in C?
(h)
What are the limitations of an ordinary variable? How are these removed with the
use of an array?
(i)
How does strcmp function in different cases in terms of the value returned?
(j)
How can time delay loops be written in C? Give examples.
(k)
What are the uses of function?
(l)
What is the relationship between two dimensional array and pointers?
(m)
What is the significance of calloc function in C?
(n)
State limitations of union.
(o)
What are the advantages and disadvantages of recursion?
SECTION-B
Q2. Explain the working principle of prefix and
postfix operators with examples.
Q3. Discuss the basic data types in C?
Q4. Explain briefly the following:-
(a) Tokens (b) Identifiers (c) Constants
Q5. Write the algorithm and draw the flow chart
to find roots of a quadratic equation.
Q6. Compare various loops available in C?
Q7. Write a program in C to reverse an integer
number entered by the user.
Q8. Explain briefly various string operations
which can be performed using built-in
function in C.
Q9. Write a program to multiply two 2-D arrays.
Q10. Compare recursion with iteration.
Q11. Explain with the help of examples pointer
arithmetic.
Q12. Explain differences between structure and
union with example.
Q13. Explain with example the relationship of two
dimensional arrays with pointers.
0 comments:
Post a Comment
North India Campus