Structured Programming
SWE · Quiz · Spring 25
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Class Test-01
ID:
Section:
Spring 2025
Course Title: Structured Programming
Course code: SE 121
Department of Software Engineering, Daffodil International University
1. Select (v) 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;
}
Output:
3. Write the output of the following operation with calculations. 04
if a=25 and b= 15, then (a & b) && (a>b) = ?