
Quiz on C++
Quiz by Nancy Dias
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
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
16 questions
Show answers
- Q1What punctuation is used to signal the beginning and end of code blocks?{ }( )Begin and End< >30s
- Q2What is the correct way of displaying something on the screen?cin<< "Hello ,"World";cout<<Hello world;cout>>"Hello, World";cout<< "Hello, World";30s
- Q3When a data type must contain decimal numbers, assign the type ?charlong intfloatint30s
- Q4When was C++ developed ?1980's19851980198930s
- Q5To use cout and cin commands, you must specify which header file<iostream.h><string.h><cstdlib.h><conio.h>30s
- Q6Which command allows you to enter values while executing the program ?Gotocincoutmain30s
- Q7In C++, the % refers to __________________modulus operatordata storagedivisionpercentages30s
- Q8What is the only function all C++ programs must contain?program()system()main()start()30s
- Q9What is looping?Executing different statements onceExecuting different set of statements a number of times.Executing same set of statements once.Executing same set of statements a number of times.30s
- Q10Which of the following is a correct comment?** Comment **/* Comment */{ Comment }*/ Comments */30s
- Q11Which of the following is the correct operator to compare two variables?:=Equal===30s
- Q12What punctuation ends most lines of C++ code?, (comma): (colon). (dot);(semicolon)30s
- Q13If the English language follows formats and rules on grammar, what does C++ follow as counterpart?GrammarAll the options are rightSyntaxStrings30s
- Q14A computer program is simply _______________A set of instructions to tell a computer how to perform a particular taskNone of the aboveAn exercise of the brainPairs of computer system30s
- Q15To perform decision making in a program which statement will you use : ___________________For ....... nextNone of the optionsGotoIf........... else............ statement30s