Search Header Logo

Java OOP principles Summative test

Authored by Jeffmark Pinaredondo

Other

University

Used 7+ times

Java OOP principles Summative test
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

60 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Indicate if the following lines of codes are legal or illegal. If legal select the resulting value. If illegal select Error.


String hello = new String("Hello world!");


int len = hello.length();

legal

11

illegal

Error

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

interface and implement keywords should be used side by side to run the program with abstraction.

True

False

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

which keyword is used in a program to set the variable or identifier's value fixed?

constant

const

cons

consts

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When a derived class is defined it also has all the attributes and methods of the base class

Polymorphism

Encapsulation

Inheritance

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The ability of a programming language to process objects differently  depending on their class.

Inheritance

Encapsulation

Polymorphism

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

An object's attributes are contained in the object and access to them is restricted to operations of that class

Inheritance

Polymorphism

Encapsulation

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The process of creating an actual named instance of class.

Instantiation

Overrriding

Method

Attribute

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?