wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RECF Programming Practice

Total questions: 100

Worksheet time: 1hrs 6mins

Name
Class
Date
1.
What is the Output if the user enters:
Yes
a)
Leave umbrella at home
b)
Take an umbrella
2.

What should be considered when designing an algorithm?

a)

If there is more than one way of solving the problem

b)

If the correct hardware is being used

c)

If the correct software is being used

3.

What is pseudocode?

a)

A way of describing a set of instructions in text form

b)

A specific programming language that all computers use

c)

A diagrammatic representation of a set of instructions

4.

What is a flowchart?

a)

A flowchart is a text-based way of designing an algorithm

b)

A flowchart is a specific programming language

c)

A flowchart is a diagram that represents a set of instructions

5.

When can algorithms be used?

a)

Only with computers

b)

To design a solution to any problem

c)

Only for programming

d)

Only for mathematics

6.

Algorithm

a)

A programming language with many commands and features designed to make common tasks easier to program. Any high level functionality is encapsulated as combinations of low level commands.

b)

To repeat in order to achieve, or get closer to, a desired goal.

c)

A precise sequence of instructions for processes that can be executed by a computer.

d)

Putting commands in correct order so computers can read the commands.

7.

Iterate

a)

To repeat in order to achieve, or get closer to, a desired goal.

b)

A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

c)

A collection of commands made available to a programmer.

d)

Putting commands in correct order so computers can read the commands.

8.

Sequencing

a)

A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

b)

To repeat in order to achieve, or get closer to, a desired goal.

c)

Putting commands in correct order so computers can read the commands.

d)

A description of the behavior of a command, function, library, API, etc.

9.

Function

a)

A base-16 number system that uses sixteen distinct symbols 0-9 and A-F to represent numbers from 0 to 15.

b)

A problem solving approach (also known as stepwise design) in which you break down a system to gain insight into the sub-systems that make it up.

c)

A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

d)

A named group of programming instructions. Reusable abstractions that reduce the complexity of writing and maintaining programs.

10.

Documentation/Commenting

a)

A precise sequence of instructions for processes that can be executed by a computer.

b)

A named group of programming instructions.

c)

A simplified representation of something more complex.

d)

A description of the behavior of a command, function, library, API, etc.

11.

For Loop

a)

The action of doing something over and over again.

b)

· To repeat in order to achieve, or get closer to, a desired goal.

c)

Loops that have a predetermined beginning, end, and increment (step interval).

d)

· Putting commands in correct order so computers can read the commands.

12.

What happens to the code in the body of an "if" statement if the condition is false?

a)

The computer determines if it is essential to the program and if it is, then the code is executed anyway.

b)

The code moves to a coastal city, attempting to find love and start a family. However, low waged and crushing mortgage rates lead to it moving back home where it sits, hoping that one day it will be executed.

c)

The code is skipped.

d)

The code stages a revolution and attempts to take over the program, ultimately unsuccessfully, which leads to it not being executed.

13.

Select all the statements that describe how an if/else chain works.

a)

Each condition is tested, executing the code for each condition that is true.

b)

Each condition is tested, until a true condition is found, then the code for that condition is executed and the remainder of the chain is skipped.

c)

If none of the conditions are true, then the computer looks for an "else" statement to execute.

d)

If the last condition in the chain is false, then the computer looks for an "else" to execute.

e)

If any condition is false, then the computer looks for an "else" to execute.

14.

What is the output?


int e=3;

if(e>=5)

System.out.print("same");

else

System.out.print("notsame");

System.out.print("done");

a)

same

b)

notsame

c)

not same; done

d)

samedone

e)

notsamedone

15.

What does a variable do?

a)

Says a name variable

b)

Prints out a name variable

c)

Stores a value and can be used many times

d)

Collects an output and stores it

e)

Helps find things in a program

16.
Which type of sort algorithm is this?
a)
Bubble
b)
Merge
c)
Insertion
17.
Merge Sort is?
a)
When a list is kept as one and compared
b)
List is split into 2 and merged together
c)
List is split into 2 and kept seperate
d)
Nothing
18.
What does a searching algorithm do?
a)
Search through a set of data
b)
Save a set of data
c)
Help to organise data
19.
What would be needed if searching algorithms didn't exist?
a)
The data would need to be saved
b)
Each item of data would need to be looked at one by one, until the searched for data was found
c)
A new set of data to look at would be needed
20.

How do computer scientists, engineers, and mathematicians describe "time complexity" (how long an algorithm will take given an amount of data to be analyzed)?

a)

Big-O notation

b)

Big-N notation

c)

N notation

d)

Small-O notation

e)

Small-N notation

21.

What does a linear time complexity mean: O(n)?

a)

The amount of time taken to complete an algorithm is independent from the number of elements input.

b)

The amount of time taken to complete an algorithm is directly proportional to the number of inputted elements

c)

The amount of time taken to complete an algorithm is proportional to the number of items inputted to the power of n: nnn^n

d)

The amount of time taken to complete an algorithm is proportional to 2n2^n of items inputted.

e)

The time taken to complete an algorithm will increase at a rate of n2n^2 to the number of inputted elements

22.

A statement in programming

a)

Expresses an action to be carried out

b)

Always returns results like expressions

c)

Rules controlling how components in a program are combined

d)

An instruction to perform a task, usually one word

23.
In the game Ms. Pacman, every time Ms. Pacman touches a ghost, she shrivels up and dies.  The coding for this game must include a condition that asks the question "Is Ms. Pacman touching a ghost?"  If this is true, Ms. Pacman shrivels up and dies.  If this is false, she continues moving in the direction that the user presses.
The condition that asks whether or not Ms. Pacman is touching a ghost is known as a(n)...
a)
parameter
b)
algorithm
c)
boolean
d)
function
24.

A loop that continues to repeat so long as a condition is true.

a)

If, then

b)

While

c)

Until

d)

Always

25.

Putting commands in correct order so computers can read the commands.

a)

Sequencing

b)

Pair Programming

c)

Turtle Programming

d)

Abstraction

e)

Function

26.
a)
b)
c)
d)

I and II only

e)

II and III only

27.

Which is NOT an acceptable example of an infinite loop?

a)

while(true)

b)

while(1==1)

c)

while(not false)

d)

while(55==55)

28.

Statements run in English reading order. As soon as one command is complete, the next runs.

a)

(right-to-left, top-to-bottom).

b)

(left-to-right, bottom-to-top).

c)

(left-to-right, top-to-bottom).

d)

(right-to-left, bottom-to-top).

29.

Click ALL answers which result in an "X" printed.

a)

a = 3, b = 3, c = 3

b)

a = 5, b = 4, c = 7

c)

a = 1, b = 3, c = 5

d)

a = 6, b = 4, c = 3

e)

a = 5, b = 5, c = 3

30.

What is output?

a)

Jackson

b)

Memorial

c)

JacksonMemorial

d)

There is no ouptut

31.

Which of these is the correct format for an "if/else" statement?

a)
b)
c)
d)
32.

What will be the value of after this set of conditional statements?

a += 2; means a = a + 2;

a += 3; means a = a + 3;

a)

7

b)

9

c)

10

d)

4

33.

Assembly language has some recognizable English phrases (such as MOV and HALT)

a)
True
b)
False
34.
Compilers translate high-level language into machine code.
a)
True
b)
False
35.

Which declaration will throw an error?

a)

double num = 8;

b)

int averageGrade = 89.7;

c)

boolean done = false;

d)

String done = "true";

36.

How would you declare a variable that tells you that someone passed a class?

a)

boolean passed = 'true';

b)

boolean passed = true;

c)

passed = true;

d)

String passed = "true";

37.
Machine code is easy to understand by a human.
a)
False
b)
True
38.
LOAD r1,
LOAD r2,
ADD r1,
DIV r1, #2
a)
Machine Code
b)
High Level
c)
Assembly Language
39.
Directly executable by the CPU. Written in 1's and 0's or Hex.
a)
Machine Code
b)
High Level Language
c)
Assembly Language
d)
VB.net
40.
What is the only thing that computers understand?
a)
Machine Code
b)
Low Level Languages
c)
High Level Languages
d)
Algorithms
41.
Resolving errors in a program is known as...
a)
Debugging
b)
Refixing
c)
Error Checking
d)
Problem Solving
42.
Which of the following is not a high level programming language?
a)
Assembly
b)
C++
c)
Java
d)
Python
43.
What is the name for the software used to convert an assembly language program into machine code?
a)
Assembler
b)
Interpreter
c)
Compiler
d)
Translator
44.
Which type of translator creates an executable file of machine code from a program written in a high level language? 
a)
Compiler
b)
Assembler
c)
Interpreter
d)
Executor
45.

The action of doing something over and over again.

a)

Looping

b)

Bugging

c)

Programming

46.

Can this code be written better?

a)

Yes, by using loops (repeat blocks)

b)

No, this is the best way to right this code

47.

Look at the puzzle and the code below. What can you fix in the code to help the bird get to the pig?

a)

Remove a move forward block

b)

Add a move forward block

c)

Change the first turn block to left

d)

Change the second turn block to left

48.

What shape does this code make?

a)

Rectangle

b)

Triangle

c)

Square

d)

Circle

49.

Which logic gate is this?

a)

AND

b)

OR

c)

XOR

d)

NOT

50.
What logic gate is this?
a)
AND 
b)
OR 
c)
NOT 
d)
THE
51.

What type of logic is this table showing:

a)

AND

b)

OR

c)

NOT

d)

NOR

52.

What type of logic is this table showing:

a)

AND

b)

OR

c)

NOR

d)

XOR

53.

What will the circuit's output be?

a)

1

b)

0

54.

What will the circuit's output be?

a)

1

b)

0

55.

What will the circuit's output be?

a)

1

b)

0

56.

What gate does this logic symbol represent?

a)

AND

b)

NOT

c)

OR

d)

THE

57.

What logic gate has this truth table?

a)

NOT

b)

THE

c)

AND

d)

OR

58.

Which is the truth table for the XOR gate?

a)
b)
c)
d)
e)
59.

Which logic gate is represented by this truth table?

a)
b)
c)
d)
60.

Two transistors in series is a:

a)

Not Gate

b)

AND Gate

c)

OR Gate

d)

NAND Gate

61.
Convert 128 to binary
a)
10000000
b)
01111110
c)
10000001
d)
11001100
62.
Convert 11111111 to decimal
a)
255
b)
245
c)
235
d)
225
63.
What are the only two numbers you can use in binary?
a)
0 and 1
b)
1 and 2
c)
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
d)
1, 2, 4, 8, 16
64.

Which of these are the correct place values for binary?

a)

128,64,32,16,8,4,2,1

b)

128, 68,34,12,6,4,2,1

c)

1,0

d)

0,1

65.
If a binary number ends with a 1, it must be...
a)
An odd number
b)
An even number
c)
A prime number
d)
The number 12
66.
What is the point of binary?
a)
It represents how computers interpret electrical signals
b)
Because we like to make you do extra maths ;-D
c)
For the lulz
d)
Because it describes star systems
67.
Convert 196 to binary
a)
11000110
b)
11100100
c)
11000100
d)
11010100
68.

What is 0111 in hex

a)

E

b)

A

c)

7

d)

3

69.

What is B in Decimal

a)

10

b)

11

c)

12

d)

13

70.

What is E in Decimal

a)

10

b)

12

c)

14

d)

16

71.

What is A in binary

a)

1111

b)

0101

c)

1010

d)

0110

72.

What is D in binary

a)

1111

b)

1101

c)

1011

d)

0111

73.
Convert the Hex number B9 to binary.
a)
10111001
b)
10111000
c)
10111101
d)
10101001
74.
Convert the Hex number 1F to binary.
a)
00111111
b)
00001111
c)
00010111
d)
00011111
75.
Convert the binary number 11010110 to Hex
a)
A3
b)
B4
c)
C5
d)
D6
76.

How many nibbles are there in a byte?

a)

1

b)

2

c)

4

d)

8

77.

Smallest to largest, which of the below answers is correct?

a)

bit, nibble,byte,megabyte,kilobyte,terabyte,petabyte

b)

nibble, bit,byte,kilobyte,megabyte,terabyte,petabyte

c)

bit,byte,nibble,kilobyte,megabyte,petabyte,terabyte

d)

bit, nibble,byte,kilobyte,megabyte,terabyte,petabyte

78.
This component visually displays information generated by the computer...
a)
Monitor
b)
Motherboard
c)
CPU
d)
Operating System
79.
Carries out the instructions of a computer program, performs basic input/output operations of the system
a)
Software
b)
Central Processing Unit
c)
Operating System
d)
Motherboard
80.
Controls a computer's tasks and manages system resources to optimize performance...
a)
Software
b)
Software
c)
Operating System
d)
Central Processing Unit
81.
Programs or instructions that tell the computer what to do.
a)
Operating system
b)
Software
c)
CPU
d)
Motherboard
82.

What does ROM stand for

a)

Read Only Memory

b)

Random Only Memory

c)

Random On Memory

d)

Read On Memory

83.

SnapChat, Google Chrome, Canvas, and Adobe Photoshop are examples of ....

a)

Application Software

b)

Operating systems

c)

Mobile devices

d)

Internet Service Providers

84.

CDs and DVDs are an example of what type of storage?

a)

Optical

b)

Magnetic

c)

USB

d)

Cloud

85.

When searching for a DNS, your computer will automatically check it's memory, which is also called

a)

cache

b)

top level domain

c)

IP address

d)

root

86.

DNS maps human, readable domain names into actual ___.

a)

IP addresses.

b)

domain names.

c)

servers.

d)

caches.

87.

This device connects a network to the internet.

a)

A CPU

b)

A switch

c)

A modem

d)

A printer

88.

An example of a URL(website) address is

a)

http://www.rcsnc.org

b)

209 Bob hardin road

c)

PO Box 784

d)

Dledford@yahoo.com

89.

What is malware?

a)

Malicious software

b)

Software made by a company called Mal

c)

Malicious hardware

d)

Clothes that hackers wear

90.

What does DDOS stand for?

a)

Denial Data Operation System

b)

Domain Data Overwrite Service

c)

Distributed Domain Or Service

d)

Distributed Denial Of Service

91.
Programs that look useful, but cause damage to your computer
a)
phishing
b)
spyware
c)
worms
d)
trojans
92.
Special types of viruses that can travel from computer to computer without human action; self-replicating and can multiply until it uses up the computer's resources
a)
spyware
b)
worms
c)
trojans
d)
phishing
93.

Which of the following is a phishing email??

a)

You have won a lottery!! Follow this link to claim it!!

b)

Your bank account has been compromised. Login here to protect yourself.

c)

Help.I am stuck aboard and urgently need money transferred to me to get home.

d)

All of the above. Be careful.

94.

Which of these is an indicator that the website is secure.

a)

Bruce Lee photo

b)

The http://

c)

The https://

d)

The https:\\

95.

Several users have called the help desk to complain that they are being redirected to websites different from the addresses they entered. Which type of attack is taking place?

a)

IP spoofing

b)

ARP spoofing

c)

DNS spoofing

d)

Man-in-the-middle

96.

What does 'integrity of data' mean?

a)

"Accuracy and completeness of the data"

b)

"Data should be viewable at all times"

c)

"Data should be access by only the right people"

d)

"None of the above"

97.

Viruses, Worms and Trojan horses are all ______________ software, that can cause damage to your computer.

a)

Malicious

b)

Metadata

c)

Mysterious

d)

Machine

98.
what is RAM?
a)
random acces memory
b)
random analogue memory
c)
random ankle mass
d)
random any memory
99.
What are the risks associated with using public Wi-Fi?
a)
cyber attacks that deploy data-stealing malware in your system
b)
they could hack your information
c)
. Once a cyber criminals gains access to your system, he can do pretty much whatever he wants.
d)
Take a few minutes to tweak your security settings,
100.

What is Cyber Security?

a)

Refers to when security bring viruses to our computer by spying

b)

Refers to the computer when security protects the computer for viruses such as Malware, Spyware ,worm etc.

c)

Refers to the body of technologies, processes, and practices designed to protect networks, devices, programs, and data from attack, damage, or unauthorized access.

d)

Refers the state of being free from danger or threat