
Java OOPs - 2

Quiz
•
Computers
•
University
•
Hard
ALDO STALIN J L
Used 54+ times
FREE Resource
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;
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Tutorial 5 Quiz

Quiz
•
University
15 questions
Шаблоны проектирования

Quiz
•
University
10 questions
functions and recursion in C

Quiz
•
University
10 questions
Java Static

Quiz
•
University
10 questions
Inheritance

Quiz
•
University
6 questions
Quiz on methods

Quiz
•
University
10 questions
Java Module 2 Quiz

Quiz
•
University
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University