18 questions
A program that Thomas has written is complete. It has been tested thoroughly, and some outputs were not as expected. Thomas is now going through the code carefully attempting to establish the cause of these errors and change the code to remove them. What is this procedure called?
Error check
Debugging
Development
Coding
Which of the following terms best describes the process of suppressing complex details of a system and presenting a simplified version with just the relevant details?
Abstraction
Programming
Creativity
Free Thinking
Which of the following best describes high-level computing languages?
They are very easy for machines to understand and parse
They are not very ambiguous
They are extremely difficult for humans to read and understand
They evolve naturally over time
Which of the following describes the part of a computer which stores instructions and information which has been input to the computer?
RAM
Machine Code
Binary
CPU
Consider the following statement which refers to the block {move 10 step}. When you execute this block in Scratch, your computer is actually doing several things: retrieving values from memory representing the direction and position of the sprite, performing an algorithm to update these values, and changing the display in the window to match the updated state of the program. All of these actions are represented by just one single block. Which of the following terms names the phenomenon which is best described by this statement?
Compilation
Iteration
Abstraction
Sequencing
Which of the following statements about low-level languages are true? Select two answers:
They are very rarely ambiguous
They are generally less readable by humans than other languages
They are difficult for machines and humans to parse
They are relatively easy for humans to write
Which of the following measures can a programmer take to help ensure that a program produces correct output? Select two answers.
Test multiple inputs on the program
Find the efficiency of the code
Develop the program in smaller steps, ensuring each step is correct
Calculate the time it takes to run the program
Which of the following is an important step to take before beginning to write the code for a program?
Randomly generate the variable names to be used in the program
Write on paper or a whiteboard all the code you intend to type
Plan the logic and anticipated input/output of the code
Plan an update and maintenance schedule for the program
Which of the following could be considered part of the beginning “state” of a Scratch program?
Visibility of sprites
The background image
The value of a variable
All of the above
An entrepreneur has hired a programmer to design software to take user input and convert it to appear a certain way. The programmer is not clear on the assignment, so he asks the entrepreneur to elaborate. Which of the following would be most helpful for the programmer to ask the entrepreneur to do to make the assignment clearer?
Give some examples of user input and what the result should look like
Write some sample code to show the programmer exactly what he wants
Sit side-by side throughout the debugging process
Select the most appropriate language for the application
For her 4th of July weather report, a local meteorologist wishes to predict the likelihood of the scheduled fireworks show being rained out by analyzing the most recent weather trends in the local vicinity. Which of the following sources of data would be the most appropriate for helping her make the prediction?
A floating-point value representing the daily rainfall total for July 4th of the previous year
A floating-point value representing the highest daily rainfall total over the last 365 days
A list of integers representing the previous years in which it has rained in the area on the 4th of July
A list of floating-point values representing the daily rainfall totals for the previous 10 days (June 24th through July 3rd)
Which of the following is used in the instructions below to determine how the task of “having breakfast” will be performed? Dump cereal in bowl Pour milk in bowl Eat cereal and milk Place spoon and bowl in dishwasher I. Sequencing II. Selection III. Iteration
I only
II only
I and III only
I, II, and III
A company is completing research and development for software which it is planning to produce in approximately 2 years time. Which of the following assumptions should the company make about the processing speeds of the hardware which will be used to run this software
The processing speeds of hardware which will exist in 2 years time will likely be slower since the technology will have aged.
The processing speeds of hardware which will exist in 2 years time will likely be the same as the current processing speeds.
The processing speeds of hardware which will exist in 2 years time will likely be slightly faster, but not enough to be noticeable.
The processing speeds of hardware which will exist in 2 years time will likely be double the current processing speeds.
Which of the following can be represented by a single binary digit?
A darkness setting on a toaster
The temperature setting of a thermostat
The direction of travel for an elevator
The speed limit on a major highway
If our list called List is populated as [0, 1, 2, 3, 4], what happens if our code tries to access List [5] per the rules of the AP Computer Science Principles Reference Guide?
An error message will be produced
The output will be 4
The output will be 1
The program gives us the number 5 because it comes after 4
Which of the following is not true about digitizing physical media?
When media is in a digital format, it is much easier to share with others.
We can more easily edit the media when it is in a digital form.
Media in a digital form is easier to sell and resell.
The digital version is always equally as good as the physical one in terms of quality.
Which of the following is NOT a benefit of making digital information and scientific databases openly available across the internet?
Innovations in medicine, business and science can be developed from the increased knowledge gained from large data sets.
Data scientists can discover previously unnoticed trends and patterns hidden within large data sets.
Scientific researchers can more easily share data and collaborate on related research projects.
Inaccurate and misleading data can be more easily disseminated to scientific researchers.
Which of the following best describes an effect of Moore’s Law?
The number of computers manufactured doubles every few years.
The number of malicious attacks on computers doubles about every two years.
The past record of increasing computing power has driven more investment in innovation
There is an end in sight in the power of computing.