PPS 100104
PPS 100104
B. Tech (CSE/EEE) Semester – I 3. (A). Write syntax to initialize a character array of size 5. [1]
Session 2021-22 (B). WAP in C to take input a matrix along with its dimension and find its
transpose. [3]
Subject: Programming for
Time: 2 Hour 4. (A). Write the output of following statement: [1]
Problem Solving
#include <stdio.h>
Note: Each question carry equal marks.
1. Choose the correct answer in MCQ and fill in the blank with appropriate words. void main( ) {
[8 x 0.5 = 4]
A. The result of bitwise operation 15 & 12 will be:- fun(3);
i. 3 ii. 27
iii. 12 iv. 15 }
n--;
C. Choose the INVALID logical operator in C:-
i. || ii. ! fun(n);
iii. && iv. ^
printf("\n%d",n);
D. printf() function is defined in the header file
i. conio.h ii. stdio.h }
iii. string.h iv. math.h
}
E. Bhojpuri is a …………. level language.
F. do while loop is the example of ………… controlled loop.
G. Name of the array also represents ……………………….. 5. (A). WAP in C to swap value of two variables using function. [2]
H. Default value of a variable defined with auto storage class is …………
(B). WAP in C to perform bubble sort [2]
2. (A). Classify token in C programming. [2]