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

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

10th Grade

50 Qs

quiz-placeholder

Similar activities

LATIHAN SOAL PROGDAS

LATIHAN SOAL PROGDAS

10th Grade

45 Qs

Quiz on SDGs, Entrepreneurship, and Python

Quiz on SDGs, Entrepreneurship, and Python

10th Grade - University

50 Qs

PENILAIAN I / ANALISIS DATA

PENILAIAN I / ANALISIS DATA

9th - 12th Grade

50 Qs

Y10 Python Pseudocode and Flowcharts

Y10 Python Pseudocode and Flowcharts

8th - 10th Grade

50 Qs

Ripasso hardware del computer

Ripasso hardware del computer

10th Grade

49 Qs

Year 9 Mid-Term Assessment

Year 9 Mid-Term Assessment

10th Grade

45 Qs

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

Ulangkaji ASK Ting 2 Bab 3.1 Persekitaran Kod Arahan

1st - 12th Grade

52 Qs

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

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

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Marc Rios

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?