true or false 1. if (a < 3 && b > x && c != 12) { ... } when a equals 10, C++ wi
ID: 3553945 • Letter: T
Question
true or false
1. if (a < 3 && b > x && c != 12) { ... }
when a equals 10, C++ will short-circuit, report the answer as false,not evaluate the entire logical expression to determine the answer and skip over the statement block inside the { }s.
my choice: true
2. A function may accept either pass-by-reference or pass-by-value parameters, but not both in the same function.
my choice: true
3. In C++, when float variables are left uninitialized, their initial value will not equal zero.
my choice: false
4. Within a C++ program, all variables regardless of their type go thru a "life-cycle" which includes declaration, initialization, usage and finally dying off when the variable falls out of scope.
my choice: false
MC
1. Pam the Programmer wants to ensure that a few lines of code are only run when a certain circumstance occurs. Which kind of statement should she use?
Explanation / Answer
1. true
2. false (Try running a code[one parameter as &var1 and the other as var2] using both. It will work. )
3. true (such values are called garbage values)
4.true (that is how memory is used)
1. a. if statement (you chose do-while but in do-while the control enters the loop at least once because the while is written after the body)
2. d . optional
3.a. return statement
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.