S.B. Roll
no. __________
COMPUTER PROGRAMMING USING C
Duration: 3
hrs
Section –A
1.
State
true or false
b.
‘C’
was primarily developed as a system programming language.
c.
‘C’
is a high level language with same low level features.
d.
‘if’
is a valid identifier in ‘C’
e.
‘%’
operator takes only integer operands.
f.
In
an expression involving ‘11’ operator, evaluation will be stopped if one of its
operands evaluates to true.
g.
If
n has the value of 3. Then the output of
the statement
Printf (“%d %d”, n++,
+=n”); is 3,5
h.
++
is a unary operator.
i.
While
passing an array as an actual argument, the function call must have the array
name alone.
j.
If
a two dimensional array is used as a formal parameter, then the first (row)
subscript may subscript may be left empty.
Section –B
Note :
Attempt any five questions
2.
a.
Explain
the use of if-else statement
b.
Differentiate
between flowchart and algorithm with example.
c.
Write
a program in ‘C’ language to swap two value.
d.
Differentiate
between call by value and call by reference.
e.
Differentiate
between structure and union with example.
f.
Write
a program in ‘C’ language to check whether the umber is prime or not.
g.
Compare
between arrays and pointers.
Section –C
3.
What
is the use of loop? Describe the syntax and purpose of while do while and for
loop using programming example.
Write a program to do the following :
a.
Program
debugging
b.
I/O
statements
c.
Array
of structures
0 comments:
Post a Comment
North India Campus