Search Header Logo

IGCSE Quiz -- Focus on SQL, Programming, and Hardware

Authored by Marc Rios

Computers

10th Grade

Used 1+ times

IGCSE Quiz -- Focus on SQL, Programming, and Hardware
AI

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

To calculate the sum of numbers 1 to 5
To multiply numbers 1 to 5
To count from 1 to 5
To print numbers 1 to 5

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?

x = 10
SET x TO 10
x := 10
All of the above

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

Positive
Negative
3

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?

FOR...TO...NEXT
WHILE...DO...ENDWHILE
REPEAT...UNTIL
IF...THEN...ELSE

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 ___ 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?

To store duplicate records
To uniquely identify each record
To sort the database
To encrypt data

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'?

SELECT * FROM Students WHERE grade = 'A'
SELECT grade FROM Students WHERE 'A'
SELECT * FROM Students WHERE grade > 'A'
SELECT * FROM grade WHERE Students = '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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?