Multiple Choice
What will the following program display? #include <iostream>
using namespace std;
int main()
{
int a = 0, b = 2, x = 4, y = 0;
cout << (a == b) << " ";
cout << (a != b) << " ";
cout << (b <=x) << " ";
cout << (y > a) << endl;
return 0;
}
A) 0 1 1 0
B) 0 0 1 0
C) 1 1 0 1
D) 1 0 0 1
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Q26: You should be careful when using the
Q32: Without this statement appearing in a switch
Q35: x <= (y * 2)<br>A) 3, 4,
Q36: Which statement allows you to properly check
Q37: After execution of the following code,
Q40: Given the following code segment, what is
Q40: This operator represents the logical AND:<br>A) ++<br>B)
Q41: What is the value of the following
Q44: What is the output of the
Q47: If the sub-expression on the left side