Worksheets(1/8)APCS 17 WEEKS until AP EXAM (old 7 wks)
Total questions: 9
Worksheet time: 5mins
Name
Class
Date
1.
Which of the following is true of how computers represent numbers?
a)
Using a fixed but large number of bits can eliminate the possibility of round off error when representing numbers in binary
b)
With a fixed number of bits some numbers are too large to represent in a computer which will lead to overflow errors.
c)
Using a fixed but large number of bits, for example 128, eliminates the possibility of overflow errors.
d)
With a large but fixed number of bits it is possible to eliminate either round-off errors or overflow errors, but not both.
e)
I have not learned this yet.
2.
Convert the binary number 1001 to decimal (base-10).
a)
9
b)
10
c)
16
d)
17
e)
I have not learned this yet.
3.
Which of the following is true of lossy and lossless compression algorithms
a)
Lossy compression algorithms are used when perfect reconstruction of the original data is important.
b)
Lossy compression algorithms are typically better than lossless compression algorithms at reducing the number of bits needed to represent a piece of data.
c)
Lossless compression algorithms are only used to compress text data.
d)
Lossless compression algorithms only allow for an approximate reconstruction of the original data.
e)
I have not learned this yet.
4.
Which of the following is true of how the Internet has responded to the increasing number of devices now using the network?
a)
The Internet protocols are changed every year to adapt to the new devices that have been connected to the network
b)
While the number of devices connected to the Internet has grown, the network itself has not grown
c)
The protocols of the Internet were designed to scale as new devices are added
d)
The protocols of the Internet are no longer necessary thanks to the large number of devices now connected to the network
e)
I have not learned this yet.
5.
Which of the following is true of how packets are sent through the Internet?
a)
Packet metadata is only included on important packets to indicate they should get access to faster paths through the network
b)
Packet metadata is used to route and reassemble information travelling through the Internet
c)
Information sent through the internet is only encapsulated in packets if the message is too large to be sent as a datastream
d)
Information sent through the internet is split into two packets, one which contains the message and another which contains the metadata
e)
I have not learned this yet.
6.
If the user does NOT click the button what color will "topButton" be when this program finishes running?
a)
red
b)
blue
c)
green
d)
orange
e)
I have not learned this yet.
7.
Which line of code in this program is MOST likely to result in an error?
a)
Line 1
b)
Line 2
c)
Line 3
d)
Line 4
e)
I have not learned this yet.
8.
Which of the following BEST describes the differences between sequential and event-driven programming?
a)
In sequential programming commands run one at a time. In event-driven programming all commands run at the same time.
b)
In sequential programming commands run faster than in event-driven programming.
c)
In sequential programming each command is run many times in sequence. In event-driven programming all commands are run a single time as an event.
d)
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.
e)
I have not learned this yet.
9.
This function chooses the screen to display based on the score. What is the correct way to call this function? (Look carefully)
a)
Option 1
b)
Option 2
c)
Option 3
d)
Option 4
e)
I have not learned this yet.
100 %
