wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Science and Apps Spring Final

Total questions: 57

Worksheet time: 32mins

Name
Class
Date
1.

Define input.

a)

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.

b)

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.

c)

a collection of program statements. Programs run (or “execute”) one command at a time.

d)

The process of finding and fixing problems in code

2.

Define output.

a)

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.

b)

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.

c)

a collection of program statements. Programs run (or “execute”) one command at a time.

d)

The process of finding and fixing problems in code

3.

Define program.

a)

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.

b)

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.

c)

a collection of program statements. Programs run (or “execute”) one command at a time.

d)

The process of finding and fixing problems in code

4.

Define debugging

a)

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.

b)

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.

c)

a collection of program statements. Programs run (or “execute”) one command at a time.

d)

The process of finding and fixing problems in code

5.

What are examples of app input? 

a)

Buttons, clickable images, dropdown menus

b)

checkbox, slider, radio button, text input

c)

sound

d)

screen changes

6.

What is NOT an example of app output?

a)

Screen changes

b)

sound

c)

images

d)

text input

7.

Explain the difference between human and programming languages.

a)

Programming language is ambiguous

b)

Human language is more Precise

c)

Human language is often ambiguous, but programming languages are precise

d)

Human language is less ambiguous, Like programming language

8.

What are some beneficial debugging strategies? Check all that apply

a)

Keep code clean and organized, compare your code with what works

b)

use meaningful ID's, hand trace your code

c)

run your code frequently, talk to a partner

d)

familiarize yourself with the documentation

9.

Define documentation

a)

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.

b)

To combine Strings with other Strings, with numbers, or even with another variable

c)

affects the sequential flow of control by executing different statements based on the value of a Boolean expression

d)

a written description of how a command or piece of code works or was developed.

10.

Define concatenate.

a)

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.

b)

To combine Strings with other Strings, with numbers, or even with another variable

c)

affects the sequential flow of control by executing different statements based on the value of a Boolean expression

d)

a written description of how a command or piece of code works or was developed.

11.

Define conditional statement.

a)

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.

b)

To combine Strings with other Strings, with numbers, or even with another variable

c)

affects the sequential flow of control by executing different statements based on the value of a Boolean expression

d)

a written description of how a command or piece of code works or was developed.

12.

Define variable.

a)

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.

b)

To combine Strings with other Strings, with numbers, or even with another variable

c)

affects the sequential flow of control by executing different statements based on the value of a Boolean expression

d)

a written description of how a command or piece of code works or was developed.

13.

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

a)

True

b)

False

14.

Define computing device.

a)

A group of connected computers that can send or receive data

b)

A machine that can run a program

c)

A group of computers working together for a common purpose

d)

A sequence of direct connections

15.

Define computing system.

a)

A group of connected computers that can send or receive data

b)

A machine that can run a program

c)

A group of computers working together for a common purpose

d)

A sequence of direct connections

16.

Define computing network.

a)

A group of connected computers that can send or receive data

b)

A machine that can run a program

c)

A group of computers working together for a common purpose

d)

A sequence of direct connections

17.

Define path (as it relates to computing).

a)

A group of connected computers that can send or receive data

b)

A machine that can run a program

c)

A group of computers working together for a common purpose

d)

A sequence of direct connections

18.

Define bandwidth.

a)

A group of connected computers that can send or receive data

b)

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

c)

A group of computers working together for a common purpose

d)

A sequence of direct connections

19.

Define internet

a)

A group of connected computers that can send or receive data

b)

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

c)

a computer network consisting of interconnected networks that use standardized, open (non-proprietary) communication protocols

d)

A sequence of direct connections

20.

what is the worldwide web

a)

A group of connected computers that can send or receive data

b)

system of linked pages, programs and files. It is what you see when you're at a device and you're online.

c)

a computer network consisting of interconnected networks that use standardized, open (non-proprietary) communication protocols

d)

A sequence of direct connections

21.

True or False: the internet is the network of connected computers that the web works on.

a)

True

b)

False

22.

Define IP address

a)

The unique number assigned to each device on the Internet.

b)

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.

c)

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.

d)

Abstraction is a simplified representation of something more complex.

23.

Define fault-tolerance.  

a)

The unique number assigned to each device on the Internet.

b)

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.

c)

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.

d)

a simplified representation of something more complex.

24.

Define redundancy.

a)

The unique number assigned to each device on the Internet.

b)

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.

c)

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.

d)

a simplified representation of something more complex.

25.

Define abstraction.

a)

The unique number assigned to each device on the Internet.

b)

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.

c)

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.

d)

a simplified representation of something more complex.

26.

Yes or No: Is there a limit to the number of devices that can connect to the Internet?

a)

Yes

b)

No

27.

True or False: The Internet is a design philosophy, and the protocols of the Internet were designed to scale as new devices are added

a)

True

b)

False

28.

What are the two symbols in the binary number system?

a)

1

b)

0

c)

2

d)

A

29.

How many bits equal one byte?

a)

4

b)

8

c)

16

d)

32

30.

What Computer Science term do we get from the words “binary digit?”

a)

byte

b)

bit

c)

binary

d)

digit

31.

True or False: Odd numbers end in 1 in the binary number system

a)

True

b)

False

32.

what happens to the base-10 values as each time you move left a place value?

a)

Values go up by one

b)

The values double

c)

values go up by 10

33.

How many numbers can be represented with 4 bits?

a)

5:

0,1,2,3,4

b)

16:

0,1,2,3,4,5,6,7,8,9,10,

11,12,13,14,15

c)

3:

0,1,2

34.

Convert the following number:

Binary to Base 10

1000 0111

a)

133

b)

125

c)

135

d)

166

35.

Convert the following number:

Binary to Base 10

1010 1011

a)

181

b)

125

c)

171

d)

166

36.

Convert the following number:

Binary to Base 10

1001 1111

a)

181

b)

125

c)

171

d)

159

37.

Convert the following number:

Base 10 to Binary

166

a)

1010 0110

b)

0010 1011

c)

1000 0011

d)

0010 1010

38.

Convert the following number:

Base 10 to Binary

42

a)

1010 0110

b)

0010 1000

c)

1000 0011

d)

0010 1010

39.

Convert the following number:

Base 10 to Binary

131

a)

1010 0110

b)

1110 1010

c)

1000 0011

d)

0010 1010

40.

Convert the following number:

Base 10 to Binary

42

a)

1010 0110

b)

0010 1010

c)

1000 0011

d)

0010 1111

41.

Which binary number is the largest?

1001, 1000 1001, 0001 0010, 1000 0000

a)

1001

b)

1000 1001

c)

0001 0010

d)

1000 0000

42.

Do comments affect how a program runs?

a)

Yes

b)

No

43.

What are four processes common to all computers?

a)

printing

b)

input

c)

storage

d)

processing

e)

output

44.

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.

a)

True

b)

False

45.

Which line(s) of code properly prints a string value  to the console?

a)

1

b)

2

c)

3

d)

4

e)

5

46.

Which line(s) of code will cause an error?

a)

1

b)

2

c)

3

d)

4

e)

5

47.

What will print to the console when this program runs?

a)

10

b)

2

c)

12

d)

15

48.

What will print to the console when this program runs?

a)

12

b)

8

c)

20

d)

26

49.

What will print to the console when this program runs?

a)

7

b)

8

c)

15

d)

28

50.

What will print to the console when this program runs?

a)

"You are not in double digits"

b)

"you are a treatment"

c)

"You are legal"

d)

"You are old(er)"

51.

What will print to the console when this program runs?

a)

"Go to school, please!"

b)

"Go to work!"

c)

"It is the weekend! No school today!"

d)

"Do what you like!"

52.

What will print to the console when this program runs?

a)

"abcd"

"efg"

b)

"efg"

"abcd"

c)

"efg"

"efg"

"abcd"

d)

"abcd"

"efg"

"efg"

53.

You earned an extra life! never prints to the console. What would fix this issue?

a)

Nothing

b)

Remove var from line 63

c)

Remove var from

line 61

54.

What is the purpose of using functions? Select all

a)

Functions help remove repeated code in a program

b)

they make programs easier to debug

c)

make the code more readable and easy to maintain

d)

There is no purpose

55.

Write the code to properly call this function.

a)

function smallest();

b)

smallest();

c)

function();

d)

Smallest();

56.

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?

a)

3

b)

2

c)

4

d)

1

57.

What will the value of chairs be at the end of this flowchart?

(last question on Study guide)

a)

1

b)

2

c)

3

d)

4