Skip to content

Structured Programming Lab

SWE · Final · Summer 25

Section 44-A · Batch 44

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.

Daffodil International University Faculty of Science & Information Technology Department of Software Engineering Final Lab Examination, Summer 2025 Course Code: SE 121; Course Title: Structured Programming Lab Sections: 44-A1, Set - B Time: 1:00 Hour Marks: 40 Task 1 (Filename: A1_SetB_StudentID_Task1.c): Write a C program that takes N real (float) numbers as input (where N ≤ 20). • Stores them in an array and prints the numbers in reverse order up to 2 (two) decimal places. • Prints the minimum value in the array along with its position (index) where it occurs. Task 2 (Filename: A1_SetB_StudentID_Task2.c): Write a C program that reads an NxN matrix (where N = 5), stores the matrix in a two dimentional array, and finally calculates the sum of the values in the last column. For example: | 0 | 1 | 2 | 3 | 4 0 | 1 | 2 | 3 | 4 | 5 1 | 6 | 7 | 8 | 9 | 10 2 | 11 | 12 | 13 | 14 | 15 3 | 16 | 17 | 18 | 19 | 20 4 | 21 | 22 | 23 | 24 | 25 The sum of the values in the last column is 75. Task 3 (Filename: A1_SetB_StudentID_Task3.c): Write a C program that reads a string (along with space in any position) from the user and prints the string in reverse order. Task 4 (Filename: A1_SetB_StudentID_Task4.c): Write a C program that: • Defines the following function: o int isPrime(int n) → returns 1 if n is prime, otherwise 0. • In the main function, takes 5 integers less than 100 as input. • For each integer: o If it is prime, prints "X is a prime number". Otherwise, prints that "X is not a prime number". Replace X with the actual number. Open a Microsoft Word file and insert all the screenshots of your solutions in this file. Then, save the file as Lab_Final_A1_StudentID.docx and upload this file on BLC (Section: Final Lab Exam) until your proctor is available in the lab. Bonus: Write an email (by 10 AM) to your course teacher (email: azamkhan.swe@diu.edu.bd) describing how you have done in this exam, along with the solution files to questions 1 to 4 as attachments. After sending the mail, remove the files you have prepared till now from the hard disk. ~ BEST LUCK ~