Question
C++ coding, please help!!! Question 6 (1 point) The integer -1 is considered true. Question 6 options: True False Save Question 7 (1 point) Given
C++ coding, please help!!!
Question 6 (1 point)
The integer -1 is considered true.
Question 6 options:
True | |
False |
Save
Question 7 (1 point)
Given the following code fragment, and an input value of 0, what is the output that is generated?
int x;
cout
cin >> x;
if(x==0)
cout
else
cout
Question 7 options:
x is zero | |
x is not zero | |
unable to determine | |
x is 0 |
Save
Question 8 (1 point)
What is the opposite of x ? _______________________
_1_Question 8 options:
Save
Question 9 (1 point)
Does the code fragment below print "true" or "false"? int x=9; int y=10; int z=11; if (x
Question 9 options:
True | |
False |
Save
Question 10 (1 point)
What is the opposite of
_1_Question 10 options:
Save
Question 11 (1 point)
Does the code fragment below print "true" or "false"? int x=9; int y=10; int z=11; if (x
Question 11 options:
True | |
False |
Save
Question 12 (1 point)
The opposite of > is
Question 12 options:
True | |
False |
Save
Question 13 (1 point)
The opposite of (y >5 || z > 8) is (y
Question 13 options:
True | |
False |
Save
Question 14 (1 point)
Given the following code fragment, which of the following expressions is always true? int x; cin >> x;
Question 14 options:
if( x > 0) | |
if( x ) | |
if( (x 20) ) | |
if( (x 10) ) |
Save
Question 15 (1 point)
Given the following code fragment, and an input value of 5, what is the output? int x; cin >> x; if( x { cout } else { if( x { cout } else { if( x { cout } else { cout } } }
Question 15 options:
small | |
medium | |
large | |
giant |
Save
Question 16 (1 point)
The integer -1 is considered true.
Question 16 options:
True | |
False |
Save
Question 17 (1 point)
If x has the value of 3, y has the value of -2, and w is 10, is the following condition true or false? if( x
Question 17 options:
True | |
False |
Save
Question 18 (1 point)
The opposite of == is
Question 18 options:
True | |
False |
Save
Question 19 (1 point)
Given the following code fragment and the input value of 2.0, what output is generated? float tax; float total; cout cin >> total; if ( total >= 3.0) { tax = 0.10; cout } else { cout }
Question 19 options:
2.2 | |
2.0 | |
3.1 | |
4.4 |
Save
Question 20 (1 point)
Given the following code fragment, what is the output? int x=5; if( x > 5) cout cout cout
Question 20 options:
x is bigger than 5. That is all | |
x is bigger than 5 | |
That is all. Goodbye | |
Goodbye |
Save
Question 21 (1 point)
Given the following code fragment, and an input value of 6, what is the output? int x; cin >> x; if( x { cout } else { if( x { cout } else { if( x { cout } else { cout } } }
Question 21 options:
small | |
medium | |
large | |
giant |
Save
Question 22 (1 point)
What is the correct way to write the condition y >= x >= z?
Question 22 options:
(y >= x >= z) | |
( (y >= x) && z) | |
((y >= x) || (x >= z)) | |
((y >= x) && (x >= z)) |
Save
Question 23 (1 point)
What is the opposite of ( x > 5 || y
Question 23 options:
(x = 8) | |
(x = 8) | |
(x 8) | |
(y = 8) |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started