
IGCSE Quiz -- Focus on SQL, Programming, and Hardware
Authored by Marc Rios
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the following pseudocode:
SET Total = 0
FOR i = 1 TO 5
SET Total = Total + i
NEXT i
Answer explanation
This pseudocode initializes Total to 0 and uses a FOR loop to add each number from 1 to 5 to Total, resulting in 15.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which pseudocode statement assigns the value 10 to a variable named x?
Answer explanation
In pseudocode, assignment can be written in various forms depending on the convention, but all these options correctly assign 10 to x.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be for this pseudocode: SET x = 3 IF x > 0 THEN OUTPUT 'Positive' ELSE OUTPUT 'Negative' ENDIF
Answer explanation
Since x is 3, which is greater than 0, the IF condition is true, and 'Positive' is output.
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of these are valid pseudocode loop structures?
Answer explanation
FOR, WHILE, and REPEAT are all valid loop structures in pseudocode, while IF is a conditional statement.
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Complete this pseudocode to output numbers 1 to 10: FOR i = 1 TO (a) OUTPUT i NEXT i
Answer explanation
The FOR loop needs a start value of 1 and an end value of 10 to output numbers 1 to 10.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a primary key in a database?
Answer explanation
A primary key ensures each record in a table is uniquely identifiable.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL query selects all students from a table named 'Students' where the grade is 'A'?
Answer explanation
The correct syntax uses SELECT * to retrieve all columns, FROM specifies the table, and WHERE filters by grade = 'A'.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?