
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
10 questions
Java Arrays

Quiz
•
University
10 questions
JavaScripting

Quiz
•
University
10 questions
Basics of C

Quiz
•
University
8 questions
Operating System - Chapter 4

Quiz
•
University
10 questions
cp06-01-1D-Array

Quiz
•
University
15 questions
Round 2 Debug-The-Code

Quiz
•
University
15 questions
ARRAYS AND FUNCTIONS

Quiz
•
University
15 questions
II CSM A & B

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University