Mile Stone 2

Mile Stone 2

University

15 Qs

quiz-placeholder

Similar activities

AP CSA Unit 9 Inheritance - Polymorphism

AP CSA Unit 9 Inheritance - Polymorphism

University

10 Qs

AP CSA Inheritance Polymorphism

AP CSA Inheritance Polymorphism

University

10 Qs

Java Programming

Java Programming

University

20 Qs

CSC305: TOPIC 2

CSC305: TOPIC 2

University

15 Qs

Unit 2 Inheritance in Java

Unit 2 Inheritance in Java

12th Grade - University

15 Qs

java quiz on Encapsulation and Abstraction

java quiz on Encapsulation and Abstraction

University

10 Qs

keistimewaan OOP

keistimewaan OOP

University

15 Qs

Data Types Java Concepts

Data Types Java Concepts

University

19 Qs

Mile Stone 2

Mile Stone 2

Assessment

Quiz

Computers

University

Hard

Created by

Rahul Avulapati

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

The class that is being inherited or subclassed is called

Super class

Sub Class

both a&b

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

class Liquid
{
  void pour(){}
}
class Juice extends Liquid
{
  void filter(){}
}

The Liquid is a superclass and Juice is a subclass.

The Liquid is a Subclass and Juice is a Superclass.

There is no superclass or subclass

None

3.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What is the maximum number of levels possible in a Multilevel Inheritance in Java?

8

16

32

No maximum Level

4.

MULTIPLE CHOICE QUESTION

20 sec • 20 pts

What is the character encoding standard used in Java language?

ASCII

Unicode

Hexacode

Bytecode

Answer explanation

Unicode takes 2 Bytes of memory to represent all characters of all languages.

5.

FILL IN THE BLANK QUESTION

30 sec • 20 pts

What is the ASCII value of "A"___?

6.

MULTIPLE CHOICE QUESTION

20 sec • 20 pts

what is the output of the following command line?

System.out.println(1<<3);

3

1

8

Runtime Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

what is the output of the following code?

int m=1000;

int k=3000;

while(+ + m < - - k);

System.out.println(m);

2000

1000

Error

4000

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?