Question: Question 1 In Java, case and switch are reserved words, but break is not a reserved word. T True F False Question 2 ' A
Question
In Java, case and switch are reserved words, but break is not a reserved word.
T
True
F
False
Question
Aa && y
Based on the code above, which part of the expression is not evaluated?
y
y
Question
Which of the following is NOT a relational operator in Java?
Question
Aa && y
What is the value of the expression above?
true
false
x
It cannot be determined.
Question
Including a semicolon before the action statement in a oneway selection causes a syntax error.
T
True
F
False
Question
Suppose str and str are String variables. The expression str str determines whether str and str point to the same String object.
T
True
F
False
Question
Which of the following will cause a syntax error?
num && num
num
num && num
num && num
Question
The symbol is a logical operator.
T
True
F
False
Question
Suppose that you have the following code:
int sum ;
int num ;
if num
sum sum num;
else if num
sum num ;
After this code executes, what is the value of sum?
Question
A computer program will recognize both and as the equality operator.
T
True
F
False
Question
The operators and have the same order of precedence.
T
True
F
False
Question
Suppose x and y The value of the expression x && y is true.
T
True
F
False
Question
Which of the following will cause a syntax error, if you are trying to compare x to
if x
if x
if x
if x
Question
is a relational operator.
T
True
F
False
Question
What does mean?
less than
greater than
less than or equal to
greater than or equal to
Question
The execution of a break statement in a switch statement terminates the switch statement.
T
True
F
False
Question
Which of the following is a relational operator?
&&
Question
In Java, &&and are called logical operators.
T
True
F
False
Question
If str is Hello and str is Hi which of the following could not be a result of strcompareTostr;
Question
int x;
x && KF :
Based on the code above, what is the value of x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
