Multiple Choice
For the following questions, refer to the class defined below:
import java.util.Scanner;
public class Questions
{
public static void main(String[ ] args)
{
int x, y, z;
double average;
Scanner scan = new Scanner(System.in) ;
System.out.println("Enter an integer value") ;
x = scan.nextInt( ) ;
System.out.println("Enter another integer value") ;
y = scan.nextInt( ) ;
System.out.println("Enter a third integer value") ;
z = scan.nextInt( ) ;
average = (x + y + z) / 3;
System.out.println("The result of my calculation is " + average) ;
}
}
-Questions33_34 computes
A) The correct average of x, y and z as a double
B) The correct average of x, y and z as an int
C) The average of x, y, and z as a double, but the result may not be accurate
D) the sum of x, y and z
E) the remainder of the sum of x, y and z divided by 3
Correct Answer:

Verified
Correct Answer:
Verified
Q4: What are the syntax errors from the
Q15: Consider having three String variables a, b,
Q19: Write an assignment statement to compute the
Q21: What value will z have if we
Q22: How do the statements "import java.util.*;" and
Q33: A double is wider than a float
Q38: Write a set of instructions to prompt
Q57: Given two points in an applet represented
Q59: A Java variable is the name of
Q67: The values of (double)5/2 and (double)(5/2) are