AP Computer Science Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Mr_gorman
M
Mr_gorman
Community Contributor
Quizzes Created: 2 | Total Attempts: 1,034
| Attempts: 833
SettingsSettings
Please wait...

    1/5 Questions
  • All methods must have the following:

    • Commas
    • Parenthesis
    • Quotes
    • Stuff
Please wait...
About This Quiz

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

AP Computer Science Quiz - Quiz

Questions and Answers
  • 2. 

    The IDE we use in class is:

    • NetBeans

    • Shark

    • Eclipse

    • JavaMava

    Correct Answer
    A. 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:

    • Integer = i;

    • Int = i;

    • Int i;

    • I = int;

    Correct Answer
    A. 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?

    • Insert

    • Class

    • Add

    • Import

    Correct Answer
    A. 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

    • Quotes

    • Semi colon

    • Brackets

    • Braces

    Correct Answer
    A. 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 (Updated): Mar 21, 2022 +

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
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.