βSTOP!β Before you look at the answers make sure you gave this practice quiz a try so you can assess your understanding of the concepts covered in unit 3. Click here for the practice questions: AP Computer Science A Unit 3 Multiple Choice Questions.
Facts about the test: The AP Computer Science A exam has 40 multiple choice questions and you will be given 90 minutes to complete the section. That means it should take you around 34 minutes to complete 15 questions.
*The following questions were not written by CollegeBoard and although they cover information outlined in the AP Computer Science A Course and Exam Description the formatting on the exam may be different.
1. An event that occurs during the execution of a program, that disrupts the normal flow of the instruction is called...
A. comment line
B. exception
C. static
D. method
Answer: This is the definition of exception.
2. Items whose value does not change are called...
A. variable
B. stay-same
C. literal
D. unvariable
Answer: This is the definition of a literal item.
3. A program error that makes it do something other than what the programmer intended is called a...
5. Assume that x & y are boolean variables that have been properly initialized. What will the output be if the value of x is true and the value of y is false?
15. Which of the following statements determines whether a person is ineligible for a junior or senior discount, assuming that a person is eligible for the discount if they are younger than 18 or older than 62?
A. age >= 18 && age > 62
B. age >= 18 || age <= 62
C. age >= 18 && age <= 62
D. age <= 18 || age >= 62
Answer: This question tests your knowledge of Boolean syntax.