wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

CS Review

Total questions: 76

Worksheet time: 43mins

Name
Class
Date
1.

The binary number system uses ___ numbers.

a)

three

b)

two

c)

one

d)

ten

2.

What numbers are used in the binary number system?

a)

0-10

b)

0-15

c)

0-1

d)

0-7

3.

What is the word 'bit' short for?

a)

Basic Intergers

b)

Binary digit

c)

Binary Tech

4.
What is 12 in binary?
a)
0010
b)
1010
c)
1100
d)
1111
5.
There are 8 bits to one byte
a)
True
b)
False
6.
Convert 65 to binary
a)
01100001
b)
00100001
c)
01000001
d)
00100101
7.

What kind of 'base' system is binary known as?

a)

Base 12

b)

Base 8

c)

Base 2

d)

Base 10

8.

Overflow Error is....

a)

Error from attempting to represent a number that is too large

b)

Error from attempting to represent a number that is too precise. The value is rounded.

c)

the difference between a measured or experiment value and an accepted or known value, divided by the known value, multiplied by 100%

9.

Round-off Error is.....

a)

Error from attempting to represent a number that is too large.

b)

Error from attempting to represent a number that is too precise. The value is rounded.

c)

the difference between a measured or experiment value and an accepted or known value, divided by the known value, multiplied by 100%

10.

True/False: Binary can precisely represent some fractional amounts from the decimal number system.

a)

True

b)

False

11.

Which of the following is true of intellectual property?

a)

Information created on a computer is not owned by anyone since only analog information is protected under copyright law.

b)

You do not need to cite work created by someone else if both the original work and your use of it are in digital form.

c)

Creative Commons enables content creators to freely distribute their otherwise copyrighted work.

d)

Creative Commons has severely hindered broad and open access to digital information

12.

The series of connections between computing devices on a network starting with a sender and ending with a reciever.

a)

Bandwidth

b)

Internet Protocol

c)

Path

d)

Digital Divide

13.

The maximum amount of data that can be sent in a fixed amount of time, usually measured in bits per second.

a)

TCP

b)

Bandwidth

c)

Packet Metadata

d)

World Wide Web

14.

An agreed-upon set of rules that specify the behavior of some system.

a)

Protocol

b)

Scalability

c)

HTTP

d)

Packet

15.

The unique number assigned to each device on the Internet.

a)

Fault Tolerant

b)

Router

c)

DNS

d)

IP Address

16.

A type of computer that forwards data across a network.

a)

UDP

b)

Router

c)

Digital Divide

d)

Internet Protocol

17.

The inclusion of extra components so that a system can continue to work even if individual components fail, for example by having more than one path between any two connected devices in a network.

a)

World Wide Web

b)

Path

c)

Redundancy

d)

Scalability

18.

A system of linked pages, programs, and files.

a)

Datastream

b)

Packet

c)

Fault Tolerant

d)

World Wide Web

19.

The system responsible for translating domain names like example.com into IP addresses.

a)

HTTP

b)

DNS

c)

Protocol

d)

Redundancy

20.

A protocol for computers to request and share the pages that make up the world wide web on the Internet.

a)

TCP

b)

Scalability

c)

HTTP

d)

Digital Divide

21.

Which statements are true about the Internet Protocol(IP)

a)

Each network on the Internet uses its own protocol to address messages.

b)

Each device or computer on the Internet is assigned a unique IP address.

c)

IP is a secret protocol shared between the sender and receiver.

d)

In order to communicate two devices on the Internet must have the same IP address.

22.

What is the definition of Computing Device

a)

a group of computing devices and -programs working together for a common purpose

b)

a machine that can run a program, including computers, tablets, servers, routers, and smart sensors

c)

An agreed-upon set of rules that specify the behavior of some system

d)

A type of computer that forwards data across a network

23.

The network we use to access files on the World Wide Web.

a)

World wide web

b)

Domain name system (DNS)

c)

Hypertext transfer protocol (HTTP)

d)

Internet

24.

What is Mobile Application?

a)

A software application designed to run on a mobile device such as a phone, tablet or watch.

b)

A mobile operating system

c)

A program to open mobile

d)

A hardware designed for a mobile device such as a phone, tablet or watch.

25.

The User Interface or UI of an app refers to..

a)

One button on the screen

b)

The layout of the screen that a person interacts with

c)

The On/Off button

d)

An event

26.

Buttons, labels, images and the screen are all examples of objects.

a)

True

b)

false

27.

Which of the following is NOT a reason for loops are useful when writing code?

a)

Loops help us write the same program with fewer lines of code

b)

Loops let us make shapes of multiple sizes

c)

Loops make it easier to alter code once it’s written

d)

Loops make our code easier to read

Answered

28.

Why do certain words change color in Python?

a)

To show that they are recognized as keywords

b)

To tell you that these words cannot be used in Python code

c)

To show you that these words can be clicked

d)

To tell Python to skip these words when running the code

29.

If I use the command right(180), which way will Tracy turn?

a)

She will turn to face up

b)

She will turn to face left

c)

She will turn in a circle

d)

She will turn around

30.

Top Down Design makes it easier to solve a problem by:

a)

Starting with the biggest function and then moving to smaller ones

b)

Making each function hold only one command

c)

Starting your code from the first command

d)

Breaking the problem down into smaller parts

31.

Variables allow us to:

a)

Name different parts of our programs

b)

Use english words to communicate with Tracy

c)

Store information to use in our programs

d)

Change the words Tracy recognizes

32.

How would I tell Tracy to move forward 100 pixels?

a)

forward 100

b)

move(100)

c)

Tracy, move forward 100 pixels

d)

forward(100)

33.

Where does Tracy always start in the grid world?

a)

At the (0,0) coordinate in the bottom left hand corner of the canvas

b)

At the (-200,-200) coordinate in the bottom left hand corner of the canvas

c)

At the (0,0) coordinate in the middle of the canvas

d)

At the (-200,-200) coordinate in the middle of the canvas

34.

Which commands would move Tracy forward 100 pixels?

A. forward(100)

B. backward(-100)

C. forward(-100)

a)

A, B, and C

b)

A only

c)

B and C

d)

A and B

35.

If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?

a)

penup()

forward(100)

b)

forward(100)

penup()

c)

penup(100)

d)

forward(-100)

36.

Which of the following keywords marks the begining of the function block?

a)

Func

b)

define

c)

def

d)

function

37.

When defining a function, the definition must occur before it is called.

a)

TRUE

b)

FALSE

38.

Which of the following symbols always comes after a function code block?

a)

;

b)

]

c)

:

d)

#

39.

Parameters are the ​ (a)   used in the function definition.

Choose from the below words
variables
values
constant
method
40.

Complete the syntax below to place on the "missing code" area on Line 4. The code must print the sum of 10 and 20:

​ (a)   (​ (b)   (​ (c)   , ​20))

Choose from the below words
print
mySum
10
def
return
41.

Which of the following for loops would print the following numbers?

0

1

2

3

4

5

a)

for i in range(5):

print i

b)

for i in range(1, 5, 1):

print i

c)

for i in range(6):

print i

d)

for i in range(0, 5, 1):

print i

42.

Which of the following for loops would print the following numbers?

3

5

7

9

a)

for i in range(3, 10, 2):

print i

b)

for i in range(3, 9, 2):

print i

c)

for i in range(9):

print i

d)

for i in range(3,9):

print i

43.

What is the value of num when this loop completes?


num = 0


for i in range(2, 8, 2):

num = num + i

a)

2

b)

8

c)

12

d)

20

44.

Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others?

a)

for i in range(0, 5):

b)

for i in range(5):

c)

for i in range(0, 5, 1):

d)

for i in range(5, 0, 1):

45.

What will be printed to the screen when this program is run?


for j in range(2):

for i in range(0, 2, 1):

print i

a)

0

1

0

1

b)

0

2

c)

0

1

0

1

0

1

d)

1

2

1

2

1

2

46.

What does this program print?

for i in range(10):

if i == 3:

continue

print i

a)

0

1

2

b)

0

1

2

4

5

6

7

8

9

c)

0

1

2

3

4

5

6

7

8

9

d)

0

1

2

3

47.

What is the benefit of using the break command as in the program below?

magic_number = 10

while True:

guess = int(input("Guess my number: "))

if guess == magic_number:

print "You got it!"

break

print "Try again!"

a)

The user can enter as many answers as they want

b)

The program will break out of the loop as soon as the user enters the magic_number

c)

The loop will prompt the user to enter a number no matter what input they give

d)

The loop will give the magic_number after a certain number of tries

48.

If the user enters ‘4’, I want the loop to exit. Where should the break command be placed in order to end the loop when the user enters this value?

a)

On line 3

b)

On line 5

c)

On line 7

d)

On line 9

49.

Which of the following for loops will give the same values for i as the loop below?


for i in range(10):

a)

for i in range(11, 0):

b)

for i in range(10, 0, -1):

c)

for i in range(0, 10):

d)

for i in range(0, 11, 1):

50.

When would a while loop be a better control structure to use than a for loop?

a)

When you need to repeat multiple commands

b)

When you need to repeat something 5 times

c)

When you don’t know how many times something will need to repeat

d)

When the user is inputting how many times to repeat something

51.

What will be the output of the following program?

a)

12

b)

code

c)

4

d)

codecodecode

52.

What will be the output of the following program?

a)

Tracy

b)

hello Turtle

c)

Turtle

d)

hello Tracy

53.

What would this program print?

a)

It doesn’t print anything

b)

<>

c)

<><><><>

d)

<><><>

54.

What is the purpose of exceptions?

a)

To indicate that something has gone wrong, and the program does not know how to continue

b)

To point out when the programmer has written exceptionally good code

c)

To tell the user that he/she has given bad data, such as a negative number instead of a positive number

d)

To allow the programmer to write bad code, but have it still work

55.

Why do programmers use try and except statements when their code might throw an exception?

a)

So that the programmer can disregard the exception and do what he/she wants anyways

b)

Because Python requires it

c)

To handle exceptions gracefully and either handle the error or print out a useful error message.

d)

Exceptions only are thrown when there are try and except statements. Otherwise, the program will just fail and the programmer will have no idea why it failed.

56.

What will be the output?

name = ("Dave")

print (name)

a)

Dave

b)

"Dave"

c)

name

d)

(name)

57.

When you have an error in your code what is the term used to define finding and fixing that error?

a)

Error checking

b)

Debugging

c)

Syntax finder

d)

Error finder

58.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
59.

Q. What will the output be from the following code?

print("Hello" + "my" + "friends" )

a)

Hello my friends

b)

Hellomyfriends

60.

What will be the output?

favorite_ice_cream = "mint chip"

print (favorite_ice_cream + " is the best!")

a)

favorite_ice_cream + " is the best!"

b)

mint chip is the best!

c)

mint chip

d)

rocky road is the best!

61.

What will be the output?

liquid = "water"

print (liquid)

.

a)

liquid

b)

water

c)

print liquid

d)

print water

62.

Which method to use to find length of a string?

a)

length()

b)

size()

c)

long()

d)

count()

63.

String x = "10"

String y = "20"

String z = x + y

Console.Writeline(z)

Guess the output.

a)

1020

b)

10 20

c)

30

d)

"10 20"

64.

What will be the output of below code?

String statement = "Outfit of the day";

Console.Writeline(statement.Substring(3))

a)

f

b)

fit of the day

c)

t

d)

tfit of the day

65.

what game has been famous since 2011

a)

call of duty

b)

brawlhalla

c)

minecraft

d)

fortnite

66.

Which of these are benefits of using gaming in learning? (Check all that apply)

a)

Helps develop social skills.

b)

It helps bring excitement into learning.

c)

Empowers students to "own" their learning.

d)

Teaches students to self direct and problem solve

67.

Select movies that features either robots or A.I.

a)

Avengers: Age Of Ultron

b)

The Terminator

c)

Iron Man 3

d)

Harry Potter

e)

Avengers: Infinity War

68.

Can be defined as the ability of a computer to perform tasks that require human intelligence.

a)

Machine Learning

b)

Artificial Intelligence

c)

Unsupervised Learning

69.

The ability of a computer to understand images and videos

a)

Robotics

b)

Natural Language Processing

c)

Computer Vision

70.

How does an AI device learn and think?

a)

It hacks our computer

b)

It accepts data and trains itself, then creates a model

c)

It hacks our brain

d)

None of the above

71.

What makes picture B different from picture A?

4 lines
72.

Match the pictures with the uses of AI.

a)
1.

Uses of AI in transport

b)
2.

Uses of AI at home

c)
3.

Uses of AI at work

73.

I like AI because it

a)

helps me learn better

b)

helps me work faster

c)

improves the quality of life

d)

poses a threat to many jobs

e)

uses my personal information

74.

How long do you think artificial intelligence has been around?

4 lines
75.

Will a robot replace your doctor?

a)

Yes

b)

No

c)

Maybe

d)

I hope not

76.

Will robots really replace many jobs?

a)

Yes

b)

No

c)

Maybe

d)

I hope not