
ieee
Authored by Rekha Patil
Engineering
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following is true about abstract classes?
Abstract class can have both abstract and non-abstract methods
) Abstract class can be instantiated directly
Abstract class cannot have constructors
Abstract class must contain only abstract methods
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you try to override a method in Java with a lower access modifier (e.g., protected → private)?
Works fine
Compile-time error
Runtime error
ignored
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about static blocks in Java is correct?
A class can have only one static block
Static blocks execute only when objects are created
Static blocks execute before the main method
Static blocks cannot modify static variables
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about method overloading in Java?
Methods must have different names
Methods must have different return types
Methods must have different parameter lists
Methods must belong to different classes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
class A{
A(){System.out.println("Constructor A");}
}
class B extends A{
B(){System.out.println("Constructor B");}
}
class C extends B{
C(){System.out.println("Constructor C");}
public static void main(String args[]){
new C();
}
}
Constructor A
Constructor B
Constructor C
Constructor A
Constructor C
Constructor B
Constructor A
Constructor B
Constructor C
Constructor B
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?
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
Discover more resources for Engineering
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University