Oops moment/1
Quiz
•
Engineering
•
University
•
Practice Problem
•
Medium
Mekha S R
Used 11+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to inherit a class in Java?
Implements
Inherits
Extends
Super
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which is the correct way to create an object of class Dog?
Dog d = Dog();
Dog d = new Dog;
Dog d = new Dog();
Dog = new d();
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword refers to the current object?
this
super
final
extends
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does method overloading mean?
Using multiple classes
Creating methods with same name but different parameters
Calling one method from another
Using one method in multiple classes
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What keyword is used to call a parent class constructor?
parent
this
extends
super
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the final keyword do when applied to a class?
It prevents inheritance
It allows only static methods
It makes the class abstract
It allows method overriding
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
class Animal {
void sound() {
System.out.println("Animal sound");
}
}
class Dog extends Animal {
void sound() {
System.out.println("Bark");
}
}
public class Main {
public static void main(String[] args) {
Animal a = new Dog();
a.sound();
}
}
Animal sound
Bark
Error
Nothing
Create a free account and access millions of resources
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
9 questions
INTRODUCTION TO BIM...
Quiz
•
University
10 questions
Quizz 1
Quiz
•
University
15 questions
DL Quiz1
Quiz
•
University
10 questions
Computer Architecture Quiz
Quiz
•
University
10 questions
C Programming Day-12
Quiz
•
University
10 questions
Recap Sessions 16 & 17
Quiz
•
11th Grade - University
10 questions
Semiconductors
Quiz
•
University
10 questions
The Oops moment/2
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Engineering
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
