Multiple Choice
Which line in the following program will cause a compiler error? 1 #include <iostream>
2 using namespace std;
3
4 int main()
5 {
6 int number = 5;
7
8 if (number >= 0 && <= 100)
9 cout << "passed.\n";
10 else
11 cout << "failed.\n";
12 return 0;
13 }
A) 6
B) 8
C) 10
D) 9
Correct Answer:

Verified
Correct Answer:
Verified
Q2: In C++ the = operator indicates:<br>A)equality<br>B)assignment<br>C)subtraction<br>D)negation<br>E)None of
Q10: This operator is used in C++ to
Q26: What will the following program segment
Q26: You should be careful when using the
Q28: The _ of a variable is limited
Q33: If you intend to place a block
Q35: x <= (y * 2)<br>A) 3, 4,
Q44: Which of the following expressions will determine
Q45: If the sub-expression on the left side
Q52: Both of the following if statements perform