C Plus Plus - From 101 To 222 Multiple Choice

122 Questions | Total Attempts: 575

SettingsSettingsSettings
C Plus Plus Quizzes & Trivia

Are you an aspiring programmer and have just started learning C++ language? The quiz below is perfect for you and is from 101 to 222 and is a multiple-choice quiz to help you understand it better. All the best and keep an eye out for some more C++ quizzes. All the best.


Questions and Answers
  • 1. 
    111. In a flowchart, the parallelogram symbol is called the ____ symbol.
    • A. 

  • 2. 
    117. A #include ____ provides a convenient way to merge the source code from one file with the source code in another file, without having to retype the code.
    • A. 

  • 3. 
    136. The Or operator in C++ is ____.
    • A. 

  • 4. 
    142. If the code is X and the sales amount is 15000, the value of the bonus amount at the end of the algorithm will be ____.
    • A. 

  • 5. 
    173. Although the value of RAND_MAX varies with different systems, its value is always at least ____.
    • A. 

  • 6. 
    176. To use the time() function in a program, the program must contain the ____ directive.
    • A. 

  • 7. 
    183. The function header in a void function begins with ____.
    • A. 

  • 8. 
    185. Passing a variable’s value to a function is referred to as passing by ____.
    • A. 

  • 9. 
    195. When using bubble sort to sort an array in ascending order, at the end of the first pass, the ____ value is stored in the last position of the array.
    • A. 

  • 10. 
    101. Programs written in an assembly language require a(n) ____, which also is a program, to convert the assembly
    • A. 

      Compiler

    • B. 

      Assembler

    • C. 

      Interpreter

    • D. 

      Linker

  • 11. 
    102. The repetition structure is also referred to as a loop or as ____.
    • A. 

      Branch

    • B. 

      Iteration

    • C. 

      Select

    • D. 

      Repeat

  • 12. 
    103. Some high-level languages use a(n) ____ rather than a(n) ____.
    • A. 

      Interpreter, compiler

    • B. 

      Assembler, interpreter

    • C. 

      Assembler, compiler

    • D. 

      Assembler, linker

  • 13. 
    104. The Windows environment typically uses ____ such as check boxes, list boxes, and buttons.
    • A. 

      Registers

    • B. 

      Objects

    • C. 

      Procedures

    • D. 

      Mnemonics

  • 14. 
    105. The translation of an algorithm into a language that the computer can understand is referred to as ____ the algorithm.
    • A. 

      Paraphrasing

    • B. 

      Coding

    • C. 

      Implementing

    • D. 

      Converting

  • 15. 
    106. A coded algorithm is called a ____.
    • A. 

      Pseudocode

    • B. 

      Library

    • C. 

      Program

    • D. 

      Diagram

  • 16. 
    107. A programmer ____ a program by running it on the computer, using sample data to test the program’s accuracy.
    • A. 

      Evaluates

    • B. 

      Implements

    • C. 

      Benchmarks

    • D. 

      Codes

  • 17. 
    108. The purpose of analyzing a problem is to determine the goal of solving the problem and the items that are needed to
    • A. 

      Output

    • B. 

      Input

    • C. 

      Data

    • D. 

      Start symbol

  • 18. 
    109. Some programmers use a(n) ____ to organize and summarize the results of a problem analysis.
    • A. 

      Flowchart

    • B. 

      IPO chart

    • C. 

      Diagram

    • D. 

      Graph

  • 19. 
    110. In a flowchart, the oval symbol is called the ____ symbol.
    • A. 

      Input/output

    • B. 

      Process

    • C. 

      Selection

    • D. 

      Start/stop

  • 20. 
    112. ____ is called the insertion operator.
    • A. 

    • B. 

      ->

    • C. 

    • D. 

      >>

  • 21. 
    113. ____ is called the extraction operator.
    • A. 

    • B. 

      ->

    • C. 

    • D. 

      >>

  • 22. 
    114. ____ refers to the process of locating and removing any errors in a program.
    • A. 

      Debugging

    • B. 

      Testing

    • C. 

      Linking

    • D. 

      Compiling

  • 23. 
    115. ____ is an example of a syntax error.
    • A. 

      Cout

    • B. 

      Cin >> raiseRate;

    • C. 

      Cout

    • D. 

      Average = number1 + number2 / 2;

  • 24. 
    116. When you compile a Microsoft Visual C++ 2005 program, the compiler generates the appropriate object code, saving it automatically in a file whose filename extension is ____.
    • A. 

      .obj

    • B. 

      .o

    • C. 

      .exe

    • D. 

      .cpp

  • 25. 
    118. Variables and ____ are locations (within the computer’s internal memory) where a program can temporarily store data while the program is running.
    • A. 

      Classes

    • B. 

      Literal constants

    • C. 

      Processing items

    • D. 

      Named constants

Back to Top Back to top