Java Test4

Java Test4

University

50 Qs

quiz-placeholder

Similar activities

HCI 101 - Week 14

HCI 101 - Week 14

University

45 Qs

MIDTERM EXAMINATION - AUTOMATA THEORY

MIDTERM EXAMINATION - AUTOMATA THEORY

University

50 Qs

Instrumentation and Sensor Technologies - 1

Instrumentation and Sensor Technologies - 1

University

50 Qs

ITE 122- Formative Assessment # 3

ITE 122- Formative Assessment # 3

University

45 Qs

ICT in society

ICT in society

5th Grade - University

50 Qs

Software Development Quiz

Software Development Quiz

University

50 Qs

SE2 - Lesson 1 (Introduction to System and Analysis)

SE2 - Lesson 1 (Introduction to System and Analysis)

University

45 Qs

2.1 External Ports and Cables

2.1 External Ports and Cables

KG - Professional Development

54 Qs

Java Test4

Java Test4

Assessment

Quiz

Computers

University

Medium

Created by

Prof. Harish T. Gwalani

Used 3+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inheritance in Java?
Code duplication
Multiple method calling
Acquiring properties of one class into another
Overloading methods

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to inherit a class in Java?
import
extends
implements
inherits

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to refer to the immediate parent class?
this
super
base
parent

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'final' keyword mean when applied to a variable?
It can be changed
It cannot be changed
It can be inherited
It is temporary

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which class cannot be extended in Java?
abstract class
final class
static class
interface

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an abstract class?
A class with no name
A class with only private members
A class that cannot be instantiated
A class that can only contain variables

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an interface?
A class with methods
A blueprint of a class with abstract methods
A final class
An enum

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?