Java OOP principles Summative test

Java OOP principles Summative test

University

60 Qs

quiz-placeholder

Similar activities

SWD392 Part II: Software Modeling

SWD392 Part II: Software Modeling

University

60 Qs

HTML, CSS, and JavaScript MCQs

HTML, CSS, and JavaScript MCQs

University

60 Qs

CS26 - Reviewer Part 1

CS26 - Reviewer Part 1

University

59 Qs

Maternity  Exam 2

Maternity Exam 2

University

65 Qs

GIS - GATE 2022 - II

GIS - GATE 2022 - II

University

60 Qs

SUPPOSITORIES CEUTICS FINAL EXAM

SUPPOSITORIES CEUTICS FINAL EXAM

University

59 Qs

Câu hỏi ôn tập OOP

Câu hỏi ôn tập OOP

University

56 Qs

ABM 215 - Preliminary Examination

ABM 215 - Preliminary Examination

University

60 Qs

Java OOP principles Summative test

Java OOP principles Summative test

Assessment

Quiz

Other

University

Hard

Created by

Jeffmark Pinaredondo

Used 7+ times

FREE Resource

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

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?