wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GCSE Computer Science Paper 2: Topic 2.1

Total questions: 1

Worksheet time: 13mins

Name
Class
Date

1-10.

Answer the questions below after watching the video

1.

What data type is used to represent fractional numbers in programming?

a)

String

b)

Integer

c)

Boolean

d)

Float

2.

What operator is used to perform exponentiation in programming?

a)

+

b)

**

c)

^

d)

*

3.

What is the result of '15 div 2' in integer division?

a)

7

b)

8

c)

7.5

d)

15

4.

What does the modulus operator (%) compute?

a)

Remainder

b)

Sum

c)

Product

d)

Quotient

5.

Which operation would you use to concatenate two strings?

a)

Subtraction

b)

Concatenation

c)

Multiplication

d)

Addition

6.

What keyword is used to declare a constant in programming?

a)

var

b)

const

c)

let

d)

static

7.

What is the purpose of an 'if' statement in programming?

a)

Define a function

b)

Declare a variable

c)

Repeat a block of code

d)

Make a decision

8.

In a switch statement, what is the 'default' case used for?

a)

To handle unexpected values

b)

To declare variables

c)

To start a loop

d)

To define a function

9.

Which loop will always execute at least once regardless of the condition at the start?

a)

If loop

b)

Do-while loop

c)

While loop

d)

For loop

10.

Which type of loop is controlled by a condition rather than a count?

a)

For loop

b)

While loop

c)

All of the above

d)

Do-while loop