Question: Java Question 1 (1 point) For the multiple assignments: int a = 3, b = 4, c = 5; What's the value of a <
Java
Question 1 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of a < b?
Question 2 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of !(a < b)?
Question 3 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of a <= b?
Question 4 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of b <= c?
Question 5 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of !(b <= c)?
Question 6 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of (a < b) && (b <= c)?
Question 7 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of !(a < b) && (b <= c)?
Question 8 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of (a < b) && !(b <= c)?
Question 9 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of !(a < b) && !(b <= c)?
Question 10 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of (a < b) || (b <= c)?
Question 11 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of !(a < b) || (b <= c)?
Question 12 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of (a < b) || !(b <= c)?
Question 13 (1 point)
For the multiple assignments: int a = 3, b = 4, c = 5;
What's the value of !(a < b) || !(b <= c)?
Question 14 (1 point)
Assume age is 24, weight is 140, what is (age <= 18) && (weight >= 140)?
Question 15 (1 point)
Assume age is 24, weight is 140, what is (age <= 18) && (weight < 140)?
Question 16 (1 point)
Assume age is 24, weight is 140, what is (age > 18) && (weight > 140)?
Question 17 (1 point)
Assume age is 24, weight is 140, what is (age > 18) && (weight >= 140)?
Question 18 (1 point)
Assume age is 50 and weight is 135, what is (age > 34) || (weight <= 140) ?
Question 19 (1 point)
Assume age is 50 and weight is 150, what is (age > 34) || (weight <= 140) ?
Question 20 (1 point)
Assume age is 18 and weight is 135, what is (age > 34) || (weight <= 140) ?
Question 21 (1 point)
Assume age is 18 and weight is 150, what is (age > 34) || (weight <= 140) ?
Question 22 (1 point)
What is 3 + 4 * 4 > 1 + 5 * (4-2) || 5 < 7?
Question 23 (1 point)
What is 3 + 4 * 4 > 1 + 5 * (4-2) || 5 < 7 && 4 < 3
Question 24 (2 points)
Write a Boolean expression so that it is true if the variable number is divisible by 2 and 3. Please don't use any parenthesis. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Question 25 (2 points)
Write a Boolean expression so that it is true if the variable year contains a leap year number. A year is a leap year if it is divisible by 4 but not by 100, or it is divisible by 400.
Please don't use any parenthesis. If you do, you will lose all the points. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Question 26 (2 points)
Write a Boolean expression so that it is true if the double variable bmi contains a value that interprets as Obese, That is, 25.0 <= bmi < 30.0
Please don't use any parenthesis. If you do, you will lose all the points. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Question 27 (2 points)
Assume that a program randomly generates a lottery of a two-digit number and prompts the user to enter a two-digit number. Assume that the first and second digits of the lottery number are extracted and stored in variable lottery1 and lottery2 respectively. Assume that the first and second digits of the user-entered number are extracted and stored in variable user1 and user2 respectively. Write a Boolean expression that is true if the user input matches the lottery in exact order.
Please don't use any parenthesis. If you do, you will lose all the points. You can write a correct Boolean expression without using any parenthesis because of the order of operations (or operator precedence).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
