Skip to content

Structured Programming

ITM · Midterm · Spring 25

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 Information Technology & Management Mid-Term Examination, Spring 2025 Course Code: ITM121; Course Title: Structured Programming Sections & Teachers: All Time: 1:30 Hrs Marks: 25 Answer ALL Questions [The figures in the right margin indicate the full marks and corresponding course outcomes. All portions of each question must be answered sequentially.] 1. a) Differentiate between keyword and identifier. | [Marks-2] | CO-1 Level-2 1. b) State the rules for variable naming in C. | [Marks-3] 2. a) Define with example: Relational operator, logical operator. | [Marks-2] | CO-1 Level-1 2. b) Write down the rules for using switch cases. | [Marks-3] 3. a) A cinema allows ticket booking based on age: • Below 5 years → "Free Entry" • 5 to 12 years → "Child Ticket" • 13 to 60 years → "Adult Ticket" • Above 60 years → "Senior Citizen Discount Applied" Now construct a solution in C to implement the given scenario. | [Marks-5] | CO-2 Level-3 4. a) Construct a solution in C to calculate the LCM of 2 numbers given by the user. Use a while loop in the implementation. | [Marks-5] | CO-2 Level-3 4. b) Construct a solution in C to determine whether a given number is prime or not. | [Marks-5]