WorksheetsComputer Science Final '24
Total questions: 10
Worksheet time: 9mins
What number will be output by the console.log command on line 7?
10
100
20
200
Which of the following is true of functions?
Programs written with functions run more quickly
Functions can help remove repeated code from a program
Replacing repeated code with a function will reduce the number of commands the computer needs to run
Functions are called once but can be declared many times
The mayor of a city is interested in learning what goals are most important for residents of the city. Members of her staff visit one of the many neighborhoods in the city and ask 20 residents to fill out a survey. The mayor is concerned that the survey may be biased and not accurately reflect the overall interests in her town. Which of the following strategies is MOST likely to address concerns about the data being biased or inaccurate
Finding the same people surveyed previously to ask more detailed questions.
Visiting the same neighborhood to collect more survey responses
Visiting multiple new neighborhoods to collect more survey responses
Having her staff collect the data using an app rather than paper surveys
Adding more staff to verify that the responses were accurate
Understanding of the life cycle of a program is an essential component to becoming an effective programmer. Which of the following is the best example of how the life cycle of a program should work?
Idea→algorithm→write code→execute code→maintain→debug
Idea→write code→algorithm→execute code→debug→maintain
Idea→algorithm→write code→debug→execute code→maintain
Idea→algorithm→write code→execute code→debug→maintain
7. 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
8. Emilee is watching an online video. The video is being sent to her laptop by a server over the Internet which splits the video into packets and sends them in the order they appear in the video. Which of the following is true about how the packets will arrive at her computer?
A. The packets will always be received in the order that they were sent
B. Either every packet will reach her computer or none of them will.
C. Packets that arrive out of order will be sent back to the server.
D. The packets may arrive out of order
Which of the following best describes how computing devices represent information?
A. A computer will either represent information as bits or bytes but not both
B. A computer represents data as a byte which is either a 0 or a 1
C. A computer represents data as bits which is either a 0 or a 1
D. A computer represents information as bits which contain 8 bytes
Which of the following binary (base-2) numbers is LARGEST?
A. 11000000
B. 01111111
C. 00000001
D. 10111111
