
mci java output 5
Authored by Vivek Chamaria
Computers
Professional Development
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
53 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
float myFloatNum = 5.99f;
System.out.println(myFloatNum);
What will be the output?
5.99
5.99f
"5.99"
"5.99"f
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int x = 5;
int y = 6
int z = 50;
System.out.println(x + y + z);
What will be the output?
61
5650
66
x + y + z
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is the right way of defining char variable?
char myGrade = 'B';
char myGrade = "B";
char myGrade 'B';
char myGrade = "B"
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int sum1 = 100 + 50;
int sum2 = sum1 + 250;
int sum3 = sum2 + sum2;
System.out.println(sum3);
What will be the final output?
950
800
sum2sum2
sum1250
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int x = 10;
x = x + 5;
System.out.println(x);
What will be the output?
15
5
55
x5
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
x /= 3
Which of the below statements matches with above statement?
x = 3 / x
x = x / 3
x / 3
x /x = 3
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
int x = 4;
System.out.println(x < 5 && x < 10);
What will be the output?
false
true
4
x < 5 && x < 10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?