Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 2 Problem solving A level computer science

Total questions: 16

Worksheet time: 10mins

Name
Class
Date
1.

Which of the following is not done by abstraction?

a)

Identifies essential details

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks

2.

Which of the following is not done by decomposition?

a)

Allows multiple people to work on the problem together

b)

Disregards non-essential information

c)

Breaks the problem down into smaller tasks

3.

When drawing a dog, which of the following characteristics is non-essential?

a)

Dogs have 4 paws

b)

Dogs have fur

c)

Dogs can have brown fur

4.

You could use abstraction to replace specific objects with simple shapes

a)

True

b)

False

5.

Why do we need to look for patterns in problems?

a)

Patterns make it easier for us to solve complex problems

b)

We don't need to look for patterns

c)

Patterns make it more difficult complex problems

6.

What does the circle symbol mean in a state transition diagram?

a)

start state

b)

state

c)

transition

d)

end state

7.

What are the three types of errors in programming?

a)

runtime, syntax, logic

b)

logic, spelling, operator

c)

spelling, logic, runtime

d)

syntax, operator, logic

8.

What does erroneous data mean?

a)

Data that is right on the edge of being right and wrong

b)

Data that you expect the user to enter

c)

Data that you do not expect the user to enter

9.

What is a finite state machine?

a)

A machine that can do one thing

b)

Pseudo code that represents an algorithm

c)

A machine that has a finite amount of things to do

d)

A representation of how something changes from one state to another

10.

What is functional abstraction?

a)

Taking out bits of irrelevant detail out of a function

b)

Using a function, but how it works is on no interest to the user

c)

Using a function within your program

11.

What type of diagram is this?

a)

Entity relationship diagram

b)

Flow chart

c)

State transition diagram

d)

Class diagram

12.

Which string would be accepted?

a)

abba

b)

bbac

c)

abac

d)

caaba

13.

Which is an example of iteration?

a)

print("Hello")

b)

if a == b:

c)

for I in range (1,10):

14.

This piece of code uses ...

a)

Sequence

b)

Selection

c)

Iteration

15.

What type of diagram is the image of?

a)

State diagram

b)

Entity relationship diagram

c)

Hierarchy chart

d)

Flow chart

16.

What sorting algorithm is shown here?

a)

Bubble sort

b)

Merge sort

c)

Quick sort

d)

Insertion sort