NEW
Font size
S
M
L
XL
WorksheetsC++ Quiz
Total questions: 10
Worksheet time: 8mins
Name
Class
Date
1.
The process of creating a new variable without value
a)
declaration
b)
naming
c)
instantiation
d)
assigning
2.
What does <= mean?
a)
less than
b)
greater than
c)
less than or equal to
d)
greater than or equal to
3.
What is the only function all C++ programs must contain?
a)
start()
b)
system()
c)
main()
d)
program()
4.
What punctuation is used to signal the beginning and end of code blocks?
a)
{ }
b)
-> and <-
c)
BEGIN and END
d)
( and )
5.
Which of the following is a correct comment?
a)
*/ Comments */
b)
** Comment **
c)
/* Comment */
d)
{ Comment }
6.
The process of creating a new variable without value
a)
declaration
b)
naming
c)
instantiation
d)
assigning
7.
What does <= mean?
a)
less than
b)
greater than
c)
less than or equal to
d)
greater than or equal to
8.
What does <= mean?
a)
less than
b)
greater than
c)
less than or equal to
d)
greater than or equal to
9.
A list of instructions that enable a computer to perform a specific task is a...
a)
Computer Program
b)
Algorithm
c)
Machine Code
d)
Binary Code
10.
Which command moves the shown text to the next line?
a)
\t
b)
\n
c)
\r
d)
\s
Reset
