# AP Computer Science Quiz

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
| By Mr_gorman
M
Mr_gorman
Community Contributor
Quizzes Created: 2 | Total Attempts: 1,027
Questions: 5 | Attempts: 825

Settings

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

• 1.

### All methods must have the following:

• A.

Commas

• B.

Parenthesis

• C.

Quotes

• D.

Stuff

B. Parenthesis
Explanation
All methods must have parenthesis because they are used to enclose the arguments or parameters that are passed to the method. The parenthesis indicate where the method begins and ends, and they are necessary for the method to be properly executed. Without parenthesis, the method would not be able to receive any input or perform any actions. Therefore, parenthesis are a crucial component of any method in order for it to function correctly.

Rate this question:

• 2.

### The IDE we use in class is:

• A.

NetBeans

• B.

Shark

• C.

Eclipse

• D.

JavaMava

C. Eclipse
Explanation
Eclipse is the correct answer because it is mentioned as one of the options provided for the IDE used in class.

Rate this question:

• 3.

### The correct declaration of a integer named i is:

• A.

Integer = i;

• B.

Int = i;

• C.

Int i;

• D.

I = int;

C. Int i;
Explanation
The correct declaration of an integer named i is "int i;". This statement declares a variable named i of type integer.

Rate this question:

• 4.

### Adding additional classes to a program is done using what keyword?

• A.

Insert

• B.

Class

• C.

• D.

Import

D. Import
Explanation
In programming, the keyword "import" is used to add additional classes or libraries to a program. It allows the program to access and use the functionalities provided by the imported classes. By using the "import" keyword, the program can include and utilize code from external sources, making it easier to reuse code and extend the functionality of the program.

Rate this question:

• 5.

### What is missing from the following Java statement?gradeNumber = gradeNumber + 40

• A.

Quotes

• B.

Semi colon

• C.

Brackets

• D.

Braces

B. Semi colon
Explanation
The missing element from the given Java statement is a semi colon. In Java, a semi colon is used to mark the end of a statement. Without a semi colon, the statement is considered incomplete and will result in a compilation error. Therefore, the correct statement should be "gradeNumber = gradeNumber + 40;".

Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

• Current Version
• Mar 21, 2022
Quiz Edited by
ProProfs Editorial Team
• Nov 17, 2008
Quiz Created by
Mr_gorman

Related Topics