Programming in C'
Programming in C'
BSIT–C-102
B. Sc. (IT) (First Semester)
EXAMINATION, 2023-24
PROGRAMMING IN ‘C’
1
Time : 2 2 Hours
Maximum Marks : 60
Note : Attempt all questions.
Section—A
P. T. O.
[2] BSIT–C-102
(ii) Program
(iii) Code
(iv) Flowchart
(c) Define the function scanf is used to ...........
(CO1, BL-1)
(i) To take logical decisions
(ii) Input a set of values
(iii) Print a set of values
(iv) Do mathematical manipulations
(d) Evaluate the following expressions according to
operator precedence used in ‘C’ 10-3% 8+6/4 :
(CO1, BL-6)
(i) 10
(ii) 4
(iii) 8
(iv) 6
(e) Which of the following represents an empty
string ? (CO3, BL-1)
(i) 10
(ii) 0
(iii) Both (i) and (ii)
(iv) None of the above
[3] BSIT–C-102
P. T. O.
[4] BSIT–C-102
(ii) .exe
(iii) .out
(iv) .obj
(j) Choose the right method of initializing a 2D array
is : (CO3, BL-6)
(i) int abc [2] [2] = {1,2,3,4}
(ii) int abc [ ] [ ] = {1,2,3,4}
(iii) int abc [2] [ ] = {1,2,3,4}
(iv) All of the above
(k) The ‘C’ language is ............ (CO2, BL-5)
(i) Context free language
(ii) Regular language
(iii) Context sensitive language
(iv) None of the above
(l) Identify the function getch( ) belongs to which
header file ? (CO3, BL-3)
(i) stdio.h
(ii) conio.h
(iii) math.h
(iv) None of the above
[5] BSIT–C-102
P. T. O.
[6] BSIT–C-102
(CO5, BL-6)
BSIT–C-102 60
P. T. O.