Q) A C++ ........... is a collection of functions.
Anonymous Quiz
7%
a) comment
68%
b) program
8%
c)pseudocode
17%
d) all of above
👍2👏1
Every C++ program has a function called......... .
Anonymous Quiz
18%
a) include
71%
b) main
11%
c) namespace std
👍1
Q) ............. comment starts with the pair of symbols // anywhere in the line.
Anonymous Quiz
12%
Multiline
83%
A single-line
5%
all of above
👍1
............. comments are enclosed between /* and */.
Anonymous Quiz
5%
A single-line
88%
Multiline
7%
all of above
👍1
👍1
👍1
Q) .............. cannot be used as identifiers in a program.
Anonymous Quiz
68%
Reserved words
15%
characters
17%
all of above
👍1
true or false (√ or ×)
Q) In C++, identifiers are names of things.
Q) In C++, identifiers are names of things.
Anonymous Quiz
84%
True (√)
16%
False (×)
👍1
Q) A C++ identifier consists of letters, digits, and underscores and must begin with............. .
Anonymous Quiz
55%
a letter or underscore
11%
a digit or underscore
16%
a letter or number
18%
non of above
👍1
true or false (√ or ×)
Q) Whitespaces include blanks, tabs, and newline characters.
Q) Whitespaces include blanks, tabs, and newline characters.
Anonymous Quiz
73%
True (√)
27%
False (×)
👍2
true or false (√ or ×)
Q) A data type is a set of values together with a set of operations.
Q) A data type is a set of values together with a set of operations.
Anonymous Quiz
76%
True (√)
24%
False (×)
👍2👏1
true or false (√ or ×)
Q) C++ data types fall into the following three categories: simple, structured, and pointers.
Q) C++ data types fall into the following three categories: simple, structured, and pointers.
Anonymous Quiz
80%
True (√)
20%
False (×)
👍1
true or false (√ or ×)
Q) There are three categories of simple data: integral, floating-point, and enumeration.
Q) There are three categories of simple data: integral, floating-point, and enumeration.
Anonymous Quiz
63%
True (√)
37%
False (×)
👍1
Q) The data type bool has only two values:................ .
Anonymous Quiz
26%
true and false.
34%
0 and 1
40%
all of above
👍2
Q) C++ provides three data types to manipulate decimal numbers:.............. .
Anonymous Quiz
74%
float, double, and long double
10%
short, double, and long double
16%
short, int , and long
👍1
true or false (√ or ×)
Q) The data type float is used in C++ to represent all of real numbers.
Q) The data type float is used in C++ to represent all of real numbers.
Anonymous Quiz
52%
True (√)
48%
False (×)
👍1
Q) The memory allocated for a value of the float data type is.......... .
Anonymous Quiz
7%
2 bytes
36%
4 bits
18%
8 bytes
38%
4 bytes
👍1
Q) The memory allocated for a value of the double data type is............ .
Anonymous Quiz
11%
8 bits
79%
8 bytes
9%
4 bytes
2%
4 bits
👍1
Q) The arithmetic operators in C++ are...........
Anonymous Quiz
10%
(&&), (||), (&),and (|).
85%
(+), (-), (*), (/), and (%).
5%
(!=), (==), (>),and(<).
👍2
👍1
Q).......... is a sequence of zero or more characters.
Anonymous Quiz
6%
A float
55%
A string
18%
A integer
21%
non of above
👍1