Font size
WorksheetsCS Review
Total questions: 76
Worksheet time: 43mins
The binary number system uses ___ numbers.
three
two
one
ten
What numbers are used in the binary number system?
0-10
0-15
0-1
0-7
What is the word 'bit' short for?
Basic Intergers
Binary digit
Binary Tech
What kind of 'base' system is binary known as?
Base 12
Base 8
Base 2
Base 10
Overflow Error is....
Error from attempting to represent a number that is too large
Error from attempting to represent a number that is too precise. The value is rounded.
the difference between a measured or experiment value and an accepted or known value, divided by the known value, multiplied by 100%
Round-off Error is.....
Error from attempting to represent a number that is too large.
Error from attempting to represent a number that is too precise. The value is rounded.
the difference between a measured or experiment value and an accepted or known value, divided by the known value, multiplied by 100%
True/False: Binary can precisely represent some fractional amounts from the decimal number system.
True
False
Which of the following is true of intellectual property?
Information created on a computer is not owned by anyone since only analog information is protected under copyright law.
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.
Creative Commons enables content creators to freely distribute their otherwise copyrighted work.
Creative Commons has severely hindered broad and open access to digital information
The series of connections between computing devices on a network starting with a sender and ending with a reciever.
Bandwidth
Internet Protocol
Path
Digital Divide
The maximum amount of data that can be sent in a fixed amount of time, usually measured in bits per second.
TCP
Bandwidth
Packet Metadata
World Wide Web
An agreed-upon set of rules that specify the behavior of some system.
Protocol
Scalability
HTTP
Packet
The unique number assigned to each device on the Internet.
Fault Tolerant
Router
DNS
IP Address
A type of computer that forwards data across a network.
UDP
Router
Digital Divide
Internet Protocol
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.
World Wide Web
Path
Redundancy
Scalability
A system of linked pages, programs, and files.
Datastream
Packet
Fault Tolerant
World Wide Web
The system responsible for translating domain names like example.com into IP addresses.
HTTP
DNS
Protocol
Redundancy
A protocol for computers to request and share the pages that make up the world wide web on the Internet.
TCP
Scalability
HTTP
Digital Divide
Which statements are true about the Internet Protocol(IP)
Each network on the Internet uses its own protocol to address messages.
Each device or computer on the Internet is assigned a unique IP address.
IP is a secret protocol shared between the sender and receiver.
In order to communicate two devices on the Internet must have the same IP address.
What is the definition of Computing Device
a group of computing devices and -programs working together for a common purpose
a machine that can run a program, including computers, tablets, servers, routers, and smart sensors
An agreed-upon set of rules that specify the behavior of some system
A type of computer that forwards data across a network
The network we use to access files on the World Wide Web.
World wide web
Domain name system (DNS)
Hypertext transfer protocol (HTTP)
Internet
What is Mobile Application?
A software application designed to run on a mobile device such as a phone, tablet or watch.
A mobile operating system
A program to open mobile
A hardware designed for a mobile device such as a phone, tablet or watch.
The User Interface or UI of an app refers to..
One button on the screen
The layout of the screen that a person interacts with
The On/Off button
An event
Buttons, labels, images and the screen are all examples of objects.
True
false
Which of the following is NOT a reason for loops are useful when writing code?
Loops help us write the same program with fewer lines of code
Loops let us make shapes of multiple sizes
Loops make it easier to alter code once it’s written
Loops make our code easier to read
Answered
Why do certain words change color in Python?
To show that they are recognized as keywords
To tell you that these words cannot be used in Python code
To show you that these words can be clicked
To tell Python to skip these words when running the code
If I use the command right(180), which way will Tracy turn?
She will turn to face up
She will turn to face left
She will turn in a circle
She will turn around
Top Down Design makes it easier to solve a problem by:
Starting with the biggest function and then moving to smaller ones
Making each function hold only one command
Starting your code from the first command
Breaking the problem down into smaller parts
Variables allow us to:
Name different parts of our programs
Use english words to communicate with Tracy
Store information to use in our programs
Change the words Tracy recognizes
How would I tell Tracy to move forward 100 pixels?
forward 100
move(100)
Tracy, move forward 100 pixels
forward(100)
Where does Tracy always start in the grid world?
At the (0,0) coordinate in the bottom left hand corner of the canvas
At the (-200,-200) coordinate in the bottom left hand corner of the canvas
At the (0,0) coordinate in the middle of the canvas
At the (-200,-200) coordinate in the middle of the canvas
Which commands would move Tracy forward 100 pixels?
A. forward(100)
B. backward(-100)
C. forward(-100)
A, B, and C
A only
B and C
A and B
If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?
penup()
forward(100)
forward(100)
penup()
penup(100)
forward(-100)
Which of the following keywords marks the begining of the function block?
Func
define
def
function
When defining a function, the definition must occur before it is called.
TRUE
FALSE
Which of the following symbols always comes after a function code block?
;
]
:
#
Parameters are the (a) used in the function definition.
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))
Which of the following for loops would print the following numbers?
0
1
2
3
4
5
for i in range(5):
print i
for i in range(1, 5, 1):
print i
for i in range(6):
print i
for i in range(0, 5, 1):
print i
Which of the following for loops would print the following numbers?
3
5
7
9
for i in range(3, 10, 2):
print i
for i in range(3, 9, 2):
print i
for i in range(9):
print i
for i in range(3,9):
print i
What is the value of num when this loop completes?
num = 0
for i in range(2, 8, 2):
num = num + i
2
8
12
20
Three of the for loops below will provide identical values for i. Which for loop will provide values that do not match the others?
for i in range(0, 5):
for i in range(5):
for i in range(0, 5, 1):
for i in range(5, 0, 1):
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
0
1
0
1
0
2
0
1
0
1
0
1
1
2
1
2
1
2
What does this program print?
for i in range(10):
if i == 3:
continue
print i
0
1
2
0
1
2
4
5
6
7
8
9
0
1
2
3
4
5
6
7
8
9
0
1
2
3
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!"
The user can enter as many answers as they want
The program will break out of the loop as soon as the user enters the magic_number
The loop will prompt the user to enter a number no matter what input they give
The loop will give the magic_number after a certain number of tries
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?
On line 3
On line 5
On line 7
On line 9
Which of the following for loops will give the same values for i as the loop below?
for i in range(10):
for i in range(11, 0):
for i in range(10, 0, -1):
for i in range(0, 10):
for i in range(0, 11, 1):
When would a while loop be a better control structure to use than a for loop?
When you need to repeat multiple commands
When you need to repeat something 5 times
When you don’t know how many times something will need to repeat
When the user is inputting how many times to repeat something
What will be the output of the following program?
12
code
4
codecodecode
What will be the output of the following program?
Tracy
hello Turtle
Turtle
hello Tracy
What would this program print?
It doesn’t print anything
<>
<><><><>
<><><>
What is the purpose of exceptions?
To indicate that something has gone wrong, and the program does not know how to continue
To point out when the programmer has written exceptionally good code
To tell the user that he/she has given bad data, such as a negative number instead of a positive number
To allow the programmer to write bad code, but have it still work
Why do programmers use try and except statements when their code might throw an exception?
So that the programmer can disregard the exception and do what he/she wants anyways
Because Python requires it
To handle exceptions gracefully and either handle the error or print out a useful error message.
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.
What will be the output?
name = ("Dave")
print (name)
Dave
"Dave"
name
(name)
When you have an error in your code what is the term used to define finding and fixing that error?
Error checking
Debugging
Syntax finder
Error finder
print("Hello world!")
Q. What will the output be from the following code?
print("Hello" + "my" + "friends" )
Hello my friends
Hellomyfriends
What will be the output?
favorite_ice_cream = "mint chip"
print (favorite_ice_cream + " is the best!")
favorite_ice_cream + " is the best!"
mint chip is the best!
mint chip
rocky road is the best!
What will be the output?
liquid = "water"
print (liquid)
.
liquid
water
print liquid
print water
Which method to use to find length of a string?
length()
size()
long()
count()
String x = "10"
String y = "20"
String z = x + y
Console.Writeline(z)
Guess the output.
1020
10 20
30
"10 20"
What will be the output of below code?
String statement = "Outfit of the day";
Console.Writeline(statement.Substring(3))
f
fit of the day
t
tfit of the day
what game has been famous since 2011
call of duty
brawlhalla
minecraft
fortnite
Which of these are benefits of using gaming in learning? (Check all that apply)
Helps develop social skills.
It helps bring excitement into learning.
Empowers students to "own" their learning.
Teaches students to self direct and problem solve
Select movies that features either robots or A.I.
Avengers: Age Of Ultron
The Terminator
Iron Man 3
Harry Potter
Avengers: Infinity War
Can be defined as the ability of a computer to perform tasks that require human intelligence.
Machine Learning
Artificial Intelligence
Unsupervised Learning
The ability of a computer to understand images and videos
Robotics
Natural Language Processing
Computer Vision
How does an AI device learn and think?
It hacks our computer
It accepts data and trains itself, then creates a model
It hacks our brain
None of the above
What makes picture B different from picture A?
Match the pictures with the uses of AI.
Uses of AI in transport
Uses of AI at home
Uses of AI at work
I like AI because it
helps me learn better
helps me work faster
improves the quality of life
poses a threat to many jobs
uses my personal information
How long do you think artificial intelligence has been around?
Will a robot replace your doctor?
Yes
No
Maybe
I hope not
Will robots really replace many jobs?
Yes
No
Maybe
I hope not
