AP Computer Science Principles Unit 2, Quiz 2 (Edhesive)
This deck covers key concepts from the AP Computer Science Principles Unit 2, Quiz 2, including assumptions about hardware processing speeds, code outcomes, and characteristics of undecidable problems.
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 double the current processing speeds.
Key Terms
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 double the current processing speeds.
Consider the following code.
Assuming that before this code is run, x = 1. What would be displayed at the end?
16
What will be the result of running the following block of code if mouse x = mouse y?
The sound "dog2" will be played.
The block of code below is a small portion of a program. Which of the following starting values of n would make this portion of a program repeat the most amount of times?
2
Which statement below best describes the characteristics of an undecidable problem?
No algorithm can be constructed that always leads to a correct solution to the problem.
Which of the following are examples of abstraction?
Select two answers.
A programmer writes a procedure called volumeSphere which has a parameter radius and computes the area of a sphere with that radius. She uses this ...
Related Flashcard Decks
Study Tips
- Press F to enter focus mode for distraction-free studying
- Review cards regularly to improve retention
- Try to recall the answer before flipping the card
- Share this deck with friends to study together
Term | Definition |
---|---|
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 double the current processing speeds. |
Consider the following code. | 16 |
What will be the result of running the following block of code if mouse x = mouse y? | The sound "dog2" will be played. |
The block of code below is a small portion of a program. Which of the following starting values of n would make this portion of a program repeat the most amount of times? | 2 |
Which statement below best describes the characteristics of an undecidable problem? | No algorithm can be constructed that always leads to a correct solution to the problem. |
Which of the following are examples of abstraction? | A programmer writes a procedure called volumeSphere which has a parameter radius and computes the area of a sphere with that radius. She uses this in her code each time the volume of a sphere needs to be computed. |