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
Q) Strings in C++ are enclosed in.......... marks.
Anonymous Quiz
18%
single quotation
16%
double backlash
67%
double quotation
❤2👍1
Q)............... in C++ are enclosed in single quotation marks.
Anonymous Quiz
17%
strings
72%
character
10%
real numbers
👍1
true or false (√ or ×)
Q) A string containing no characters is called.........
Q) A string containing no characters is called.........
Anonymous Quiz
20%
a null string.
33%
an empty string.
47%
all of above.
👍1
Q) In strings, The position of the first character is 1, the position of the second character is 2, and so on.
Anonymous Quiz
58%
True (√)
42%
False (×)
👍1
Every ............. in a string has a relative position in the string.
Anonymous Quiz
22%
word
15%
string
62%
character
👍1
true or false (√ or ×)
Q) The length of a string is the number of characters in it.
Q) The length of a string is the number of characters in it.
Anonymous Quiz
82%
True (√)
18%
False (×)
👍1
Q) the contents of a named constant cannot be changed During ...........
Anonymous Quiz
19%
Editing program
55%
program execution
26%
program compilation
👍1
true or false (√ or ×)
Q) A named constant is declared by using the reserved word const.
Q) A named constant is declared by using the reserved word const.
Anonymous Quiz
82%
True (√)
18%
False (×)
👍1
Q) A named constant is initialized when it is............ .
Anonymous Quiz
30%
execution
13%
runtime
57%
declared
👍1
true or false (√ or ×)
Q) All variables must be declared before they can be used.
Q) All variables must be declared before they can be used.
Anonymous Quiz
89%
True (√)
11%
False (×)
👍1
true or false (√ or ×)
Q) C++ does not automatically initialize variables.
Q) C++ does not automatically initialize variables.
Anonymous Quiz
62%
True (√)
38%
False (×)
👍1
true or false (√ or ×)
Q) Every variable has a name, a value, a data type, and a size.
Q) Every variable has a name, a value, a data type, and a size.
Anonymous Quiz
93%
True (√)
8%
False (×)
👍1
true or false (√ or ×)
Q) When a new value is assigned to a variable, the old value is saved in another variable .
Q) When a new value is assigned to a variable, the old value is saved in another variable .
Anonymous Quiz
42%
True (√)
58%
False (×)
👍1