wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

July

Total questions: 194

Worksheet time: 2hrs 10mins

Name
Class
Date
1.

KEY TERMS

The things that are considered right and wrong, it consists of the standards of behaviour that are acceptable within society, they are the moral principles and values.

a)

ethical

b)

legal

c)

cultural

d)

environmental

2.

KEY TERMS

The things that are actually right and wrong, things are passed and enforced to help protect the users of computers.

a)

ethical

b)

legal

c)

cultural

d)

environmental

3.

KEY TERMS

How groups of people of particular beliefs, practices or languages may be affected by a particular situation concerning the use of computers/technology.

a)

ethical

b)

legal

c)

cultural

d)

environmental

4.

KEY TERMS

How we impact the natural world, E-Waste, sustainability, recycling and energy demand, are issues regarding technology.

a)

ethical

b)

legal

c)

cultural

d)

environmental

5.

In what year was the Data Protection Act passed?

(a)  

6.

LEGISLATION

This act looks after the personal data of people.

(a)  

7.

Select all the things an organisation must do if they collect your personal data.

(according to the Data Protection Act)

a)

keep the data accurate and up to date

b)

it must not be kept any longer than necessary

c)

must not be transferred to other countries

d)

must share it with other people who request it

8.

Select all the things an organisation must do if they collect your personal data.

(according to the Data Protection Act)

a)

must notify you of a breach within 72 hours

b)

must keep any breaches secret

c)

must be protected from unauthorised access

d)

can be viewed by anyone who wished to view it

9.

Select all the rights you have, according to the Data Protection Act

a)

the right to view your data for free

b)

the right to be forgotten

c)

must consent to having marketing sent to you

d)

the right to withdraw consent

e)

the right to change inaccurate data

10.

Select all the penalties for breaking the Data Protection Act

a)

warnings sent to the organisation

b)

ordering the company to comply

c)

a fine of 4% of the company turnover

d)

a fine of 6% of the company turnover

11.

... are sent to a user's computer from websites, thy allow a website to store data about your browsing, remember you are logged in, track you and target your advertising. They must be consented to.

(a)  

12.

In what year was the Copyright, Designs and Patents Act passed?

(a)  

13.

Select all the examples which are protected by the Copyright, Designs and Patents Act

a)

artwork

b)

ideas

c)

music

d)

films

14.

Who can edit the material, under the Copyright, Designs and Patents Act?

a)

the owner

b)

anybody

c)

someone with permission

d)

the government

15.

How many years after the death of a creator dies the Copyright, Designs and Patents Act last?

(a)  

16.

Select all the penalties of breaking the Copyright, Designs and Patents Act

a)

£3000

b)

up to 1 year of imprisonment

c)

up to 10 years of imprisonment

d)

£5000

17.

A translator for high level code that translates code all at once into machine code

a)

Assembler

b)

Compiler

c)

Interpreter

d)

Programmer

18.

A translator for high level code that translate codes as the program is being run.

a)

Compiler

b)

Interpreter

c)

Assembler

d)

Programmer

19.

Enables the program to be run in an IDE to test the program

a)

Breakpoints

b)

Code Editor

c)

Error diagnostics

d)

Run time environment

20.

Helps the programmer follow syntax (programming rules) by colour coding, line numbering, auto-indentation etc...

a)

Error diagnostics

b)

Run time environment

c)

Translator

d)

Editor Tools

21.

A programming language like Python that is designed to be easy for humans to read and write and uses English command words and needs to be translated using a compiler or interpreter

a)

Translator

b)

High level language

c)

Low level language

d)

Machine code

22.

A programming language that is uses short/basic English, is harder for a human to understand

a)

Translator

b)

High level language

c)

Low level language

d)

Machine code

23.

Converts either a high level language or a low level language into machine code

a)

Translator

b)

High level language

c)

Low level language

d)

Machine code

24.

Binary code that can be directly run by a computer without being translated

a)

Python Code

b)

High Level Code

c)

Low Level Code

d)

Machine Code

25.

Helps the programmer by highlighting errors and giving some information/feedback

a)

Error diagnostics

b)

Run time environment

c)

Translator

d)

Editor Tools

26.

Code is translated one at a time (errors are given as the code is running)

a)

Compilier

b)

Interpreter

27.

Code is translated all at once (and a list of errors returns at the end)

a)

Compilier

b)

Interpreter

28.

print("Hello World!") is an example of...

a)

High-level language

b)

Low-level language

c)

Machine Code

29.

10001010 10011101 is an example of...

a)

High-level language

b)

Low-level language

c)

Machine Code

30.

'LDA 14, STA 5, INP 12' is an example of...

a)

High-level language

b)

Low-level language

c)

Machine Code

31.

We sometimes use Low-level language because (tick 2)...

a)

It uses less memory (RAM)

b)

It is easier to spot errors

c)

It is easier for humans to read as uses more English-type words

d)

The code can be passed easily to different CPUs

32.

We sometimes use High-level language because (tick 2)...

a)

It uses less memory (RAM)

b)

It is easier to spot errors

c)

It is easier for humans to read as uses more English-type words

d)

The code can be passed easily to different CPUs

33.

An error in a program that prevents the program from running as expected.

a)

mistake

b)

bug

c)

crash

d)

help

34.
Name the computer hardware shown.
a)
CPU and Internal Hard Drive
b)
Mouse
c)
Monitor
d)
Speakers
35.

What is a list of steps that a computer can follow to finish a task called?

a)

algorithm

b)

instructions

c)

directions

d)

commands

36.

An error in a program that prevents the program from running as expected.

a)

mistake

b)

bug

c)

crash

d)

help

37.
Name the computer hardware shown.
a)
CPU and Internal Hard Drive
b)
Mouse
c)
Monitor
d)
Speakers
38.
Name the computer hardware shown.
a)
Keyboard
b)
Cables
c)
Printer
d)
USB Flash Drive
39.

What is a list of steps that a computer can follow to finish a task called?

a)

algorithm

b)

instructions

c)

directions

d)

commands

40.

What is a computer bug?

a)

An internet virus

b)

A search

c)

A bonus question

d)

An error

41.

What happens when you debug?

a)

A new program starts

b)

The computer dies

c)

Errors are fixed

d)

New problems start

42.

What can you make with programming?

a)

Games

b)

Websites

c)

Apps

d)

All of these

43.
Computer Science is the study of _____________ . 
a)
lunch
b)
computers
c)
people who like technology 
d)
robots
44.
Code is the:
a)
order of events
b)
instruction given to a computer by a programmer
c)
paragraphs
d)
language written by humans to communicate with computers
45.

What is an algorithm?

a)

a list of shopping items you need

b)

a list of tech items you want

c)

a list of steps to complete a task

46.

What is debugging?

a)

taking an insect out the computer

b)

fixing a program in an algorithm

c)

breaking down a problem

47.

How many times will the bee collect nectar?

a)

5

b)

7

c)

8

d)

6

48.

A list of steps to complete a task

a)

Algorithm

b)

Program

c)

CPU

d)

Hardware

49.

the brains of the computer where most calculations take place.

a)

Algorithm

b)

Program

c)

CPU

d)

Hardware

50.

Finding and fixing problems in an algorithm or program.

a)

Software

b)

Bug

c)

Debug

d)

Computer

51.

What kind of device is a keyboard?

a)

A. Internal device

b)

B. Input device

c)

C. Output device

d)

D. Storage device

52.

Which of the following is an output device?

a)

A. DVD-ROM

b)

B. Touchpad

c)

C. Hard drive

d)

D. Printer

53.

What is the main circuit board inside the computer called?

a)

A. CD-ROM

b)

B. Video card

c)

C. ROM

d)

D. Mother board

54.

Which of the following would hold the most information?

a)

A. 500 megabytes

b)

B. 5 gigabytes

c)

C. 5,000,000 bytes

d)

D. 50,000,000 kilobytes

55.

Eric’s computer slows down when he opens several computer programs. Why does this happen?

a)

A. Eric has limited RAM space

b)

B. Eric has a small hard drive

c)

C. Eric does not have a powerful video card

d)

D. Eric has a bad ROM

56.

Which of the following is usually used to connect a monitor to a computer?

a)

A. DVI cable

b)

B. USB cable

c)

C. Ethernet cable

d)

D. SATA cable

57.

Which of the following software maintenance steps erases gaps caused by deleting files from the hard drive?

a)

A. Update system software

b)

B. Defragging

c)

C. Virus scan

d)

D. Installing firewall

58.

Joe’s computer crashed and now he is looking for a replacement. Which of the following criteria is the least important?

a)

A. RAM

b)

B. Money

c)

C. Color

d)

D. Usage

59.

In a PC, which of the following components stores the BIOS?

a)

A. CPU

b)

B. RAM

c)

C. ROM

d)

D. Hard drive

60.

What does the BIOS chip stand for?

a)

A. Basic Input Output System

b)

B. Basic Input Operating System

c)

C. Basic Internal Operating System

d)

D. Basic Internal Output System

61.

A sequence of steps is described as a

a)

code

b)

algorithm

c)

processor

d)

cat

62.

Programming is making your own code from nothing

a)

true

b)

false

63.

RAM memory stores information

a)

permanently

b)

for a short period of time

c)

Ram does not store information

d)

not this choice

64.

A function is when

a)

you define a command and give it a name

b)

something is useful

c)

you make a videogame

d)

I don't know

65.

IF a zombie appears, THEN run in the opposite direction.

This sentence is an example of:

a)

Function

b)

Loops

c)

Condition

66.

What do you think of the class so far? No one will see your answers don't worry.

4 lines
67.

Game mechanics help...

a)

make the game challenging

b)

make the character

c)

make the background

d)

Beyonce

68.

Every game has:

(several options may be correct)

a)

character

b)

goal

c)

setting

d)

background

e)

controls

69.

What is computer science?

Choose the best answer

a)

the science of computers

b)

the study of computing

c)

the study of building computers

70.

What is a loop?

a)

a repetitive sequence

b)

a type of cereal

c)

when you define a new command and give it a name

71.

The brain of a computer is the

a)

fan

b)

motherboard

c)

hard drive

d)

processor

72.

The set of rules that help a sentence or code make sense

a)

syntax

b)

condition

c)

function

d)

loops

73.

My favorite videogame is

4 lines
74.
In python the ' INTEGER data type' can be defined as...?
a)
holds alphanumeric data as text
b)
holds whole numbers
c)
holds numbers with a decimal point
d)
holds either ‘true’ or ‘false’
75.
In python the ' FLOAT data type' can be defined as...?
a)
holds alphanumerical data
b)

holds whole numbers

c)

holds a decimal point in a number

d)
hold either true or false
76.
In python the ' BOOLEAN data type' can be defined as...?
a)
holds alphanumerical data
b)
holds whole numbers
c)
holds a number with a decimal point
d)
holds either true or false
77.
In python the ' STRING data type' can be defined as...?
a)
holds alphanumeric text
b)
hold whole numbers
c)
holds numbers with a decimal point
d)
holds either a true or false value
78.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information 
79.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
80.
What will the output be from the following code?
print("Hello world!" * 2)
a)
TypeError
b)
Hello world world!
c)
Hello world!Hello world!
d)
Hello world! * 2
81.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
82.

What is the term for * / + -

a)

Operations

b)

Operators

c)

Operands

d)

Opticals

83.

Select all examples of iteration

a)

FOR loop

b)

WHILE loop

c)

START loop

d)

REPEAT loop

84.

How did python get its name?

a)

The creator invented it whilst in hospital from a snake bite

b)

The code is written in a snaking structure

c)

The creator named it after Marty Python

d)

The creator named it after Monty Python

85.

What will be the output if the user enters 'child' and 'friday'?

a)

£4.00

b)

£2.50

c)

There will be a syntax error

d)

£2.00

86.

What is the process of identifying and fixing errors in your code?

a)

Rebugging

b)

Syntax Solving

c)

Debugging

d)

Abstraction

87.

What will be the output of print ("Theo_is_awesome")

a)

Theo sucks.

b)

theo_is_awesome

c)

Theo is awesome

d)

Theo_is_awesome

88.

Abstraction is the process of removing necessary details from a problem

a)

True

b)

False

89.

What will be the output of: print ("3+57")

a)

3 + 57

b)

90

c)

60

d)

3+57

90.

What is the white space used to enter code called?

a)

Whitespace

b)

IDOL

c)

Shell

d)

IDLE

91.

Python performs calculations in binary integers

a)

True

b)

False

92.

REPEAT loops can only be used when:

a)

The integers in a calculation aren't decimal

b)

The data to be repeated is in hexadecimal

c)

They don't exist in python

d)

Dealing with named variables

93.

What does MOD do in a calculation

a)

returns the decimal outcome of a division

b)

returns the remainder after a division

c)

divides a previous division statement

d)

returns two divided integers to their initial value

94.

What can be used to create a line break in printed text?

a)

\N

b)

\\n

c)

/n

d)

\n

95.

How many variables can you assign in a piece of code?

a)

Depends on your PC's clock speed

b)

256

c)

infinity gauntlet

d)

infinite

96.

What is the term given to breaking down a problem into more, easier to discern steps?

a)

Abstraction

b)

Abtraction

c)

Subtraction

d)

Attraction

97.
Where can Linear Search be performed?
a)
On letters
b)
On numbers
c)
Both
d)
None of these
98.
On average, which searching algorithm is more efficient?
a)
Binary Search
b)
Linear Search
99.
How many linear searches will it take to find the value 7 in the list [1,4,8,7,10,28]?
a)
2
b)
3
c)
4
d)
5
100.
Linear Search is faster than Binary search
a)
TRUE
b)
FALSE
c)
It depends on the scenario
101.
A Linear search algorithm requires data to be ordered.
a)
True
b)
False
102.
A linear search algorithm is also known as a...
a)
Binary search algorithm
b)
Bubble sort algorithm
c)
Sequential search algorithm
103.
What is an advantage of the Linear search algorithm?
a)
Performs well with small sized data sets
b)
Can be used on data sets with more than a million elements
c)
Is complicated to code
104.
What is a disadvantage of the Linear search algorithm?
a)
It will only work on a sorted data set
b)
May be too slow to process large data sets
105.
What will happen in a Linear search algorithm if no match is found?
a)
It continues to search in a never ending loop.
b)
"Item not found" is returned
106.
Which of these is a type of searching algorithm?
a)
Linear search
b)
Word search
c)
Search engine
107.
Which type of lists or data sets are binary searching algorithms used for?
a)
Unsorted lists or data sets
b)
Sorted lists or data sets
108.
Select the best description to explain what a linear search algorithm is.
a)
Put the elements in order, check each item in turn.
b)
Put the elements in order, compare with the middle value, split the list in order and repeat.
c)
Elements do not need to be in order, check each item in turn.
d)
Elements do not need to be in order, compare to the middle value, split the list in order and repeat
109.

Select the best description to explain what a binary search algorithm is.

a)

Put the elements in order, check each item in turn.

b)

Put the elements in order, compare with the middle value, split the list in order and repeat.

c)

Elements do not need to be in order, check each item in turn.

d)

Elements do not need to be in order, compare to the middle value, split the list in order and repeat

110.
A linear search is to be performed on the list:
12   6   8  1  3
How many comparisons would it take to find number 1?
a)
1
b)
2
c)
3
d)
4
111.
A binary search is to be performed on the list:
3  5  9  10  23
How many comparisons would it take to find number 9?
a)
0-1
b)
2-3
c)
4-5
d)
I can't find the number 9
112.
A binary search is to be performed on the list:
1  5  10  13  48  68  100  101
How many comparisons would it take to find number 101?
a)
0-1
b)
1-2
c)
3-4
d)
4-5
113.

Which of these algorithms searches for something by first looking in the middle of a list?

a)

Bubble sort

b)

Merge sort

c)

Linear search

d)

Binary search

114.

Which of these algorithms eliminates half of its possibilities each time it makes a check?

a)

Binary search

b)

Bubble sort

c)

Merge sort

d)

Linear search

115.
What does a linear search do?
a)
Looks at the first item of data, then each one in turn, until it finds the data item requested
b)
Organises the data into alphabetical order
c)
Splits the data until the requested data is found
116.
What does a binary search do?
a)
Looks at the first item of data, then each one in turn, until it finds the data item requested
b)
Converts all the data into binary
c)
Takes the data and splits it in half repeatedly until it finds the data item requested
117.
Which search algorithm would be best to use with ordered data?
a)
A binary search
b)
Either binary search or a linear search
c)
A linear search
118.

What is an algorithm?

a)

Patterns and trends used to solve a problem

b)

A set of step-by-step instructions to resolve a problem

c)

A programming language

119.

What are algorithms used for?

a)

To plan out the solution to a problem

b)

As a platform to program a solution

c)

To test a solution to a problem

120.

Which of these is NOT an algorithm?

a)

Following recipe instructions

b)

Working out how an engine works

c)

Tying your shoelaces

d)

Making a cup of coffee

121.

What does an algorithm need to be (choose more than 1)

a)

Clear instructions

b)

Exact

c)

Easy to understand

d)

Complex

122.

When can an algorithm be used?

a)

Only with computers

b)

For programming

c)

To design a solution to any problem

123.

What is decomposition?

a)

Searches the computer's memory for data

b)

Repeats a program

c)

Getting small part of a problem and adding them together

d)

Breaking down a complex problem

124.

What is abstraction?

a)

Removal of certain details, keeping relevant the information

b)

Stores data in a program for retrieval

c)

Freedom from representing art

d)

Detects errors while program is running

125.

If it is AFTER 7am, what do you need to do?

a)

Take the bus

b)

Take the subway

c)

Check the time

d)

Leave home

126.

What should be considered when designing an algorithm?

a)

If there is more than one way to solve the problem

b)

If the correct hardware is being used

c)

If the correct software is being used

127.

You are at the yellow arrow, pointing in the direction indicated. How would you move to fill in the 2 black squares?

a)

Straight, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square

b)

Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 1, Fill Square

c)

Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn right, Straight x 1, Fill Square

d)

Straight x 2, Turn right, Straight x 1, Fill Square, Straight x 2, Turn left, Straight x 2, Fill Square

128.

A variable is...

a)

A memory location used to store a value that can change.

b)

A memory location used to store a value that cannot change

129.

A constant is...

a)

A memory location used to store a value that can change.

b)

A memory location used to store a value that cannot change

130.

'Sequence' means...

a)

When lines of code only run if a condition is met. e.g. IF, ELIF, ELSE

b)

When lines of code loop e.g. WHILE, FOR

c)

When lines of code runs one line after the other

131.

'Selection' means...

a)

When lines of code only run if a condition is met. e.g. IF, ELIF, ELSE

b)

When lines of code loop e.g. WHILE, FOR

c)

When lines of code runs one line after the other

132.

'Iteration' means...

a)

When lines of code only run if a condition is met. e.g. IF, ELIF, ELSE

b)

When lines of code loop e.g. WHILE, FOR

c)

When lines of code runs one line after the other

133.

A STRING is...

a)

A TRUE/FALSE or YES/NO value

b)

A word, or number not used in Maths.

c)

A whole number

d)

A number with a decimal point

134.

An INTERGER is...

a)

A TRUE/FALSE or YES/NO value

b)

A word, or number not used in Maths.

c)

A whole number

d)

A number with a decimal point

135.

A FLOAT is...

a)

A TRUE/FALSE or YES/NO value

b)

A word, or number not used in Maths.

c)

A whole number

d)

A number with a decimal point

136.

A BOOLEAN value is...

a)

A TRUE/FALSE or YES/NO value

b)

A word, or number not used in Maths.

c)

A whole number

d)

A number with a decimal point

137.

The data value '4.5' would be a...

a)

STRING

b)

INTERGER

c)

FLOAT

d)

BOOLEAN

138.

The data value 'Steve' would be a...

a)

STRING

b)

INTERGER

c)

FLOAT

d)

BOOLEAN

139.

The data value '250' would be a...

a)

STRING

b)

INTERGER

c)

FLOAT

d)

BOOLEAN

140.

The data value 'TRUE' would be a...

a)

STRING

b)

INTERGER

c)

FLOAT

d)

BOOLEAN

141.

The data value 'Phone Number: 07284 281837' would be a...

a)

STRING

b)

INTERGER

c)

FLOAT

d)

BOOLEAN

142.

'Casting' means...

a)

Converting data types e.g. int(), str()

b)

Removing unwanted data

c)

Creating a new variable

d)

Creating a new constant

143.

file = open("textfile.txt", "r") means...

a)

Open a file called 'textfile' and add to it.

b)

Open a file called 'textfile', empty it and then write to it

c)

Open a file called 'textfile' and read it.

144.

file = open("textfile.txt", "a") means...

a)

Open a file called 'textfile' and add to it.

b)

Open a file called 'textfile', empty it and then write to it

c)

Open a file called 'textfile' and read it.

145.

file = open("textfile.txt", "w") means...

a)

Open a file called 'textfile' and add to it.

b)

Open a file called 'textfile', empty it and then write to it

c)

Open a file called 'textfile' and read it.

146.

SQL statements always use...

a)

WHERE

FROM

SELECT

b)

SELECT

FROM

WHERE

c)

FROM

SELECT

WHERE

d)

SELECT

WHERE

FROM

147.

To create a sub program, we use:

a)

while function == 1:

b)

def function():

c)

function = input()

148.

We create a random number (between 1-6) with...

a)

random = [1,2,3,4,5,6]

b)

random1-6:

c)

random.num(6)

d)

random.randint(1,6)

149.

The examples of maintainability below are... (select 3):

a)

Comments in code

b)

Indentation

c)

Appropriate variable names

d)

Abstraction

150.

Changing an input so it works in a program (e.g. turning lowercase into uppercase)

a)

Input Sanitation

b)

Input Validation

c)

Input Creation

d)

Input Testing

151.

Testing an input and ensuring it is in the correct format or range

a)

Input Sanitation

b)

Input Validation

c)

Input Creation

d)

Input Testing

152.

Authentication means...

a)

Checking a user is who they say they are (e.g. username/password)

b)

Helping a piece of code become more readable

c)

Testing a program while it is being created,

153.

A syntax error means...

a)

An error that still allows the code to run, however not as expected.

b)

An error that prevents the code from running as it does not follow the code language rules.

154.

A logic error means...

a)

An error that still allows the code to run, however not as expected.

b)

An error that prevents the code from running as it does not follow the code language rules.

155.

prnit("Welcome to the Game")

is an example of a...

a)

Logic Error

b)

Syntax Error

156.

score = 1

print("score")

is an example of a...

a)

Logic Error

b)

Syntax Error

157.

The purpose of testing in programming is... (select 2):

a)

To check that the program hits the user requirements

b)

To save variables in the correct places in RAM

c)

To add comments into the code

d)

To check the code runs as expected.

158.

Final/terminal testing takes place...

a)

Many times throughout a programming project

b)

At the end of a programming project

159.

Iterative testing takes place...

a)

Many times throughout a programming project

b)

At the end of a programming project

160.

Normal test data is used to...

a)

Test a value that is just inside/outside of what should/shouldn't be accepted.

b)

Test a value that is expected in a program and should work.

c)

Test a value that should be rejected by the program.

161.

Boundary test data is used to...

a)

Test a value that is just inside/outside of what should/shouldn't be accepted.

b)

Test a value that is expected in a program and should work.

c)

Test a value that should be rejected by the program.

162.

Erroneous test data is used to...

a)

Test a value that is just inside/outside of what should/shouldn't be accepted.

b)

Test a value that is expected in a program and should work.

c)

Test a value that should be rejected by the program.

163.

What logic gate is this?

a)

AND

b)

NOT

c)

OR

164.

What logic gate is this?

a)

AND

b)

NOT

c)

OR

165.

What logic gate is this?

a)

AND

b)

NOT

c)

OR

166.

If 1 is the input, the output will be...

a)

0

b)

1

167.

If input A is 1, and input B is 1, the output will be...

a)

0

b)

1

168.

If input A is 1 and input B is 0, the output will be...

a)

0

b)

1

169.

DIV means...

a)

Dividing without including the remainder

b)

Dividing, but only writing the remainder

c)

Multiplying the number by itself

170.

MOD means...

a)

Dividing without including the remainder

b)

Dividing, but only writing the remainder

c)

Multiplying the number by itself

171.

^ means...

a)

Dividing without including the remainder

b)

Dividing, but only writing the remainder

c)

Multiplying the number by itself

172.

13 DIV 4 =

(a)  

173.

29 DIV 5 =

(a)  

174.

63 DIV 10 =

(a)  

175.

34 MOD 5 =

(a)  

176.

12 MOD 6 =

(a)  

177.

100 MOD 9 =

(a)  

178.

4^2 =

(a)  

179.

2^3 =

(a)  

180.

3^3 =

(a)  

181.

High-level language means...

a)

A programming language that uses short and basic single words

b)

A programming language that uses English-like words

c)

1s and 0s - used by the CPU

182.

Low-level language means...

a)

A programming language that uses short and basic single words

b)

A programming language that uses English-like words

c)

1s and 0s - used by the CPU

183.

Machine code means...

a)

A programming language that uses short and basic single words

b)

A programming language that uses English-like words

c)

1s and 0s - used by the CPU

184.

" score = input("Enter a number") "

is an example of...

a)

High-level language

b)

Low-level language

c)

Machine code

185.

INP 10

STA 12

OUT 28

is an example of...

a)

High-level language

b)

Low-level language

c)

Machine code

186.

1001 0101

0011 1111

0101 1110

is an example of...

a)

High-level language

b)

Low-level language

c)

Machine code

187.

A translator...

a)

Tests an input and changes it to fit with the program (e.g. lowercase to uppercase)

b)

Tests the code and checks for errors

c)

Tells the program where the variables are stored in RAM

d)

Converts high-level language into machine code so the CPU can run the program.

188.

A complier translator... (select 2):

a)

... is used during development of code

b)

...is used at the end when the code is finished

c)

...is quick and reports errors as is translates

d)

...takes some time and produces a list of errors at the end

189.

An interpreter translator... (select 2):

a)

... is used during development of code

b)

...is used at the end when the code is finished

c)

...is quick and reports errors as is translates

d)

...takes some time and produces a list of errors at the end

190.

2 examples of IDE tools are...

a)

Editor tools (e.g. line numbering, colour coding)

b)

Selection (when lines of code run one after another)

c)

Iteration (when lines of code loop)

d)

Translators

191.

2 examples of IDE tools are...

a)

Variable names must be suitable and appropriately named.

b)

Run-time environment (You can run the code before its finished)

c)

Debugging tools (errors are reported and advice is given to the user)

d)

Selection (lines of code only runs if a condition is met)

192.

The user can input something using the code...

a)

input("Enter a value")

b)

print("Enter a value")

c)

variable("Enter a value")

d)

while("Enter a value")

193.

We can output something using the code...

a)

input("Hello")

b)

print("Hello")

c)

variable("Hello")

d)

while("Hello")

194-203.

Answer the questions below after watching the video

194.

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

a)

String

b)

Integer

c)

Boolean

d)

Float

195.

What operator is used to perform exponentiation in programming?

a)

+

b)

**

c)

^

d)

*

196.

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

a)

7

b)

8

c)

7.5

d)

15

197.

What does the modulus operator (%) compute?

a)

Remainder

b)

Sum

c)

Product

d)

Quotient

198.

Which operation would you use to concatenate two strings?

a)

Subtraction

b)

Concatenation

c)

Multiplication

d)

Addition

199.

What keyword is used to declare a constant in programming?

a)

var

b)

const

c)

let

d)

static

200.

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

201.

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

202.

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

203.

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

Similar Resources on Wayground