ROLL
No………
B.Sc.(IT)(Sem._1st
)
PROGRAMMING IN C
Subject
Code:BS---105
Paper ID:[B0403]
Time
:3Hrs. Max
.Marks :60
INSTRUCTION TO CANDIDATES:
1. SECTION—A
is COMPULSORY consisting of TEN questions carrying TWO marks each.
2. SECTION---B
contains SIX questions carrying TEN
marks each and students has to
attempt any FOUR questions.
SECTION—A
1. Write
brifly :
(a)Write are keyword and data type qualifiers?
(b)What are the area of applications
of for statement ?
(c) Give memory representation of a two dimensional
array.
(d)Differentiate
between a structure and aunion.
(e)Can a pointer variable appear on the left hand
side of an assignment operator ?
(f)Describe
the scope and visibility of a
variable .
(g) How will you
convert value of a character
into ASCII?
(h)What are
the restrictions on processing of
enumerated data types?
(i)What are different modes in which a file may
be opened ?
(j)Write
the difference
between signed and
unsigned data types?
SECTION---B
2. (a)Explain the working
of scanf() and printf() functions.
(b)Draw
a flowchart to find the largest of five numbers.
3. (a)What are preprocessor directives?What
is their role in a C program?
(b)How is pointer to an array created and used in C program? Explain with example.
4. (a) Exaplain the various storage classes available in C.
b)Write a program to find the
factorial of a number using recursion.
5.
List various types of operators available in C
language with their use.Give the
precedence of operators according to hierarchy.
6. Write a
program that read two matrices
and prints the product of these
matrices.
7. Write a C program that accepts name of a file
to be created and list
of names of students of a class from the user and
writes into file. The exact number
of students is not know.
0 comments:
Post a Comment
North India Campus