Programming and Problem Solving
CSE · Quiz · Spring 26
Paper 5 of 6Section 70_L · Dewan Naim Islam (1)Switch
Section 70_L
Paper 5 of 6
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Daffodil International University
Course Code: CSE113 | Course Title: Programming & Problem Solving
Section: 70_1 | Time: 30 Minutes | Marks: 15
Quiz - 1
1. Check the following code and find out the proper syntax errors with appropriate reasoning. [5]
[Figure: C programming code block showing a main function with syntax errors in printf statements, missing ampersand in scanf, and nested if-else structures.]
2. Assume a bank evaluates loan applications using a simple decision process. The program first [5] checks whether the applicant's monthly income is at least 40,000 taka; if it is, it then checks whether the applicant's credit score is 700 or above. Applicants who meet both requirements are approved for the loan, while others are rejected with the appropriate reason. You are required to draw a flowchart representing this decision-making process in a clear and organized manner.
3. Assume Mr. Kakon has 8,753 taka in his bank account. When he enters a withdrawal amount, [5] the program first checks whether the requested amount exceeds the available balance. If it does, an "Insufficent Balance" message is displayed. If the amount is within the available funds, the program then checks whether the amount is a valid multiple of 500. If this condition is not met, an "Invalid Denomination" message is shown. Only when both conditions are satisfied does the program approve the withdrawal and complete the transaction.