Structured Programming
SWE · Quiz · Summer 26
Paper 1 of 2Section 47-E · Batch 47 · Md. Raisul Islam (1)Switch
Section 47-E · Batch 47
Paper 1 of 2
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Daffodil International University
B.Sc. in Software Engineering
Faculty of Science and Information Technology
Class Test - 3, Summer 2026
Course Code: SE 121; Course Title: Structured Programming
Time: 30 Mins | Section: E | Teacher: MR | Marks: 15
1 | Construct a C program that accepts N integers from the user and stores them in an array. Calculate the sum of all even elements and the sum of all odd elements separately. Print the sum of the even elements and the sum of the odd elements separately. | [Marks - 5]
2 | Construct a C program that accepts a string containing spaces from the user and determines its length without using any built-in string function. Display the total number of characters in the string, including spaces. | [Marks - 5]
3 | Construct a C program that accepts a string containing words separated by single spaces from the user. Determine and display the total number of words in the string. | [Marks - 5]