0% found this document useful (0 votes)
123 views2 pages

B.Sc. C Programming Exam Questions

This document contains an exam for a Programming in C course. It has two sections. Section A contains 15 multiple choice questions worth 2 marks each about C programming concepts like operators, data types, control statements, arrays, structures, files and functions. Section B contains 9 questions worth 5 marks each requiring written explanations or code examples about topics like inline functions, arrays, pointers, stacks, files, operators, structures, dynamic arrays and strings. The exam is worth a total of 75 marks and students are instructed to attempt all of Section A and any 9 questions from Section B.

Uploaded by

api-3782519
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
123 views2 pages

B.Sc. C Programming Exam Questions

This document contains an exam for a Programming in C course. It has two sections. Section A contains 15 multiple choice questions worth 2 marks each about C programming concepts like operators, data types, control statements, arrays, structures, files and functions. Section B contains 9 questions worth 5 marks each requiring written explanations or code examples about topics like inline functions, arrays, pointers, stacks, files, operators, structures, dynamic arrays and strings. The exam is worth a total of 75 marks and students are instructed to attempt all of Section A and any 9 questions from Section B.

Uploaded by

api-3782519
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Roll No. ......................

Total No. of Questions : 13] [Total No. of Pages : 02

J-3547[S-1403] [2037]
B.Sc.(CST) (Semester - 1st)
PROGRAMMING IN C (B.Sc.(CST)-104)

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) (15 x 2 = 30)
a) How many relational and logical operator are available in C?
b) What do understand by the term data type?
c) Explain the break statement and what is the use of it?
d) Explain continue statement and go to statement?
e) Define the difference between nested if and switch structure?
f) Explain the concept of pass by reference?
g) Define the difference between static variable and automatic variable?
h) Explain the array initialization?
i) How the data elements of a structure are accessed?
j) Explain the anonymous union?
k) Write the syntax of a structure?
l) Explain the header file and why this is needed?
m) How we can read and write the string in C?
n) Explain the different I/O operations on file?
o) Write the syntax to declare a function?

P.T.O.
Section - B
(9 x 5 = 45)
Q2) What is the inline function explain with example?

Q3) How the two-dimensional array pass to a function?

Q4) Explain the relation between array and pointer?

Q5) Implement stack in C by using array?

Q6) Explain the different file mode?

Q7) How we can open and close a file in C?

Q8) Explain the use of ternary operator?

Q9) Explain the hierarchy of operators?

Q10)Write a program which initialize a structure and then copy that to another?

Q11)Write a program that creates one-dimensional array dynamically?

Q12)Explain the different types of qualifiers used with basic data types?

Q13)Explain the string handling function?

ÑÑÑ

J-3547[S-1403] 2

You might also like