placeholder image to represent content

Quiz on C++

Quiz by Nancy Dias

Feel free to use or edit a copy

includes Teacher and Student dashboards

Measure skills
from any curriculum

Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.

With a free account, teachers can
  • edit the questions
  • save a copy for later
  • start a class game
  • automatically assign follow-up activities based on students’ scores
  • assign as homework
  • share a link with colleagues
  • print as a bubble sheet

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
16 questions
Show answers
  • Q1
    What punctuation is used to signal the beginning and end of code blocks?
    { }
    ( )
    Begin and End
    < >
    30s
  • Q2
    What is the correct way of displaying something on the screen?
    cin<< "Hello ,"World";
    cout<<Hello world;
    cout>>"Hello, World";
    cout<< "Hello, World";
    30s
  • Q3
    When a data type must contain decimal numbers, assign the type ?
    char
    long int
    float
    int
    30s
  • Q4
    When was C++ developed ?
    1980's
    1985
    1980
    1989
    30s
  • Q5
    To use cout and cin commands, you must specify which header file
    <iostream.h>
    <string.h>
    <cstdlib.h>
    <conio.h>
    30s
  • Q6
    Which command allows you to enter values while executing the program ?
    Goto
    cin
    cout
    main
    30s
  • Q7
    In C++, the % refers to __________________
    modulus operator
    data storage
    division
    percentages
    30s
  • Q8
    What is the only function all C++ programs must contain?
    program()
    system()
    main()
    start()
    30s
  • Q9
    What is looping?
    Executing different statements once
    Executing different set of statements a number of times.
    Executing same set of statements once.
    Executing same set of statements a number of times.
    30s
  • Q10
    Which of the following is a correct comment?
    ** Comment **
    /* Comment */
    { Comment }
    */ Comments */
    30s
  • Q11
    Which of the following is the correct operator to compare two variables?
    :=
    Equal
    ==
    =
    30s
  • Q12
    What punctuation ends most lines of C++ code?
    , (comma)
    : (colon)
    . (dot)
    ;(semicolon)
    30s
  • Q13
    If the English language follows formats and rules on grammar, what does C++ follow as counterpart?
    Grammar
    All the options are right
    Syntax
    Strings
    30s
  • Q14
    A computer program is simply _______________
    A set of instructions to tell a computer how to perform a particular task
    None of the above
    An exercise of the brain
    Pairs of computer system
    30s
  • Q15
    To perform decision making in a program which statement will you use : ___________________
    For ....... next
    None of the options
    Goto
    If........... else............ statement
    30s

Teachers give this quiz to your class