A team of students is developing a program together. One student frequently dismisses others' ideas without discussion, and progress slows. According to AP CSP, what is the most effective collaborative practice to improve their development process?
Creative Development
Question · Easy
In an iterative and incremental development process, what is the recommended approach to building and improving a program over time?
A program is intended to count the number of even values in a list, but it returns an incorrect count. The programmer adds statements to display intermediate values while the program runs. What debugging technique is this?
Which of the following best describes a logic error in a program?
A development team documents the purpose and function of each part of their program as they build it. Why is this documentation valuable during creative development?
Question · Medium
When defining the purpose of a new program, which question is most directly addressed by a clear program specification?
Two programmers test a program by giving it many different inputs, including unusual or extreme values, to see how it behaves. This practice of choosing test inputs is best described as identifying:
A program produces a visualization, a sound, or an interactive experience. In AP CSP terms, such a program is best categorized as a computing:
During development, a programmer reuses an existing, well-tested procedure rather than writing new code for the same task. What is the primary benefit of this practice?
A team disagrees about a design decision. One member suggests creating a quick prototype to test the idea before committing to it. How does prototyping support the creative development process?
A programmer encounters an error message that prevents the program from running because a parenthesis was left unclosed. What type of error is this?
A development team divides a large program into smaller modules, with different members responsible for different modules. What is the main advantage of this approach?
How many bits are in one byte?
Data
What is the decimal (base 10) value of the binary number 1011?
Which of the following correctly describes the difference between lossy and lossless data compression?
A researcher has a very large dataset and uses a program to identify trends and patterns within it. This process of using data to gain insight is best described as:
Using 8 bits, how many distinct values can be represented?
A program combines a date of birth column and a ZIP code column from a dataset to estimate users' ages by region. Combining multiple data sources in this way is most likely to raise which concern?
A digital image is represented by storing a numeric color value for each pixel. This is an example of:
Why might a programmer choose lossy compression for a large collection of photographs intended for a website?
A scientist creates a graph from a dataset to make trends easier to see. In AP CSP, this transformation of raw data into a graphical form is called a:
The binary number 110 is added to the binary number 011. What is the result in binary?
Which statement about how computers represent very large numbers is correct?
An overflow error occurs when:
A company stores customer purchase histories and analyzes them to recommend products. Which of the following is a legitimate concern about this use of data?
Which of the following is the best reason that metadata can be useful when working with a large collection of files?
A program filters a dataset to keep only records where the temperature exceeds 90 degrees. This operation is best described as:
When a larger dataset is available, why can patterns and correlations sometimes be identified more reliably?
Question · Hard
The decimal number 20 is converted to binary. What is its binary representation?
A streaming service uses a program to detect which songs a user skips and which they replay, then adjusts recommendations. This is an example of:
Why is binary (base 2) used to represent data inside digital computers?
A team cleans a dataset before analysis by removing duplicate rows and correcting misspelled category labels. Why is this step important?
In the AP CSP pseudocode, the expression a MOD b evaluates to what?
Algorithms And Programming
A variable count is set to 0, then a loop runs exactly 5 times, increasing count by 2 each time. What is the value of count after the loop ends?
Which control structure causes a block of code to execute only when a specified condition is true?
A list scores contains the values [4, 8, 15, 16]. Using 1-based indexing as in AP CSP pseudocode, what does scores[3] return?
What is the primary purpose of using a procedure (also called a function or method) in a program?
Consider the Boolean expression (x > 5) AND (x < 10). For which value of x is this expression true?
An algorithm repeats a set of steps until a list is fully processed. This repetition of steps in an algorithm is known as:
A procedure isEven(n) should return true when n is an even number. Which expression correctly determines whether n is even?
Why might a programmer use a list rather than many separate individual variables to store 100 test scores?
An algorithm checks every item in an unsorted list one at a time until it finds a target value. What type of search is this?
A binary search can be used to efficiently find a value in a list only if the list is:
Two algorithms solve the same problem, but one is much faster on large inputs. Comparing how the running time grows as the input size increases is called analyzing the algorithm's:
A problem that cannot be solved by any algorithm in any reasonable amount of time, or at all, illustrates the concept that:
A program uses a fast approximate strategy that does not guarantee the optimal answer but produces a good-enough solution quickly for a hard problem. This strategy is called a:
A weather program runs many trials with random rainfall values to estimate flooding risk. Building a model of a real-world process to study its behavior is called a:
Which of the following is an advantage of using a simulation instead of conducting a real-world experiment?
Loading more…