Font size
WorksheetsComputer Science and Apps Spring Final
Total questions: 57
Worksheet time: 32mins
Define input.
data that are sent to a computer for processing by a program. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
any data that are sent from a program to a device. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
a collection of program statements. Programs run (or “execute”) one command at a time.
The process of finding and fixing problems in code
Define output.
data that are sent to a computer for processing by a program. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
any data that are sent from a program to a device. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
a collection of program statements. Programs run (or “execute”) one command at a time.
The process of finding and fixing problems in code
Define program.
data that are sent to a computer for processing by a program. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
any data that are sent from a program to a device. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
a collection of program statements. Programs run (or “execute”) one command at a time.
The process of finding and fixing problems in code
Define debugging
data that are sent to a computer for processing by a program. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
any data that are sent from a program to a device. can come in a variety of forms, such as tactile interaction, audio, visuals, or text.
a collection of program statements. Programs run (or “execute”) one command at a time.
The process of finding and fixing problems in code
What are examples of app input?
Buttons, clickable images, dropdown menus
checkbox, slider, radio button, text input
sound
screen changes
What is NOT an example of app output?
Screen changes
sound
images
text input
Explain the difference between human and programming languages.
Programming language is ambiguous
Human language is more Precise
Human language is often ambiguous, but programming languages are precise
Human language is less ambiguous, Like programming language
What are some beneficial debugging strategies? Check all that apply
Keep code clean and organized, compare your code with what works
use meaningful ID's, hand trace your code
run your code frequently, talk to a partner
familiarize yourself with the documentation
Define documentation
A named reference to a value that can be used repeatedly throughout a program is referred to as a(n). This named reference can only hold one value at a time.
To combine Strings with other Strings, with numbers, or even with another variable
affects the sequential flow of control by executing different statements based on the value of a Boolean expression
a written description of how a command or piece of code works or was developed.
Define concatenate.
A named reference to a value that can be used repeatedly throughout a program is referred to as a(n). This named reference can only hold one value at a time.
To combine Strings with other Strings, with numbers, or even with another variable
affects the sequential flow of control by executing different statements based on the value of a Boolean expression
a written description of how a command or piece of code works or was developed.
Define conditional statement.
A named reference to a value that can be used repeatedly throughout a program is referred to as a(n). This named reference can only hold one value at a time.
To combine Strings with other Strings, with numbers, or even with another variable
affects the sequential flow of control by executing different statements based on the value of a Boolean expression
a written description of how a command or piece of code works or was developed.
Define variable.
A named reference to a value that can be used repeatedly throughout a program is referred to as a(n). This named reference can only hold one value at a time.
To combine Strings with other Strings, with numbers, or even with another variable
affects the sequential flow of control by executing different statements based on the value of a Boolean expression
a written description of how a command or piece of code works or was developed.
True or False: global variables are permanent and can be used anywhere in your code; local variables are temporary and can only be used where they are created - for example, in an onEvent block
True
False
Define computing device.
A group of connected computers that can send or receive data
A machine that can run a program
A group of computers working together for a common purpose
A sequence of direct connections
Define computing system.
A group of connected computers that can send or receive data
A machine that can run a program
A group of computers working together for a common purpose
A sequence of direct connections
Define computing network.
A group of connected computers that can send or receive data
A machine that can run a program
A group of computers working together for a common purpose
A sequence of direct connections
Define path (as it relates to computing).
A group of connected computers that can send or receive data
A machine that can run a program
A group of computers working together for a common purpose
A sequence of direct connections
Define bandwidth.
A group of connected computers that can send or receive data
the maximum amount of data that can be sent in a fixed amount of time, usually measured in bits per second
A group of computers working together for a common purpose
A sequence of direct connections
Define internet
A group of connected computers that can send or receive data
the maximum amount of data that can be sent in a fixed amount of time, usually measured in bits per second
a computer network consisting of interconnected networks that use standardized, open (non-proprietary) communication protocols
A sequence of direct connections
what is the worldwide web
A group of connected computers that can send or receive data
system of linked pages, programs and files. It is what you see when you're at a device and you're online.
a computer network consisting of interconnected networks that use standardized, open (non-proprietary) communication protocols
A sequence of direct connections
True or False: the internet is the network of connected computers that the web works on.
True
False
Define IP address
The unique number assigned to each device on the Internet.
A network that can continue to function even in the event of individual component failures. Important because elements of complex systems like a computer network fail at unexpected times, often in groups.
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.
Abstraction is a simplified representation of something more complex.
Define fault-tolerance.
The unique number assigned to each device on the Internet.
A network that can continue to function even in the event of individual component failures. Important because elements of complex systems like a computer network fail at unexpected times, often in groups.
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 simplified representation of something more complex.
Define redundancy.
The unique number assigned to each device on the Internet.
A network that can continue to function even in the event of individual component failures. Important because elements of complex systems like a computer network fail at unexpected times, often in groups.
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 simplified representation of something more complex.
Define abstraction.
The unique number assigned to each device on the Internet.
A network that can continue to function even in the event of individual component failures. Important because elements of complex systems like a computer network fail at unexpected times, often in groups.
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 simplified representation of something more complex.
Yes or No: Is there a limit to the number of devices that can connect to the Internet?
Yes
No
True or False: The Internet is a design philosophy, and the protocols of the Internet were designed to scale as new devices are added
True
False
What are the two symbols in the binary number system?
1
0
2
A
How many bits equal one byte?
4
8
16
32
What Computer Science term do we get from the words “binary digit?”
byte
bit
binary
digit
True or False: Odd numbers end in 1 in the binary number system
True
False
what happens to the base-10 values as each time you move left a place value?
Values go up by one
The values double
values go up by 10
How many numbers can be represented with 4 bits?
5:
0,1,2,3,4
16:
0,1,2,3,4,5,6,7,8,9,10,
11,12,13,14,15
3:
0,1,2
Convert the following number:
Binary to Base 10
1000 0111
133
125
135
166
Convert the following number:
Binary to Base 10
1010 1011
181
125
171
166
Convert the following number:
Binary to Base 10
1001 1111
181
125
171
159
Convert the following number:
Base 10 to Binary
166
1010 0110
0010 1011
1000 0011
0010 1010
Convert the following number:
Base 10 to Binary
42
1010 0110
0010 1000
1000 0011
0010 1010
Convert the following number:
Base 10 to Binary
131
1010 0110
1110 1010
1000 0011
0010 1010
Convert the following number:
Base 10 to Binary
42
1010 0110
0010 1010
1000 0011
0010 1111
Which binary number is the largest?
1001, 1000 1001, 0001 0010, 1000 0000
1001
1000 1001
0001 0010
1000 0000
Do comments affect how a program runs?
Yes
No
What are four processes common to all computers?
printing
input
storage
processing
output
True or False:
In sequential programming commands run in the order they are written. In event-driven programming some commands run in response to user interactions or other events.
True
False
Which line(s) of code properly prints a string value to the console?
1
2
3
4
5
Which line(s) of code will cause an error?
1
2
3
4
5
What will print to the console when this program runs?
10
2
12
15
What will print to the console when this program runs?
12
8
20
26
What will print to the console when this program runs?
7
8
15
28
What will print to the console when this program runs?
"You are not in double digits"
"you are a treatment"
"You are legal"
"You are old(er)"
What will print to the console when this program runs?
"Go to school, please!"
"Go to work!"
"It is the weekend! No school today!"
"Do what you like!"
What will print to the console when this program runs?
"abcd"
"efg"
"efg"
"abcd"
"efg"
"efg"
"abcd"
"abcd"
"efg"
"efg"
You earned an extra life! never prints to the console. What would fix this issue?
Nothing
Remove var from line 63
Remove var from
line 61
What is the purpose of using functions? Select all
Functions help remove repeated code in a program
they make programs easier to debug
make the code more readable and easy to maintain
There is no purpose
Write the code to properly call this function.
function smallest();
smallest();
function();
Smallest();
This diagram shows 7 computing devices connected to the Internet with each line representing a direct connection. What is the minimum number of paths that would need to be broken to prevent computing device 3 from connecting with computing device 4?
3
2
4
1
What will the value of chairs be at the end of this flowchart?
(last question on Study guide)
1
2
3
4
