Professional Documents
Culture Documents
J-3840[S-8038] [2037]
B.Sc. (IT)
PROG. IN C (B.Sc. (IT) - 102)
Time : 03 Hours Maximum Marks : 75
Instruction to Candidates:
1) Section - A is compulsory.
2) Attempt any Nine questions from Section - B.
Section - A
P.T.O.
Section - B
(9 x 5 = 45)
Q2) How comments in C program are given? Explain with an example. What is
the purpose of comments?
Q3) Explain the application of the printf function in displaying float and double
types data with example.
Q4) Explain the difference between the operation of ceiling function and the
floor function with examples.
Q5) What is a conditional operator? Give its syntax and application with an
example. Why the expressions in the conditional operator are called ternary?
Q6) Write a function digit to find all numbers between 10 & 1000 which behave
in the following way: Number 12; square 144; reverse 21 ; square 441(which
is reverse of 144).
Q8) Write a function trace to sum the diagonal elements of a square matrix.
Q9) Write a function readalpha, sortalpha & printalpha to read, sort and print
respectively words in an ascending order.
Q10) What is the difference between an array of pointers to objects and pointers
to arrays of objects?
!!!!!
J-3840[S-8038] -2-