0% found this document useful (0 votes)
15 views1 page

Pps 4

The document outlines a mid-semester test for B. Tech students in Programming for Problem Solving, covering various topics including operators, flowcharts, and C programming syntax. It includes multiple-choice questions, programming tasks, and specific coding outputs to be determined. The test is structured to assess students' understanding of fundamental programming concepts and their application.

Uploaded by

kritikishan33
Copyright
© © All Rights Reserved
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)
15 views1 page

Pps 4

The document outlines a mid-semester test for B. Tech students in Programming for Problem Solving, covering various topics including operators, flowcharts, and C programming syntax. It includes multiple-choice questions, programming tasks, and specific coding outputs to be determined. The test is structured to assess students' understanding of fundamental programming concepts and their application.

Uploaded by

kritikishan33
Copyright
© © All Rights Reserved
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
You are on page 1/ 1

SERSHAH ENGINEERING, SASARAM

2. (A). Discuss increment and decrement operator with example.


Mid Semester Test
B. Tech (CSE/EEE) Semester – I [2]
Session 2022-23
(B). Draw a flowchart to find the factorial of a number.
Subject: Programming for [2]
Time: 2 Hour
Problem Solving
(B). printf(“%d”, “5”); will print ………..
Course Code: 100104 Full Marks: 20
[1]

Note: Each question carries equal marks. 3. (A). Write the output of following statement: [3]
1. Choose the correct answer in MCQ and fill in the blank with appropriate words.
[10 x 0.5 = 5] #include <stdio.h> void fun(int n){
A. The result of bitwise operation 45 | 28 will be:- void main( ) { while(n){
i. 45 ii. 61
iii. 28 iv. 32 fun(3); n--;
B. The INVALID syntax to declare a variable is } fun(n);
i. int Int; ii. char Char;
iii. double double; iv. float floaT; printf("\n%d",n);

C. Choose the VALID relational operator in C:- }


i. || ii. >>
}
iii. != iv. !

D. gets() function is defined in the header file


i. conio.h ii. stdio.h (B). WAP in C to take input a matrix along with its dimension and find its
iii. string.h iv. math.h
E. The result of operation 2 && -2 will be:- transpose. [2]
i. 0 ii. 1
4. (A). Write the output of following statement: [1]
iii. 2 iv. -2
printf(“%d”,-2023>>5);
F. To declare a pointer variable we put …… symbol before variable name.
G. The …………character is appended at the end of every string variable. (B). WAP to print all the prime number below 1000 and count them using
H. for is …………………type of token function. [4]
I. The largest index of an array element of size 100 is ………….
J. Most significant bit of a negative integer is ………….

You might also like