Roll No………
Total No. of
Questions: 07
B.Sc(IT)
(Sem.-1st )
PROGRAMMING
IN C
Subject
Code: BS-105
Paper
ID: B0403
Time: 3 Hrs. Max.
Marks: 60
INSTRUCTIONS TO CANDIDATES:-
a) Section- A is
Compulsory.
b) Attempt any four
questions from Section-B
SECTION-A
Q1. Discuss the Following:
a)
How will you declare and initialize a variable.
b)
What is the use of typedef in c.
c)
The c
language consists of …………. Number of keywords.
d)
What is an expression? How is an expression differing from variables.
e)
What are the rules to declare one dimensional array.
f)
What is command line argument.
g)
Write a small code for do-while loop.
h)
What is Syntax and Logical Error.
i)
What is recursive function.
j)
Give the syntax for opening File and closing a file.
SACTION- B
Q2. (a) Explain in brief structure of C
programming.
(b)
What do you mean by Compiler and interpreter.
Q3. (a) Explain switch statement with its syntax
and example.
(b)
Write a program to display the first n terms of the Fibonacci series.
Q4.
(a) What are functions. Explain call by
value and call by reference with examples.
(b)
Can an array be used as an argument ot a function? If yes, explain with
examples.
Q5. Define String. Explain string functions with
suitable example.
Q6. Write a C Program to sort an array in
ascending order.
Q7.
(a) How is a pointer variable declared.
What is the purpose of the data type includes in the declaration.
(b)
Write a short note on File Handling. List any File mode in C.
0 comments:
Post a Comment
North India Campus