wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science Review

Total questions: 100

Worksheet time: 39mins

Name
Class
Date
1.

A list of steps that you can follow to finish a task

a)

Program

b)

Event

c)

Conditionals

d)

Algorithm

2.

An algorithm that has been coded into something that can be run by a machine

a)

Loop

b)

Program

c)

Algorithm

d)

Event

3.

Finding and fixing problems in your algorithm or program

a)

Conditionals

b)

Problem Solving

c)

Debugging

d)

Coding

4.

The information about someone on the internet

a)

Internet Body

b)

Internet Footprint

c)

Digital Body

d)

Digital Footprint

5.

Which of the following industries is computer science important?

a)

Medical

b)

Engineering

c)

Entertainment

d)

All of the above

6.

What is the function of the <p> tag?

a)

Defines a Paragraph

b)

Makes the text purple

c)

It pushes the text to the right

d)

Prints the webpage

7.

What does HTML stand for?

a)

Hypertext Medium Language

b)

Hippo Tries Making Licorice

c)

Hypertext Markup Lingo

d)

Hypertext Markup Language

8.

Which of the following is the largest heading?

a)

H2

b)

H3

c)

H4

d)

H6

9.

Which of the following is the smallest heading?

a)

H2

b)

H3

c)

H4

d)

H6

10.

</h> is:

a)

Opening Header Tag

b)

Headline Tag

c)

Half of a Tag

d)

Closing Header Tag

11.

What is the error in this code?

a)

<h1 style="background-color:Tomato;">

b)

<DOCTYPE>

c)

<heading>

d)

</html>

12.

What is an object-oriented computer programming language commonly used to create interactive effects within browsers?

a)

Python

b)

Java

c)

Java Script

d)

HTML

13.

This type of variable holds numerical data.

a)

Integer

b)

String

c)

Boolean

d)

Sprite

14.

This type of variable holds a string of alphanumeric characters.

a)

Number

b)

String

c)

Boolean

d)

Sprite

15.

This type of variable has only two values; true or false.

a)

Number

b)

String

c)

Boolean

d)

Sprite

16.

_______________ get their name because a certain rule has to be met.

a)

Algorithm

b)

Variable

c)

Conditional

d)

Loop

17.

The X axis runs which way?

a)

Diagonal

b)

Horizontal

c)

Vertical

d)

None of the above

18.

The Y Axis runs which way?

a)

Diagonal

b)

Horizontal

c)

Vertical

d)

None of the above

19.

What are the values where the axes meet?

a)

(0,1)

b)

(1,1)

c)

(0,0)

d)

(1,0)

20.

A Boolean data type has only two values, which are what?

a)

Positive or Negative

b)

Left or Right

c)

0 or 1

d)

True or False

21.

In true binary fashion, what value represents true?

a)

0

b)

1

c)

2

d)

3

22.

In true binary fashion, what value represents false?

a)

0

b)

1

c)

2

d)

3

23.

Which of the following is NOT a Boolean operator?

a)

AND

b)

OR

c)

NOT

d)

IF

24.

What is the largest memory size from the list?

a)

Petabyte

b)

Kilobyte

c)

Terabyte

d)

Gigabyte

25.

Bandwidth or connection rates are measured in what?

a)

Bits/minute

b)

Bytes/minute

c)

Bits/second

d)

Bits/minute

26.

A binary digit has only two possible values, which are what?

a)

0,1

b)

1,2

c)

2,3

d)

3,4

27.

If a light switch is off, then the bit has the value __________.

a)

One

b)

Zero

c)

Both

d)

Two

28.

If the switch is on, then the bit has the value ______________.

a)

One

b)

Zero

c)

Both

d)

Two

29.

A ___________ is a sequence of binary digits made up of _________ _________.

a)

Byte, 4 bits

b)

Byte, 6 bits

c)

Byte, 2 bits

d)

Byte, 8 bits

30.
_______ is how we write code
a)
Syntax
b)
Loops
c)
Variables
d)
Functions
31.
In the code example: hero.moveRight(), what is the object?
a)
move
b)
hero
c)
()
d)
Right
32.
__________ are actions an object can do
a)
Value
b)
Syntax
c)
Objects
d)
Functions
33.
Function names are always followed by parentheses 
a)
True
b)
False
34.
A computer cannot understand the directions of code even if there is a mistake in the syntax? 
a)
True
b)
False
35.
_____ is a way of repeating code
a)
While
b)
Expression
c)
Loop
d)
Lopp 
36.
What is a key word in Loop?
a)
True
b)
While
c)
Expression
d)
Action
37.
___________ can be evaluated as True or False
a)
Expression
b)
Infinite Loop
c)
Object
38.
Infinite Loop is a loop that repeats forever
a)
True
b)
False
39.

What do you right a while loop in Javascript?

a)

while : i >10, then

b)

while i >10 ()

c)

while (i>10) {

d)

While; i>10:

40.

How much indention is required for the action to be part of the loop

a)

3 spaces

b)

4 spaces

c)

0 spaces

d)

2 spaces

41.
_________ holds your data for later
a)
Object
b)
Expression
c)
Variable
d)
Value
42.
In the code example: enemy = "Kratt", the varible is 
a)
"Kratt"
b)
Kratt
c)
d)
enemy
43.
enemy = "Kratt" 
hero.attack("Kratt") is the same as 
a)
hero.attack(friend)
b)
Hero.attack(enemy)
c)
hero.attack(enemy2)
d)
hero.attack(enemy)
44.

Name at least two programming languages.

a)

C

b)

Photoshop

c)

Java

d)

Pages

45.

Name at least one way programmers use comments.

a)

To explain their thinking

b)

To remind themselves what specific commands do

c)

To explain how a complicated block of programming works

d)

To draw diagrams in the code

46.

What is the goal of code reuse?

a)

To save time by reducing unnecessary work

b)

To save time by increasing unnecessary work

c)

To waste time by reducing unnecessary work

d)

To waste time by increasing unnecessary work

47.

What are operators?

a)

Characters that programming languages use to do science

b)

Characters that programming languages use to do math

c)

Characters that programming languages use to draw

48.

What is an integer?

a)

A positive or negative number without a fraction or decimal point

b)

A positive or negative number with a fraction or decimal point

c)

A positive number without a fraction or decimal point

d)

A negative number without a fraction or decimal point

49.

What math operation does this symbol * perform?

a)

addition

b)

subtraction

c)

division

d)

multiplication

50.

the brains of the computer where most calculations take place.

a)

Algorithm

b)

Program

c)

CPU

d)

Hardware

51.
Convert 800TB into GB
a)
800,000GB
b)
8,000GB
c)
8GB
d)
8,000,000GB
52.
19 in binary is?
a)
10000
b)
10001
c)
00001
d)
10011
53.
63 in binary is?
a)
111110
b)
11110
c)
111111
d)
0101010
54.
142 in binary is?
a)
111110001
b)
10001110
c)
00001100
d)
110011001
55.
What is the aswer to this binary addition?
00110011 + 01000110
a)
11001110
b)
10000110
c)
01111001
d)
00011100
56.

What is Jeff Bezos famous for?

a)

Tesla Motors

b)

Google

c)

Amazon

d)

Amazonia

57.

Who founded Google?

a)

Larry Page and Sergey Brin

b)

Larry Page and Mark Zuckerberg

c)

Larry Page

d)

Sergey Brin and Elon Mask

58.

The principal founder of the Microsoft Corporation is:

a)

Steve Jobs

b)

Bill Gates

c)

Larry Page

d)

Clint Bezos

59.
The main circuit board in a computer is called the ________.
a)
RAM
b)
dongle
c)
motherboard
d)
 power supply unit
60.

Ram is?

a)

Read only memory

b)

Random access memory

c)

A box

d)

The CPU detroyer

61.

ROM

a)

Read only memory

b)

reach on mate

c)

Random only memory

d)

Raz only mould

62.
which of these is an example of a peripheral
a)
the CPU
b)
RAM
c)
A printer or scanner
d)
A USB socket
63.

What acts as an intermediary between the processor and the Main Memory?

a)

Clock

b)

Cache

c)

Bus

d)

User

64.

What is held in cache?

a)

All of the programming instructions

b)

Instructions that have been processed

c)

Commonly used instructions and data

d)

Data that hasn’t been used for a long time

65.

What is held in ROM?

a)

Operating System

b)

Data currently in use

c)

Loading instructions

d)

Instructions frequently used

66.
Which of these is NOT a type of Flash memory secondary storage.
a)
USB Drive
b)
Solid State Drive
c)
Memory Card
d)
Hard Disk Drive
67.
What kind of gate is this?
a)
AND
b)
NOT
c)
OR
d)
XOR
68.
What kind of gate is this?
a)
AND
b)
NAND
c)
OR
d)
XAND
69.
What kind of gate is this?
a)
OR
b)
XOR
c)
NOR
d)
AND
70.
What kind of gate is this?
a)
NOR
b)
NAND
c)
OR
d)
XOR
71.
What kind of gate is this?
a)
OR
b)
XOR
c)
NOR
d)
AND
72.
What kind of gate does this Truth Table represent?
a)
OR
b)
AND
c)
XOR
d)
NOT
73.
What kind of gate does this Truth Table represent?
a)
AND
b)
NOT
c)
OR
d)
NAND
74.
What kind of gate does this Truth Table represent?
a)
AND
b)
OR
c)
NOT
d)
NOR
75.
What kind of gate does this Truth Table represent?
a)
NOR
b)
NOT
c)
OR
d)
XOR
76.

What is the output of an AND gate if its inputs are 1 and 1?

a)

1

b)

0

77.

What is the function of a NOT gate?

a)

Inverts its input

b)

Outputs 1 if both inputs are 1

c)

Prevents errors

d)

Outputs 0 if both inputs are 0

78.

What is the output Y of this logic cricuit if A = 1, B = 1, and C = 1

a)

0

b)

1

79.

What is the output Z of this logic cricuit if A = 1 and B = 1

a)

0

b)

1

80.
What validation type uses the last one or two digits to check the other digits are correct?
a)
Length check
b)
Format check
c)
Check digit
81.

In ________ error correction, the receiver asks the sender to send the data again.

a)

forward

b)

backward

c)

retransmission

d)

redirection

82.

Which error detection method consists of just one redundant bit per data unit?

a)

Simple parity check

b)

Two-dimensional parity check

c)

CRC

d)

Checksum

83.

________________ error detection method uses one\'s complement arithmetic.

a)

Simple parity check

b)

Two-dimensional parity check

c)

CRC

d)

Checksum

84.

Would the byte 10001111 pass an even parity check?

a)

Yes

b)

No

85.

Which error checking method involves counting the number of 1s to find whether it is even or odd?

a)

Check digit

b)

Checksum

c)

Echo Check

d)

Parity Check

86.

Which is a disadvantage of parity checking?

a)

We cannot locate where the error is

b)

It takes a long time to calculate

c)

It can only be done once

d)

It is expensive to design

87.

How does an ARQ check work?

a)

The sender resends the data if it does not receive confirmation after a certain amount of time

b)

The sender compares the sent data to the original and sees if an error occurred

c)

The receiver checks with the sender to find out whether the data was sent correctly

d)

The sender checks whether the receiver has received the data by performing a calculation on a check digit

88.

Which of these is a loop?

a)

if(x<10)

b)

while(x<10)

c)

var x=10;

d)

text(x,10;10)

89.

Greater than or equal to

a)

> or =

b)

> || =

c)

>=

d)

<=

90.

His name is Fred and he is less than 16 years old

a)

if (name = "fred" && age < 16 )

b)

if (name === "fred" && age < 16 )

c)

if (name = "fred" || age < 16 )

d)

if (name === "fred" || age < 16 )

91.

When is usually found at the end of a line of Javascript?

a)

a colon :

b)

a semi-colon ;

c)

a period .

d)

a quotation mark "

92.

A short form writing the word variable is

a)

rav

b)

VAR

c)

var

d)

varia

93.
The following code will:
x++;
a)
Add 1 to the previous value of x
b)
Add 1 to the previous value of y
c)
Subtract 1 from the previous value of x
d)
Give an error message
94.

These are used to put information that can be useful later, and in JavaScript these are ignored by the browser.

a)

Comments

b)

Case Sensitivity

c)

Data Types

d)

Statements

95.

Inside which HTML element do we put the JavaScript?

a)

<js>

b)

<script>

c)

<scripting>

d)

<javascript>

96.

In what year was Facebook created?

a)

1990

b)

1996

c)

2004

d)

2008

97.

When was the first personal computer invented?

a)

1870

b)

1900

c)

1975

d)

1995

98.

Where was Netflix founded?

a)

India

b)

America

c)

England

d)

Japan

99.
What company's operating system runs on the Chromebook?
a)
Apple
b)
Google
c)
Microsoft
d)
Windows
100.
What is the most common way to receive a phishing scam?
a)
Text message
b)
Email
c)
Downloading films
d)
Unsafe wesbites