AP Computer Science Principles - Programming Review UPDATED ACTUAL Questions and CORRECT Answers
0 view 0 purchase
Course
AP Computer Science Principles - Programming
Institution
AP Computer Science Principles - Programming
AP Computer Science Principles -
Programming Review UPDATED ACTUAL
Questions and CORRECT Answers
When choosing a programming language, which of the following will not be determined by
the choice of language?
A. The clarity and readability of the code.
B. The data structures available.
C. T...
AP Computer Science Principles -
Programming Review UPDATED ACTUAL
Questions and CORRECT Answers
When choosing a programming language, which of the following will not be determined by
the choice of language?
A. The clarity and readability of the code.
B. The data structures available.
C. The syntax highlighting options available.
D. Whether or not a solution exists. - CORRECT ANSWER✔✔- D. Whether or not a
solution exists.
Which of the following statements are true about high-level programming languages? Select
two answers.
A. A high-level programming language often uses natural language elements.
B. A high-level programming language does not ensure program reliability.
C. A high-level programming language must be used to execute commands such adding and
multiplying.
D. a high-level program langauge allows for code re-use - CORRECT ANSWER✔✔- A. A
high-level programming language often uses natural language elements.
D. A high-level program language allows for code re-use
A team of students is programming a robot to find its way out of a maze(exact layout
unknown) for a national competition. The robot will be timed, and teams with the best times
will move on to the next level of the competition. What strategy should the team take?
A. Have the robot create a virtual map of the maze, return to the starting position, calculate
the quickest route, and take it.
B. Program the robot to move at maximum speed, turning left or right at random until it finds
the end.
C. Use a language most appropriate to the problem at hand, and us built-in functions, such as
rotate(RIGHT) and move(), to have the robot complete the task.
D. Create an algorithm which, although not finding the ideal solution, finds a reasonable
solution quickly. - CORRECT ANSWER✔✔- D. Create an algorithm which, although not
finding the ideal solution, finds a reasonable solution quickly.
, In researching a local deer population, a scientist has gathered much information about the
deer and is going to write a program to model population growth over time. She wants to
analyze how illness and population size are related to available food sources. Which of the
following factors most likely does not need to be included in her program:
A. Population size.
B. Food supply.
C. Antler size.
D. Prevalence of illness in herd. - CORRECT ANSWER✔✔- C. Antler size
Which of the following best describes an undecidable problem?
A. Heuristic methods are used to find a reasonable, but not the best, solution.
B. No algorithm can be constructed that always leads to a correct yes-or-no answer.
C. A binary sequence may or may not be applied correctly, given the particular data set.
D. Some data sets are so large that it is impossible for computing tools to facilitate the
discovery of connections in information. - CORRECT ANSWER✔✔- B. No algorithm can
be constructed that always leads to a correct yes-or-no answer.
What are the two aspects of efficiency?
A.execution time and memory usage
B. memory usage and length of code
C. execution time and length of code
D. wall clock time and CPU time - CORRECT ANSWER✔✔- A. execution time and
memory usage
A mathematician is working with a programmer to write a program to solve a problem using
high level mathematics. The mathematician asks the programmer to help her determine the
efficiency of the algorithm. How can the efficiency be determined? Select two answers.
A. Multiple inputs can be tested to determine how much cpu time would be required for the
algorithm to solve the problem for inputs of different sizes.
B. Ensure that all inputs are limited in complexity.
C. Count the number of statements in the program.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.49. You're not tied to anything after your purchase.