Professional Documents
Culture Documents
PPS 100204 CE N ME Sem 2 Session 2021-22
PPS 100204 CE N ME Sem 2 Session 2021-22
[2]
Mid Semester Test
(B). Draw a flowchart to find the smallest number among 3
B. Tech (CE/ME) Semester – II numbers. [2]
Session 2021-22
3. (A). Write the output of following statement: [1]
Subject: Programming for Problem Solving Time: 2 Hrs
Course Code: 100204 Full Marks: 20 int main( )
___________________________________________________
{
Note: Each question carries equal marks.
int a=50;
1. Choose the correct answer in MCQ and fill in the blank with
appropriate words. [8 x 0.5 = 4] printf(“%c”,a);
A. The result of bitwise operation 40 | 25 will be:-
i. 25 ii. 40 iii. 57 iv. 65 return 0;
E. Inside the parentheses of the for(initial value; (B). WAP in C to take input JEE score of N students and find the
condition; incrementation/decrementation) JEE score of Rank1 and Rank2. [3]
loop the number of mandatory statements among the
above 3 is …………………. 5. (A). WAP in C to print following histogram. [2]
(B). WAP in C to take input JEE score of N students and find the E. Inside the parentheses of the for(initial value;
JEE score of Rank1 and Rank2. [3] condition; incrementation/decrementation)
loop, the number of mandatory statements among the
5. (A). WAP in C to print following histogram. [2] above 3 is ………………….