
Java MCQ-1
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Amit Mandal
Used 2+ times
FREE Resource
Enhance your content in a minute
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is not the use of “this” keyword in Java?
Referring to the instance variable when a local variable has the same name
Passing itself to the method of the same class
Passing itself to another method
Calling another constructor in constructor chaining
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java program?
Compilation error
Runtime error
5 6 5 6
5 6 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the error in the following Java code?
b cannot contain value 50
b cannot contain value 100, limited by its range
No error in this code
* operator has converted b 50 into int, which can not be converted to byte without casting
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java program?
1
2
6
7
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java program?
5
6
14
compilation error
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java program?
1
2
Runtime Error
Compilation Error
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following Java code?
int float method
float int method
compile time error
run time error
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?
Similar Resources on Wayground
25 questions
TEST KULIAH UMUM 1
Quiz
•
University
25 questions
BDA-UNIT-2
Quiz
•
University
25 questions
IAS QUIZ 12
Quiz
•
University
25 questions
Quiz on Operating System Basics
Quiz
•
University
25 questions
Angular 4
Quiz
•
University
25 questions
Basics of Web Technology
Quiz
•
University
24 questions
Vocabulary #7 Quiz
Quiz
•
11th Grade - University
25 questions
PYTHON PROGRAMMING STRING Q6
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
