# AP Computer Science Quizzes & Trivia

A sample quiz to see if the ProProfs web sites is accessible to students at Oaks.

Questions: 5  |  Attempts: 483   |  Last updated: May 16, 2017
• Sample Question
All methods must have the following:    Questions: 20  |  Attempts: 219   |  Last updated: Aug 22, 2018
• Sample Question
Consider the following declaration:        final double FEE = 0.50; The value of the variable FEE cannot subsequently be altered in the program, and any attempt to do so will be caught by the compiler.  Questions to help prepare for the midterm exam in AP Computer Science.

Questions: 39  |  Attempts: 52   |  Last updated: May 7, 2019
• Sample Question
Which statement best describes a computer program? [Found in Quiz 1]    Questions: 15  |  Attempts: 14   |  Last updated: Nov 20, 2013
• Sample Question
Consider the following code: int n = -3; n = 100 / n + 4 What is the value of n after the code is run?       Related

## AP Computer Science Questions and Answers

• All methods must have the following:    AP computer science question from

• The IDE we use in class is:    AP computer science question from

• The correct declaration of a integer named i is:    AP computer science question from

• Consider the following declaration:        final double FEE = 0.50; The value of the variable FEE cannot subsequently be altered in the program, and any attempt to do so will be caught by the compiler.  AP computer science question from

• The following lines of code will swap the contents of the integer variables x and y: int z; x=y; y=z; z=x;  AP computer science question from

• The expression  !(a||b) is equivalent to (!a)&&(!b)  AP computer science question from

• Which statement best describes a computer program? [Found in Quiz 1]    AP computer science question from

• What translates high-level descriptions into machine code? [Appears on Quiz 1]    AP computer science question from

• In Java, every statement must end with this symbol. [Appears on Quiz 1]    AP computer science question from

• Consider the following code: int n = -3; n = 100 / n + 4 What is the value of n after the code is run?      AP computer science question from

• Consider the following code: int n = -3; n = 100 / (n + 4) What is the value of n after the code is run?      AP computer science question from

• Which of the following can be assigned to an int?     AP computer science question from