Font size
WorksheetsComputer Science Review
Total questions: 100
Worksheet time: 39mins
A list of steps that you can follow to finish a task
Program
Event
Conditionals
Algorithm
An algorithm that has been coded into something that can be run by a machine
Loop
Program
Algorithm
Event
Finding and fixing problems in your algorithm or program
Conditionals
Problem Solving
Debugging
Coding
The information about someone on the internet
Internet Body
Internet Footprint
Digital Body
Digital Footprint
Which of the following industries is computer science important?
Medical
Engineering
Entertainment
All of the above
What is the function of the <p> tag?
Defines a Paragraph
Makes the text purple
It pushes the text to the right
Prints the webpage
What does HTML stand for?
Hypertext Medium Language
Hippo Tries Making Licorice
Hypertext Markup Lingo
Hypertext Markup Language
Which of the following is the largest heading?
H2
H3
H4
H6
Which of the following is the smallest heading?
H2
H3
H4
H6
</h> is:
Opening Header Tag
Headline Tag
Half of a Tag
Closing Header Tag
What is the error in this code?
<h1 style="background-color:Tomato;">
<DOCTYPE>
<heading>
</html>
What is an object-oriented computer programming language commonly used to create interactive effects within browsers?
Python
Java
Java Script
HTML
This type of variable holds numerical data.
Integer
String
Boolean
Sprite
This type of variable holds a string of alphanumeric characters.
Number
String
Boolean
Sprite
This type of variable has only two values; true or false.
Number
String
Boolean
Sprite
_______________ get their name because a certain rule has to be met.
Algorithm
Variable
Conditional
Loop
The X axis runs which way?
Diagonal
Horizontal
Vertical
None of the above
The Y Axis runs which way?
Diagonal
Horizontal
Vertical
None of the above
What are the values where the axes meet?
(0,1)
(1,1)
(0,0)
(1,0)
A Boolean data type has only two values, which are what?
Positive or Negative
Left or Right
0 or 1
True or False
In true binary fashion, what value represents true?
0
1
2
3
In true binary fashion, what value represents false?
0
1
2
3
Which of the following is NOT a Boolean operator?
AND
OR
NOT
IF
What is the largest memory size from the list?
Petabyte
Kilobyte
Terabyte
Gigabyte
Bandwidth or connection rates are measured in what?
Bits/minute
Bytes/minute
Bits/second
Bits/minute
A binary digit has only two possible values, which are what?
0,1
1,2
2,3
3,4
If a light switch is off, then the bit has the value __________.
One
Zero
Both
Two
If the switch is on, then the bit has the value ______________.
One
Zero
Both
Two
A ___________ is a sequence of binary digits made up of _________ _________.
Byte, 4 bits
Byte, 6 bits
Byte, 2 bits
Byte, 8 bits
What do you right a while loop in Javascript?
while : i >10, then
while i >10 ()
while (i>10) {
While; i>10:
How much indention is required for the action to be part of the loop
3 spaces
4 spaces
0 spaces
2 spaces
hero.attack("Kratt") is the same as
Name at least two programming languages.
C
Photoshop
Java
Pages
Name at least one way programmers use comments.
To explain their thinking
To remind themselves what specific commands do
To explain how a complicated block of programming works
To draw diagrams in the code
What is the goal of code reuse?
To save time by reducing unnecessary work
To save time by increasing unnecessary work
To waste time by reducing unnecessary work
To waste time by increasing unnecessary work
What are operators?
Characters that programming languages use to do science
Characters that programming languages use to do math
Characters that programming languages use to draw
What is an integer?
A positive or negative number without a fraction or decimal point
A positive or negative number with a fraction or decimal point
A positive number without a fraction or decimal point
A negative number without a fraction or decimal point
What math operation does this symbol * perform?
addition
subtraction
division
multiplication
the brains of the computer where most calculations take place.
Algorithm
Program
CPU
Hardware
00110011 + 01000110
What is Jeff Bezos famous for?
Tesla Motors
Amazon
Amazonia
Who founded Google?
Larry Page and Sergey Brin
Larry Page and Mark Zuckerberg
Larry Page
Sergey Brin and Elon Mask
The principal founder of the Microsoft Corporation is:
Steve Jobs
Bill Gates
Larry Page
Clint Bezos
Ram is?
Read only memory
Random access memory
A box
The CPU detroyer
ROM
Read only memory
reach on mate
Random only memory
Raz only mould
What acts as an intermediary between the processor and the Main Memory?
Clock
Cache
Bus
User
What is held in cache?
All of the programming instructions
Instructions that have been processed
Commonly used instructions and data
Data that hasn’t been used for a long time
What is held in ROM?
Operating System
Data currently in use
Loading instructions
Instructions frequently used
What is the output of an AND gate if its inputs are 1 and 1?
1
0
What is the function of a NOT gate?
Inverts its input
Outputs 1 if both inputs are 1
Prevents errors
Outputs 0 if both inputs are 0
What is the output Y of this logic cricuit if A = 1, B = 1, and C = 1
0
1
What is the output Z of this logic cricuit if A = 1 and B = 1
0
1
In ________ error correction, the receiver asks the sender to send the data again.
forward
backward
retransmission
redirection
Which error detection method consists of just one redundant bit per data unit?
Simple parity check
Two-dimensional parity check
CRC
Checksum
________________ error detection method uses one\'s complement arithmetic.
Simple parity check
Two-dimensional parity check
CRC
Checksum
Would the byte 10001111 pass an even parity check?
Yes
No
Which error checking method involves counting the number of 1s to find whether it is even or odd?
Check digit
Checksum
Echo Check
Parity Check
Which is a disadvantage of parity checking?
We cannot locate where the error is
It takes a long time to calculate
It can only be done once
It is expensive to design
How does an ARQ check work?
The sender resends the data if it does not receive confirmation after a certain amount of time
The sender compares the sent data to the original and sees if an error occurred
The receiver checks with the sender to find out whether the data was sent correctly
The sender checks whether the receiver has received the data by performing a calculation on a check digit
Which of these is a loop?
if(x<10)
while(x<10)
var x=10;
text(x,10;10)
Greater than or equal to
> or =
> || =
>=
<=
His name is Fred and he is less than 16 years old
if (name = "fred" && age < 16 )
if (name === "fred" && age < 16 )
if (name = "fred" || age < 16 )
if (name === "fred" || age < 16 )
When is usually found at the end of a line of Javascript?
a colon :
a semi-colon ;
a period .
a quotation mark "
A short form writing the word variable is
rav
VAR
var
varia
x++;
These are used to put information that can be useful later, and in JavaScript these are ignored by the browser.
Comments
Case Sensitivity
Data Types
Statements
Inside which HTML element do we put the JavaScript?
<js>
<script>
<scripting>
<javascript>
In what year was Facebook created?
1990
1996
2004
2008
When was the first personal computer invented?
1870
1900
1975
1995
Where was Netflix founded?
India
America
England
Japan
