C++ Programming Language! Basic Trivia Questions Quiz

13 Questions | Total Attempts: 97

SettingsSettingsSettings
Please wait...
C++ Programming Language! Basic Trivia Questions Quiz

Below is a C++ programming language quiz that is perfect for someone who is willing to test their understanding of the use of this language or thinks they have forgotten some things. If this is you feel free to take the quiz and be warned that only the smartest have the ability to get all the questions right. All the best!


Questions and Answers
  • 1. 
    Select all names that are alternative names for projects? 
    • A. 

      Workspaces

    • B. 

      Solutions

    • C. 

      Programs

    • D. 

      Bundle

  • 2. 
    True or false? A statement in C++ is the smallest independent unit in the language? 
    • A. 

      True

    • B. 

      False

  • 3. 
    True or false? All statements in C++ aren't terminated by a semicolon.
    • A. 

      True

    • B. 

      False

  • 4. 
    What type of statement is ''int x;''? Check one that applies.
    • A. 

      Declaration statement

    • B. 

      Assignment statement

    • C. 

      Expression

    • D. 

      Return statement

  • 5. 
    An (expression) is an mathematical   ''              ''
  • 6. 
    Is ''x = 2 + 3;'' a valid assignment statement.
    • A. 

      True

    • B. 

      False

  • 7. 
    What do you have to do before using a variable? 
    • A. 

      Assign the variable

    • B. 

      Declare the variable

    • C. 

      Declare variable type

    • D. 

      Declare variable and variable type

  • 8. 
    A (function) is a "                   "
  • 9. 
    Every c++ program doesn't need to contain main()
    • A. 

      True

    • B. 

      False

  • 10. 
    All CPUs have the same (instruction sets)
    • A. 

      True

    • B. 

      False

  • 11. 
    Because machine language was so hard to develop with, what first language was developed? 
    • A. 

      C++

    • B. 

      Assembly

    • C. 

      Java

    • D. 

      None

  • 12. 
    True or false? 5 cannot be assigned as a variable? 
    • A. 

      True

    • B. 

      False

  • 13. 
    A variable that has not been assigned a value is called an "                             ''
Back to Top Back to top