Review of OOPs Java Quiz1

Review of OOPs Java Quiz1

University

11 Qs

quiz-placeholder

Similar activities

Interface + java

Interface + java

University

8 Qs

BCSC0006 Quiz Collections

BCSC0006 Quiz Collections

University

10 Qs

CIUPC Java Day 1

CIUPC Java Day 1

University

14 Qs

Java

Java

University

15 Qs

QUIZ KELAS JAVA

QUIZ KELAS JAVA

University

10 Qs

OOP - Java Classes

OOP - Java Classes

12th Grade - University

15 Qs

Java quiz based on inheritance

Java quiz based on inheritance

University

10 Qs

Java Interface Quiz

Java Interface Quiz

University

9 Qs

Review of OOPs Java Quiz1

Review of OOPs Java Quiz1

Assessment

Quiz

Computers

University

Hard

Created by

Kundan Kumar

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following correctly defines a class in Java?

Car class { }

class Car { }

class Car();

object Car { }

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the keyword used to create an object in Java?

create

make

new

int

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Which of the following creates an object of Student?

Student();

Student s = new Student();

Student s = new ;

Student s = Student();

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to inherit a class in Java?

extend

extends

inherit

superclass

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In Java, a class can inherit from:

one class only

Multiple classes

Interfaces only

Any number of classes and interfaces

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct syntax to declare a package in Java?

package myPackage;

import package myPackage;

package: myPackage;

pack myPackage;

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which statement is used to access a class from another package?

use

include

import

access

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?