Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Introduction to Java Programming - Activity#3
0
%
0
0
0
Back
Restart
Which of the following is the correct way to declare variables?
int num1, num2;
Oops!
Okay!
What is the final output of the code segment?
0
Oops!
Okay!
True or False: float primitive type can hold larger value than double primitive type.
False
Oops!
Okay!
Assuming that: int m=3, n=5; double x=4.0; Evaluate the following expression:
21.0
Oops!
Okay!
What is the output of the following Java program?
MySuperJava
Oops!
Okay!
What is the output of the following code segment?
21
Oops!
Okay!
What is the value of result after executing the following statements?
119
Oops!
Okay!
What is the output of the above code segment?
6
Oops!
Okay!
True or False: In the expression x %= 10, x is divided by 10 and the integer result is stored in x.
False
Oops!
Okay!
Which of the following is not an arithmetic operator?
=
Oops!
Okay!
True or False: String is not a primitive type.
True
Oops!
Okay!
What is the alternative expression of m += n?
m = m + n
Oops!
Okay!
What is the output of the following code segment?
2
Oops!
Okay!
Which of the following is used as a compound assignment operator?
+=
Oops!
Okay!
What is the output for the above code segment?
10
Oops!
Okay!
What is the final result of the following expression as evaluated by Java? (2*20-6/3)%4
2
Oops!
Okay!
Which of the following is the appropriate data type for the above example?
boolean
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies