Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GCSE Computer Science Programming Knowledge Check Jan 19

Total questions: 20

Worksheet time: 12mins

Name
Class
Date
1.

What is the first step of the linear search algorithm?

a)

Identify the middle item in the list

b)

Identify the first item in the list

c)

Identify a random item in the list

d)

Identify the last item in the list

2.

Ignoring any infomration about a problem that isn't important is called...

a)

decomposition

b)

abstraction

c)

algorithmic thinking

d)

pattern matching

3.

Which of the following search algorithms can only be carried out on an ordered list?

a)

Linear search

b)

Binary Search

4.

Computational thinking is used to...

a)

imporve the efficiency of an existing program or piece of code

b)

turn a problem into something that can be solved by the computer

c)

help you think like a computer

d)

tell the programmer the rules of a programming language

5.

A programmer solves a complex task by writing many small sub programs. This is an example of...

a)

decomposition

b)

abstraction

c)

authentication

d)

pipelining

6.

A program is used to sort a very large list of unordered words into alphabetical order. Which sorting algorithm would sort the list most efficiently?

a)

Bubble sort

b)

Insertion sort

c)

Merge Sort

d)

Binary Search

7.

A benefit of using Algorithmn 1 over Algorithm 2 is that...

a)

it can be more easily converted into a programming language.

b)

it can be interpreted by all programming languages

c)

it uses the proper syntax of all programming languages

d)

it is vague and unstructured

8.

A issue with Algorithmn 2 is that...

a)

it can be easily converted into a programming language.

b)

it can be interpreted by all programming languages

c)

it does not use the proper syntax of a programming language

d)

it is vague and unstructured

9.

Which of the following data types could store the value 45.31?

a)

Integer

b)

Real/Float

c)

Boolean

d)

String

10.

Which expression evaluates to TRUE?

a)

3 < 5 AND 1 > 2

b)

1 != 1 or 4 < 5

c)

NOT ( 7 > 3 )

d)

5 <= 3 OR 8 >= 9

11.

What will 23 DIV 4 return?

a)

6

b)

3

c)

5

d)

4

12.

True or False? "The value of a constant can't be mondifed while a program is running? "

a)

True

b)

False

13.

Which arithmetic operator is used to find the remainder from a division?

a)

DIV

b)

^

c)

MOD

d)

+

14.

Given that x = "CompSci" and test = x.subString(4,1) what is the output of print(test)?

a)

S

b)

p

c)

Comp

d)

pSci

15.

Which of the following is a count-controlled loop?

a)

FOR

b)

WHILE

c)

DO WHILE

d)

IF

16.

Developing a logical set of instructions to solve a particular problem is known as...

a)

abstraction

b)

decomposition

c)

algorithmic thinking

d)

pattern matching

17.

Combining two string variables using a + is called...

a)

concentration

b)

coordination

c)

concatination

d)

cognition

18.

Which of the following statements evaluates to 2?

a)

11 MOD 3

b)

10 / 3

c)

3 DIV 2

19.

What would the logic statement 33 > 10 OR 5 < 3 evaluate to?

a)

TRUE

b)

FALSE

20.

An algorithm written in pseudocode...

a)

should always use the proper syntax of a programming language

b)

can show the same solution that a flow diagram can