My Tute ยท Level 7 / 8 ICT

EOU Assessment: 1.4 Conditional Statements in Text-Based Programming (Python)

Subject: Information Communication Technology

End-of-Unit Diagnostic & Formative Assessment

Student Details

Section A: Fill in the Blanks

Instructions: Read each statement carefully. Select the most appropriate term from the Word Bank to complete each blank.

Word Bank: Colon • elif • else • Indentation • Relational • Selection

Section B: Multiple Choice Questions

Instructions: Choose the single best option (A, B, C, or D) for each question.

value = 10 if value < 10: print('Tortoise') else: print('Hamster')
data1 = 'yes' data2 = 'no' total = 0 if data1 == 'no': total = 10 elif data2 == 'no': total = 20 print(total)
age = 15 type = 'Drama' if age >= 18 and type == 'Drama': print('The Brockhurst Diaries') elif age >= 15 and type == 'Drama': print('The Day You Arrived') elif type == 'Drama': print('Potato Pie')
if mins == 0: print('On the hour') elif mins >= 20 and mins <= 40: print('Half past') elif mins >= 10: print('Quarter past')

Section C: One-Word Answers

Instructions: Write the exact single technical term that accurately answers each prompt.

Section D: Match the Following

Instructions: Drag the correct description or result from the pool on the right into the corresponding item on the left.

Drop description here
Drop description here
Drop description here

Descriptions Bank

A. Checks if two values are completely different / unequal.
B. Keyword must be written in lowercase (if).
C. Executes if guess contains anything other than 'red'.

Section E: Arrange in Proper Sequence

Instructions: Reorder the following jumbled steps into their correct logical sequence by writing the numbers (1 to 4) in the boxes provided.

If the first condition is False, Python evaluates the next elif condition in order.
If all if and elif conditions evaluate to False, the final else: block runs.
Python evaluates the initial if condition expression at the top.
As soon as any condition evaluates to True, its indented code runs and Python exits the conditional structure.
Identify the code that should execute only when the condition is False (the else: block).
Decide on the condition question (using logical operators) that evaluates strictly to True or False.
Type the if condition: header with a trailing colon and indent the True action block.
Identify the code that should execute only when the condition is True.

Section F: True or False

Instructions: State whether each statement is TRUE or FALSE. For every FALSE statement, write a 1-sentence correction in the space provided.

Section G: List Any Three / List Any Two

Instructions: Provide clear, concise bullet-point answers based on your programming lessons.