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

Verified
Correct Answer:
Verified
Q18: What is the value of the following
Q19: What is the output of the
Q20: When an if statement is placed within
Q21: What is the output of the following
Q22: This operator takes an operand and reverses
Q23: Input values should always be checked for<br>A)
Q26: You should be careful when using the
Q27: The value of result in the following
Q28: Which statement allows you to properly check
Q29: The default section is required in a