Question: To render the logical concept if a is true and b is true, in c++, I would code: if (a = true & b =
To render the logical concept if a is true and b is true, in c++, I would code:
| if (a = true & b = true) |
| if (a && b) |
| if a == true && b == true |
| if a == true AND b == true |
| If(AND(a == 0, b == 0)) |
Flag this Question
Question 2 2.5 pts
A switch statement could be replaced by
| A break statement |
| An if.. else if |
| A nested if |
| A loop |
| None of these |
Flag this Question
Question 3 2.5 pts
The operator !> stands for
| not less than |
| not greater than |
| not equal to |
| assign and erase |
| this is not an operator in C++ |
Flag this Question
Question 4 2.5 pts
What is the conditional required to check to see if the number, num1, is even?
| if ((num1 % 2) == 0) |
| if (num1 / 2 == 0) |
| if (num1 * 2 ==0) |
| if ((num1 % 2) = 0) |
| if ((num1 % 2) != 0) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
