Font size
WorksheetsGCSE Computer Science Paper 2: Topic 2.1
Total questions: 1
Worksheet time: 13mins
1-10.
Answer the questions below after watching the video
What data type is used to represent fractional numbers in programming?
String
Integer
Boolean
Float
What operator is used to perform exponentiation in programming?
+
**
^
*
What is the result of '15 div 2' in integer division?
7
8
7.5
15
What does the modulus operator (%) compute?
Remainder
Sum
Product
Quotient
Which operation would you use to concatenate two strings?
Subtraction
Concatenation
Multiplication
Addition
What keyword is used to declare a constant in programming?
var
const
let
static
What is the purpose of an 'if' statement in programming?
Define a function
Declare a variable
Repeat a block of code
Make a decision
In a switch statement, what is the 'default' case used for?
To handle unexpected values
To declare variables
To start a loop
To define a function
Which loop will always execute at least once regardless of the condition at the start?
If loop
Do-while loop
While loop
For loop
Which type of loop is controlled by a condition rather than a count?
For loop
While loop
All of the above
Do-while loop
