Skip to content

Structured Programming

SWE · Quiz · Fall 26

Section B · Batch 48

This browser can’t show the PDF here

Open it, and your phone’s PDF viewer takes it, or download it.

Read the questions as text

Read off the PDF by AI, so it may have mistakes. The PDF is the original.

Class Test- Section: SET: A Course Title: Structured Programming Course code: SE 121 Department of Software Engineering, Daffodil International University NB: Write your answer on this page only, you can rough on the other side. 1. Select (√) the inappropriate variable names from the following: 05 short | short_num | num_#1 | 01_student | register | my name StudentOne | union | human223 | _01Pagol | auto | Pagol_01 2. Write the change of values in each step and the output at the end. 07 #include <stdio.h> int main() { int a=5, b=2,c,d,e,f,g,h; c = a++; d = --b; e = a; f = b--; g = (a+b); g = g--; printf("%d\n", a); printf("%d\n", b); printf("%d\n", c); printf("%d\n", d); printf("%d\n", e); printf("%d\n", f); printf("%d\n", g); return 0; } 3. Write the output of the following operation with explanation. 03 if a=25 and b= 3, (a >> b) = ? Class Test- Section: SET: B Course Title: Structured Programming Course code: SE 121 Department of Software Engineering, Daffodil International University NB: Write your answer on this page only, you can rough on the other side. 1. Select (√) the appropriate variable names from the following: 05 short | short_num | num_#1 | 01_student | register | my name StudentOne | union | human223 | _01Pagol | auto | Pagol_01 2. Write the change of values in each step and the output at the end. 07 #include <stdio.h> int main() { int a=5, b=2,c,d,e,f,g,h; c = a++; d = --b; e = a; f = b--; g = (a+b); g = g--; printf("%d\n", a); printf("%d\n", b); printf("%d\n", c); printf("%d\n", d); printf("%d\n", e); printf("%d\n", f); printf("%d\n", g); return 0; } 3. Write the output of the following operation with explanation. 03 if a=25 and b= 3, (a << b) = ?