Quiz1_structureprogramming

20 Questions | Total Attempts: 50

SettingsSettingsSettings
Please wait...
Programming Quizzes & Trivia

My first quiz in Structure.


Questions and Answers
  • 1. 
    The set of instructions that tell the computer on how to solve problems.
    • A. 

      A. Computer Program

    • B. 

      B. Programming Development

    • C. 

      C. Computer Science

  • 2. 
    The std namespace contains the names defined in several standard C++ libraries, including ______.
    • A. 

      A. iosteam

    • B. 

      B. iostream

    • C. 

      C. Iostream

  • 3. 
    The C++ language is based on this programming language.  
    • A. 

      A. C Language

    • B. 

      B. Java

    • C. 

      C. Pascal

  • 4. 
    He is the developer of C++ .
    • A. 

      A. Barne Stroustrup

    • B. 

      B. Bjarne Stoustrap

    • C. 

      C. Bjarne Stroustrup

  • 5. 
    It  is used to type your C++ source code.
    • A. 

      A. Compiler

    • B. 

      B. Editor

    • C. 

      C. Linker

  • 6. 
    It will perform syntax checking of your C++ codes.
    • A. 

      A. Compiler

    • B. 

      B. Editor

    • C. 

      C. Linker

  • 7. 
    It must have this function in every C++ program.
    • A. 

      A. void

    • B. 

      B. float main()

    • C. 

      C. main()

  • 8. 
    It is a set of rules, symbols, and special words.
    • A. 

      A. Computer Program

    • B. 

      B. Programming Development

    • C. 

      C. Programming Language

  • 9. 
    In declaring variables, it must be start in anu number.
    • A. 

      True

    • B. 

      False

  • 10. 
    To begin with C++ program, you start with: int main()  
    • A. 

      True

    • B. 

      False

  • 11. 
    #include <iostream> using namespace std; - have correct syntax
    • A. 

      True

    • B. 

      False

  • 12. 
    #include is a preprocessor directive. Preprocessing occurs before compilation. This directive instructs the preprocessor to include the file iostreamat that point. iostreamis a library containing utilities that perform I/O.
    • A. 

      True

    • B. 

      False

  • 13. 
    All statements in C++ are terminated by colons.
    • A. 

      True

    • B. 

      False

  • 14. 
    Examples of valid identifiers/variables:
    • A. 

      A. id1, float, num3

    • B. 

      B. _empID, tax1, name

    • C. 

      C. emp ID, juniors09, 28num

  • 15. 
    An operator used for cout statement.
    • A. 

      A. extraction operator

    • B. 

      B. insertion operator

    • C. 

      C. insert

  • 16. 
    An operator used for cin statement.
    • A. 

      A. extraction operator

    • B. 

      B. insertion operator

    • C. 

      C. insert

  • 17. 
    The string data type is enclosed with double quotes.
    • A. 

      True

    • B. 

      False

  • 18. 
    The char data type is enclosed with double quotes.
    • A. 

      True

    • B. 

      False

  • 19. 
    Run-time errors occur when the executable is run and it incorrectly operates.
    • A. 

      True

    • B. 

      False

  • 20. 
    Linker errors, if detected are reported and no executable is created.
    • A. 

      True

    • B. 

      False