Q10Multiple correct5 Marks22 Dec 2024
Which of the following statements is/are true? It is a Multiple Select Question (MSQ).
The following pseudocode is executed using the "Library" dataset.
A = 0, B = 0, C = False
while(Table 1 has more rows){
Read the first row X in Table 1
if(X.Genre == "Fiction"){
A = A + 1
}
Move X to Table 2
}
while (Table 2 has more rows){
Read the first row X in Table 2
if(X.Genre != "Fiction" and X.Language == "English"){
B = B + 1
}
Move X to Table 1
}
if(A > B){
C = True
}
Topic Mapping: chapter: Week 2 │ topic: Selection — Conditional Execution │ subtopic: Using conditions inside iteration to filter and aggregate database counts
COMPUTATIONAL THINKING — END TERM QUIZ (PART-2)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MCQ — Single correct answer only. Selecting more than one answer will be treated as wrong.
MSQ — One or more answers may be correct. Partial marking may apply.
SA — Numerical or short text answer. Enter the exact value in the specified field.
Comprehension — Read the passage or pseudocode scenario carefully before attempting sub-parts. Sub-parts are grouped under their respective parent scenario.
For code-based questions — read every line of code carefully; differences between options may be a single operator or variable.
All math/logic equations are written in standard LaTeX format for precise rendering.
Ensure proper indentation structure in pseudocode. Outer blocks start at zero indentation.