wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

GCSE Computer Science - Programming Keywords

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Which python command assigns the value of the user input to the variable userName

a)

userName = answer("What is your name?")

b)

userName = print("What is your name?")

c)

userName = input("What is your name?")

d)

input("What is your name?") = userName

2.

Which python statement assigns a numerical value input by a user and stores it in a variable of data type integer

a)

num = input("Enter a number")

b)

num = str(input("Enter a number"))

c)

num = int(input("Enter a number"))

d)

input("Enter a number") = num

3.

"A named place to store a value that can change" is called a ...

a)

Subroutine

b)

Variable

c)

Constant

d)

Operator

4.

A boolean data type hold what type of data?

a)

Whole number

b)

A group of characters

c)

Single Character

d)

True/ False

5.

A string data type hold what type of data?

a)

Whole number

b)

A group of characters

c)

Single Character

d)

True/ False

6.

Concatenation is...

a)

Stripping characters from text

b)

Concentrating very hard on coding

c)

Joining together two or more strings

d)

Changing an number to text

7.

Giving a value to a variable is know as what

a)

Assignment

b)

Casting

c)

Concatenation

d)

Input Sanitisation

8.

A WHILE loop is...

a)

Condition Controlled

b)

Count Controlled

c)

Uncontrolled

d)

Strongly Controlled

9.

In if...elif...else statement in python uses which programming concept?

a)

Sequence

b)

Selection

c)

Iteration

d)

Proliferation

10.

In programming, casting is...

a)

Creating a collection of variables

b)

Converting one data type to another

c)

Joining together multiple strings

d)

Doing impressive magic

11.

An array is...

a)

Data structure that contains multiple items of data of the same data type. Data is indexed so that a particular item can be easily found.

b)

Data structure that contains multiple items of data that may be of different data types. Data is indexed so that a particular item can be easily found.

12.

What is the value of x?


x = 16 MOD 5

a)

3

b)

1

c)

3.2

d)

21

13.

What is the value of x?

x = 16 DIV 5

a)

1

b)

3

c)

3.2

d)

11

14.

Pseudocode is a

a)

High Level Programming Language

b)

Spoken code

c)

Method of expressing an algorithm in structured English

d)

Method of encrypting code

15.

The repeated execution of a section of code when a program is running is known as...

a)

Sequence

b)

Selection

c)

Iteration

d)

Subroutine