C++ Online Trivia Quiz

10 Questions | Total Attempts: 2347

SettingsSettingsSettings
C++ Online Trivia Quiz - Quiz

Are you a good C++ programmer? Can you pass this C++ online trivia quiz? There are so many programming languages, but C++ is one of the most used programming languages. C++ is a very popular programming language. C++ is good for creating computer programs and is one of the most used languages in game development. You will test and improve your knowledge of this language through these questions on the quiz. All the best!


Questions and Answers
  • 1. 
    What is the correct value to return to the operating system upon the successful completion of a program?
    • A. 

      0

    • B. 

      1

    • C. 

      2

    • D. 

      Programs do not return a value.

    • E. 

      -1

  • 2. 
    What symbol is used to state the beginning and the end of blocks of code?
    • A. 

      ( and )

    • B. 

      < and >

    • C. 

      -and-

    • D. 

      { and }

  • 3. 
    ^ symbol is used for Yes in C++.
    • A. 

      True

    • B. 

      False

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

      =

    • B. 

      ==

    • C. 

      Both

    • D. 

      None

  • 5. 
    Evaluate !(1 && !(0 || 1)).
    • A. 

      True

    • B. 

      False

  • 6. 
    Which of the following shows the correct syntax for an if statement?
    • A. 

      If {expression}

    • B. 

      If (expression)

    • C. 

      If expression

    • D. 

      None of the above

    • E. 

      All of the above

  • 7. 
    Which of the following is the boolean operator for logical-and?
    • A. 

      &

    • B. 

      &&

    • C. 

      |

    • D. 

      None of the above

  • 8. 
    How do you say "not equal to?"
    • A. 

      =

    • B. 

      ==

    • C. 

    • D. 

      !=

    • E. 

      -=

  • 9. 
    { is called a bracket.
    • A. 

      True

    • B. 

      False

  • 10. 
    What symbol is used for not in C++?
    • A. 

      N

    • B. 

      ^

    • C. 

      !

    • D. 

      *

    • E. 

      /*

Back to Top Back to top
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.