WorksheetsAP Computer Science Midterm
Total questions: 65
Worksheet time: 33mins
Name
Class
Date
1.
Password
4 lines
2.
1. What are the binary digits of the decimal 6?
a)
00000111
b)
00000100
c)
00000110
d)
00000001
3.
2. A computer scientist is wanting to determine how many different bits can be used in his software he created. So he lists a row of place values 1-9. What did the computer scientist do wrong?
a)
The scientist did not go beyond 9
b)
The scientist is not suppose to go up to 9
c)
The computer scientist did not start with 0.
d)
Nothing, he did it just right.
4.
3. Johnny was tired of using wired chargers for his phone. So he created his a sketch of his own personal wireless charging pad.
This is an example of a
a)
Prototype
b)
Innovative Prototype
c)
Innovation
d)
Bit
5.
4. Which of the following best describes binary?
a)
A way of representing information using only two options
b)
A way of presenting information using one option
c)
A way of repesenting information using eight options
d)
A way of representing information using four options
6.
5. The single unit of information in a computer, typically represented as a 0 or 1 is a
a)
Byte
b)
Bit
c)
Decimal
d)
Prototype
7.
6. 8 Bits equal 1 _____________
a)
Decimal
b)
Byte
c)
Prototype
d)
Exponent
8.
7. Each time we add another bit, what happens to the amount of numbers we can make?
a)
Nothing
b)
It doubles
c)
It triples
d)
It quadruples
9.
Converting analog audio or video recordings into digital formats (like MP3 for audio or MP4 for video) is a form of
a)
Digitizing
b)
Prototyping
c)
Innovating
d)
Protype Innovating
10.
19. What is the decimal for the binary digit of 00111000
a)
48
b)
56
c)
52
d)
54
11.
22. What are the similarities and differences between the binary and decimal systems?
a)
They both use quantities but decimal does not have a limit while binary has only two options
b)
They both use numbers but decimals uses odd numbers while binary uses even numbers
c)
They both use quanities but decimal has only two options while binary has no limit
d)
There's no difference, there all the same
12.
23. How many bits are in one byte?
a)
4
b)
8
c)
2
d)
6
13.
24. In computer science what number do you start out with?
a)
1
b)
2
c)
0
d)
4
14.
25. What are the two binary digits?
a)
0 and 1
b)
1 and 2
c)
2 and 4
d)
4 and 6
15.
26. Johnny was concerned that his paper on his computer device might experience a faulty error and will lose all his saved work. So Johnny added a lot more components in his connection on the network he was suing to make sure that if there was a component failure, the connections would still run effectively. This is an example of
a)
Redundancy
b)
Fault Tolerance
c)
Router
d)
Internet Protocol
16.
27. Johnny instead of creating more components to make the connection, he made sure that the connections that he was using were all able to still run effectively even if there was a component failure. This is an example of
a)
Internet Protocol
b)
Fault Tolerance
c)
Rouder
d)
Redundancy
17.
28. A type of computer that forwards data across a network is a
a)
Path
b)
Laptop
c)
Bandwidth
d)
Router
18.
29. Which of the following statements is correct?
a)
When sending a message on a rouder, messages are sent in the same path all the time
b)
When sending a message on a rouder, messages are sent in different paths
c)
When sending a message on a rounder, the message will not send if there is traffic
d)
All of these are correct
19.
This protocol is responsible for making sure all the information is there before sending the information
a)
DNS
b)
TCP
c)
HTTP
d)
World Wide Web
20.
30. How will the router send message if there is a lot of traffic on the path its trying to be sent through?
a)
Go another path
b)
Go backwards
c)
Quit
d)
Goes through the traffic, it will just take longer
21.
31. Charlene wants to send a message but she notices that she is only able to send 10 characters in each message. So she breaks up the message in separate text messages so the message can be sent. This is an example of
a)
Reduncancy
b)
Internet Protocol
c)
Packet
d)
Rouder
22.
Serves as the internet's address book, translating human-readable domain names into IP addresses that computers use to identify each other on a network. It performs several essential functions:
a)
DNS
b)
TCP
c)
HTTP
d)
World Wide Web
23.
Responsible for ensuring reliable, ordered, and error-checked delivery of data packets over a network. It operates like a transport for data
a)
HTTP
b)
DNS
c)
TCP
d)
World Wide Web
24.
32. Which is more focused on accuracy?
a)
DNS
b)
TCP
25.
33. Which is more focused on speed?
a)
DNS
b)
TCP
26.
35. A machine that can run a program, including computers, tablets, servers, routers, and smart sensors is a ________
a)
Bandwidth
b)
Computing Device
c)
Computing Network
d)
Computing System
27.
36. A group of interconnected computing devices capable of sending or receiving data is a ________
a)
Bandwidth
b)
Computing Device
c)
Computing Network
d)
Computing System
28.
36. A group of interconnected computing devices that are working together for a common goal is know as ___________
a)
Bandwidth
b)
Computing Device
c)
Computing Network
d)
Computing System
29.
37. _______ is what enables the ability to send a message to a receiver
a)
Path
b)
Bandwidth
c)
Computer
d)
Calculator
30.
38. A protocol for sending data across the Internet that assigns unique numbers (IP addresses) to each connected device is a
a)
Internet Protocol (IP)
b)
Computing Network
c)
Computing Device
d)
Bandwidth
31.
39. What is the name of the assigned unique number for each connected device
a)
Internet Protocol (IP)
b)
Computing Network
c)
IP Address
d)
Bandwidth
32.
40. What is the definition of a bandwidth?
a)
The maximum amount of data that cane be sent in a fixed amount of time
b)
The width of data
c)
The size of data
d)
The protocol devices follow
33.
41. A machine that can run a program, including computers, tablets, servers, routers, and smart sensors is a ________
a)
Bandwidth
b)
Computing Device
c)
Computing Network
d)
Computing System
34.
51. Which translates domain names into IP addresses?
a)
DNS
b)
TCP
35.
53. _________ is responsible for requesting and sending information across the web
a)
DNS
b)
Packets
c)
TCP
d)
HTTP
36.
54. _______ a system of linked pages, programs, and files
a)
Computing system
b)
Computing network
c)
Packets
d)
World Wide Web
37.
55. The expression "Be" + 4 evaluates to "Be4". Is the evaluation a string for a number?
a)
String
b)
Number
38.
56. What are the only two values that a variable can have?
a)
Numbers and Strings
b)
Operations and Evalutions
c)
Expressions and Evlauations
d)
Positive and Negative
39.
57. for + ever evaluates to forever. What is wrong with this expression and evaluation?
a)
The wrong operator was used
b)
You cannot do an evaluation with words
c)
There are no quotes around the words
d)
There is nothing wrong
40.
58. The following expression is 3 + "D" evaluates to what?
a)
3D
b)
"3D"
c)
"Three D"
d)
Three D
41.
59. + - / * are all called what in JavaScript?
a)
Math symbols
b)
Operators
c)
Evaluations
d)
Expressions
42.
60. 4 + 2 = 6 . Which of the following is the expression?
a)
=6
b)
+
c)
4+2
43.
61. 4 + 2 = 6 . Which of the following is the evaluation?
a)
=6
b)
4+2
c)
+
44.
62. 4 + 2 = 6 . Which of the following is the operator?
a)
4+2
b)
=6
c)
+
45.
63. How many values can a variable have at one time.
a)
One
b)
Two
c)
Three
d)
Four
46.
64. The variable Phone has a value of 10. The variable Charger has a value of 4. The expression is Phone + Charger. What is the evaluation?
a)
10
b)
8
c)
14
d)
"Phone Charger"
47.
65. What does var mean in JavaScript
a)
Assigning numbers
b)
Assigning strings
c)
Assigning variable
d)
Assigning Expressions
48.
66. If a program says the variable zip has a value of 2 in line 1 but then later in line 4 it says it has a value of 5. What happens to the original value of 2?
a)
2 combines with 5
b)
2 gets deleted and 5 replaces it
c)
The variable has two values
d)
2 gets deleted
49.
67. If the variable Boo has a value of 12, what is the evaluation of Boo * 4?
a)
"Boo 4"
b)
12
c)
48
d)
28
50.
68. You have a program that reads the following
00 var pow
Which of the following happened in line 00?
a)
A new value was assigned
b)
A new string was assigned
c)
A new variable was assigned
d)
Nothing happened
51.
69. The following expressions says pow <--- 2 + 4. What is the first thing you do?
a)
Assign the variable
b)
Evaluate the expression 2 + 4
c)
Assign the operator
d)
Do not do anything
52.
70. && is an example of what kind of operator?
a)
Conditional Operator
b)
Logical Operator
53.
71. > is an example of what kind of operator?
a)
Conditional Operator
b)
Logical Operator
54.
72. == is an example of what kind of operator?
a)
Conditional Operator
b)
Logical Operator
55.
73. || is an example of what kind of operator?
a)
Conditional Operator
b)
Logical Operator
56.
74. ! is an example of what kind of operator?
a)
Conditional Operator
b)
Logical Operator
57.
75. < is an example of what kind of operator?
a)
Conditional Operator
b)
Logical Operator
58.
76. A data type that is either true or false
a)
Boolean Value
b)
Conditonal Operator
c)
Logical Operator
d)
Variable
59.
77. If you have True && False, what is the boolean evaluation?
a)
True
b)
False
60.
78. If you have True || False, what is the boolean evaluation?
a)
True
b)
False
61.
79. If you have True! , what is the boolean evaluation?
a)
True
b)
False
62.
80. 4+2 > 8 evaluates to
a)
False
b)
True
63.
81. Can I go to the movies? I’m allowed to if it’s before 10 o’clock. The variable is Time and value for Time is 11. The Boolean expression is Time < 10. Can I go to the movies?
a)
I can go
b)
I cant go
64.
82. Have I won the game? I have if my score * my lives is greater than 10. The Boolean expression is Score * Lives > 10. Score has a value of 14. Lives has a value of 1. What will the evaluation be?
a)
I have won
b)
I have lost
65.
83. Can I adopt a cat? I can if I have 40 dollars and I am over 14 years old. The boolean expression is Money == 40 || Age > 14. The Value for Money is 20 and the Value for Age 20. Which of the following is the conclusion I will reach?
a)
I can adopt a cat
b)
I can't adopt a cat
100 %
