Skip to content
Past Exams

2024 CMPP Computer Science Practice Exam With Answers (28 Solved Questions)

Get a head start on your exam with 2024 CMPP Computer Science Practice Exam With Answers, offering real past exam practice.

Preview 2 of 4 pages

See the first 2 pages exactly as they appear in the document.

  1. Page 1
    Read page 1 as text

    CMPP PRACTICE EXAM 2024: QUESTIONS WITH 100% CORRECT ANSWERS A byte is a collection of: - Correct Answer - Eight bits The purpose of validating the results of the program is: - Correct Answer - To determine whether the program solves the original problem Encapsulation refers to the combining of data and code into a single object. - Correct Answer - True Variables are: - Correct Answer - Symbolic names made up by the programmer that represents locations in the computer's RAM ____________ refers to the physical components that a computer is made of. - Correct Answer - Hardware Byte code instructions are: - Correct Answer - Read and interpreted by the JVM Key words are: - Correct Answer - Words that have a special meaning in the programming language Which of the following is valid? - Correct Answer - float w; w = 1.0f; Which of the following does not describe a valid comment in Java? - Correct Answer - Multi- line comments, start with */ and end with /* Which of the following statements correctly creates a Scanner object for keyboard input? - Correct Answer - Scanner keyboard = new Scanner(System.in); Character literals are enclosed in _____; string literals are enclosed in _____. - Correct Answer - single quotes; double quotes Which Scanner class method reads a String? - Correct Answer - nextLine() To compile a program named First, use the following command: - Correct Answer - javac First.java In an if/else statement, if the boolean expression is false, - Correct Answer - the statement or block following the else is executed

  2. Page 2

2 more pages in the full document

Unlock it once and it stays in your library, ready to chat with or turn into flashcards.

Unlock the full document
See all

Study this document with CramX

Once it is in your library, every tool can work from it.