Structured Programming
SWE · Quiz · Spring 26
Paper 1 of 6By Arpita Akter ShampaSwitch
Paper 1 of 6
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
1. Select (check) the appropriate variable names from the followings: 05
short | short_num | num_#1 | 01_student | register | my name
ValolageNa | union | human223 | _01Pagol | auto | Pagol_01
2. Write the change of values in each step and the output at the end. 06
#include <stdio.h>
int main() {
int a=5, b=2, c, d, e, f, g, h;
c = a++;
d = --b;
e = (a>b) && (b>a);
printf("%d\n", a);
printf("%d\n", b);
printf("%d\n", c);
printf("%d\n", d);
printf("%d\n", e);
return 0;
}
3. Write the output of the following operation with calculations. 04
if a=15 and b= 3, then ( a<<b ) = ?