Roll No……………
Total No. of Questions:13]
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
Q1)
a) What
are keywords & Data type qualifiers in C ?
b) Differentiate between the arguments within the
scanf function & the printf function?
c) Explain
the Difference between L value and R
value .
d) Write briefly the areas of application of for statement .
e) Describe
life time and visibility features of static variable.
f) Give syntax of one
dimensional array.
g) How
will you convert the value of a
character into ASCII?
h) What happens
if an integer number is
subtracted and added to the pointer?
i) Differentiate
between the union
declaration and structure
declaration ?
j) What
are the structure tag and structure
template ?
k) Why
the parameters given within a function prototype are called “dummy” parameters.
l) Explain
the significance of subscript in an array?
m) List
all the input and output functions of an array.
n) Can
a pointer variable appear on the left side of an assignment operator?
o) What
are the restrictions on processing of enumerated data type?
Section
–B
Q2. How
comments in C program are given? Explain with an example. What is the purpose of comments?
Q3. Explain the application of print 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).
Q7. Write a program to calculate the total number
of elements of a multidimensional
array?
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 pointer to objects and pointers to arrays
of objects?
Q11. Explain the method of passing a
structure by value as an argument to a function
with an example of prototype function declaration and function call.
Q12. Write a C program to compute the size
of union.
Q13. Write a C program
to construct a pay bill structure of an employee in an organization.
0 comments:
Post a Comment
North India Campus