
Java OOPs - 2
Authored by ALDO STALIN J L
Computers
University
Used 54+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
peep
bark
meow
Compilation fails
An exception is thrown at runtime.
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Cat is-a Animal
Cat is-a Jumper
Dog is-a Animal
Beagle has-a Tail
Beagle has-a Jumper
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
public int blipvert(int x) { return 0; }
private int blipvert(int x) { return 0; }
private int blipvert(long x) { return 0; }
protected long blipvert(int x) { return 0; }
protected int blipvert(long x) { return 0; }
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
test
null
An exception is thrown at runtime.
Compilation fails because of an error in line 1.
Compilation fails because of an error in line 4.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Compilation fails.
An exception is thrown at runtime.
The attribute id in the Item object remains unchanged.
The attribute id in the Item object is modified to the new value.
A new Item object is created with the preferred value in the id attribute.
6.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
int foo() { /* more code here */ }
void foo() { /* more code here */ }
public void foo() { /* more code here */ }
private void foo() { /* more code here */ }
protected void foo() { /* more code here */ }
7.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
p0 = p1;
p1 = p2;
p2 = (ClassC)p4;
p2 = (ClassC)p1;
p1 = (ClassB)p3;
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
10 questions
OOPJ #1
Quiz
•
University
10 questions
Java Control Flow statements
Quiz
•
University
10 questions
Pemrograman Android KD 3.28/4.28
Quiz
•
1st Grade - Professio...
11 questions
Java Quiz 3 - Array
Quiz
•
University
10 questions
C++ Array Quiz
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
10 questions
P1_APLab2Quiz_B3B4
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