C++ Programming Below are answers I got wrong on a quiz. But, sometimes answers
ID: 3775847 • Letter: C
Question
C++ Programming
Below are answers I got wrong on a quiz. But, sometimes answers that were marked wrong, were actually correct.
I need someone to verify the correct answers below. Thank you.
Question 1. In C++, the body of a for loop may never run even once.
True or False?
Correct answer = True
Question 2.
The statement:
loop -= ++count;
has the same effect as the statements:
count = count+1;
loop = loop - count;
True or False?
Correct answer = True
Question 3.
When working with floating-point numerical values, programmers must use care because floating-point numerical representations are always inexact.
True or False?
Correct answer = True
Question 4.
When C++ executes the statement:
x = 2 % 28;
x will be given the value
a. 2
b. 1
c. 0
d. 28
Correct answer = 2
Explanation / Answer
Question 1. In C++, the body of a for loop may never run even once.
True or False?
answer = True
Question 2.
The statement:
loop -= ++count;
has the same effect as the statements:
count = count+1;
loop = loop - count;
True or False?
answer = True
Question 3.
When working with floating-point numerical values, programmers must use care because floating-point numerical representations are always inexact.
True or False?
answer = False
It depends on dataType that you are using. use the required dataType at that point.
Question 4.
When C++ executes the statement:
x = 2 % 28;
a. 2
b. 1
c. 0
d. 28
answer = 2
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.