Quiz for Module3
Quiz
•
Professional Development
•
Professional Development
•
Hard
kodida priya
Used 64+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Suppose A is an abstract class, B is a concrete subclass of A. Both A and B have a default constructor.
Which of the following options are correct?
1. A a = new A();
2. A a= new B();
3. B b = new A();
4. B b= new B();
1 and 2
2 and 4
3 and 4
1 and 3
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the output:
a=10
a=20
Compilation Error at Line 3 : Constructor name should be same as that of class name.
Compilation Error at
Line 7 : Method cannot be both abstract and final,
Line 13 : Cannot override the final method.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the output:
welcome
10
20
Error in Line 2 : Modifier static not allowed here.
Error in Line 7: Modifier static not allowed here.
Compilation Error in both Line 2 and Line 7.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which one of the below options is correct as per the given piece of code?
SIMRAN
Compilation error : Final variable should be initialized before starting the execution.
Compilation error : Java does not allow final keyword before the constructor.
Compilation error : this keyword cannot be used with final variable.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Predict the output:
Application Successful
Application Successful
Method C
Compilation Error at Line 7 : Cannot extend multiple interfaces.
Compilation Error at Line 10 : Add unimplemented methods.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Identify the lines that can be replaced at /*Insert code here.*/ in the given code to display 100 successfully:
1. Testable.testValue;
2. Test.Testable.testValue;
3. Test.testValue;
4. new Test().testValue;
Option 1 and 2.
Option 2 and 3.
Option 1, 3 & 4.
All the four options.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output:
NullPointerException
9
5
None of the above
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
15 questions
Agile
Quiz
•
Professional Development
20 questions
Dussehra (Ramayana) quiz
Quiz
•
Professional Development
15 questions
LIS QUIZ FOR INSET
Quiz
•
Professional Development
20 questions
Hospitality Workshop
Quiz
•
Professional Development
17 questions
Differentiate between LO and LE
Quiz
•
Professional Development
18 questions
Onboarding day 2
Quiz
•
Professional Development
20 questions
Vocabulary: Housekeeping
Quiz
•
University - Professi...
20 questions
NEW 3
Quiz
•
Professional Development
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Professional Development
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
