Edit Game
Introduction to Java Programming - Activity#3
 Delete

Use commas to add multiple tags

 Private  Unlisted  Public



 Save

Delimiter between question and answer:

Tips:

  • No column headers.
  • Each line maps to a question.
  • If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
  • The first answer in the multiple choice question must be the correct answer.






 Save   17  Close
Assuming that: int m=3, n=5; double x=4.0; Evaluate the following expression:
21.0
What is the output of the following code segment?
21
What is the output of the following code segment?
2
What is the alternative expression of m += n?
m = m + n
Which of the following is used as a compound assignment operator?
+=
Which of the following is the correct way to declare variables?
int num1, num2;
What is the output of the following Java program?
MySuperJava
Which of the following is the appropriate data type for the above example?
boolean
Which of the following is not an arithmetic operator?
=
What is the value of result after executing the following statements?
119
True or False: float primitive type can hold larger value than double primitive type.
False
True or False: String is not a primitive type.
True
True or False: In the expression x %= 10, x is divided by 10 and the integer result is stored in x.
False
What is the final result of the following expression as evaluated by Java? (2*20-6/3)%4
2
What is the final output of the code segment?
0
What is the output for the above code segment?
10
What is the output of the above code segment?
6