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
Instruction to Candidates:
1. Section-A is Compulsory.
2. Attempt any Four questions from Section-B.
SECTION-A
1. Answer the following:
(a) Why C is called
a middle level language?
(b) What is the use
of main in every C program?
(c) What is a void
data type?
(d) What is the
difference between a variable and a constant?
(e) Where should we
use a go to statement?
(f) What is the
difference between a character and a
string in C?
(g) What do you mean
by function prototype?
(h) Define
recursion. What is its use?
(i) What is a random
access file?
(j) What is a
pointer? What is its use?
SECTION-B
2. Explain
different data types available in C detail with example of each.
3.
Write a program in C to find the sum of digits of a 5 digit integer number.
4. What
are different decision control statement in C? Give syntax and example of each.
5. Explain
different string handling functions of C with an example.
6.
(a) How is a two dimensional array stored in memory?
(b)
Write a program to find the factorial of a number using recursion?
7. Differentiate
between pass by value and pass by address. Write a program to swap the values of two numbers using both
methods.
0 comments:
Post a Comment
North India Campus