Java OOPs - 2

Java OOPs - 2

University

10 Qs

quiz-placeholder

Similar activities

TCP1121 - Quiz 6 Bonus

TCP1121 - Quiz 6 Bonus

University

8 Qs

Rapid Round 1

Rapid Round 1

University

10 Qs

Java Quiz 2 based on loop and if else

Java Quiz 2 based on loop and if else

University

10 Qs

1D Array

1D Array

University

10 Qs

Python Conditional Statements

Python Conditional Statements

University

8 Qs

C++ Puntatori

C++ Puntatori

University

9 Qs

D-Bug (C++)

D-Bug (C++)

University

15 Qs

Programming C

Programming C

University

10 Qs

Java OOPs - 2

Java OOPs - 2

Assessment

Quiz

Computers

University

Hard

Created by

ALDO STALIN J L

Used 54+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

peep

bark

meow

Compilation fails

An exception is thrown at runtime.

2.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

p0 = p1;

p1 = p2;

p2 = (ClassC)p4;

p2 = (ClassC)p1;

p1 = (ClassB)p3;

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?