Latihan Online

7 Questions  I  By Ijaisa77
Please take the quiz to rate it.

Rock Band Quizzes & Trivia
The basics of C++

  
Changes are done, please start the quiz.


Questions and Answers

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
  • 1. 
    What is the correct value to return to the operating system upon the successful completion of a program?
    • A. 

      -1

    • B. 

      1

    • C. 

      0

    • D. 

      Programs do not return a value.


  • 2. 
    What is the only function all C++ programs must contain?
    • A. 

      Start()

    • B. 

      System()

    • C. 

      Main()

    • D. 

      Program()


  • 3. 
    What punctuation is used to signal the beginning and end of code blocks?
    • A. 

      {}

    • B. 

      ->and<-

    • C. 

      BEGIN and END

    • D. 

      ( and )


  • 4. 
    What punctuation ends most lines of C++ code?
    • A. 

      .

    • B. 

      ;

    • C. 

      :

    • D. 

      '


  • 5. 
    Which of the following is a correct comment?
    • A. 

      */ Comments */

    • B. 

      ** Comment **

    • C. 

      /* Comment */

    • D. 

      { Comment }


  • 6. 
    Which of the following is not a correct variable type?
    • A. 

      Float

    • B. 

      Real

    • C. 

      Int

    • D. 

      Double


  • 7. 
    Which of the following is the correct operator to compare two variables?
    • A. 

      :=

    • B. 

      =

    • C. 

      Equal

    • D. 

      ==


Back to top

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz
We have sent an email with your new password.