Term-long Review

Term-long Review

University

32 Qs

quiz-placeholder

Similar activities

CC103 - Activity 5

CC103 - Activity 5

University - Professional Development

29 Qs

Java Collections

Java Collections

University

31 Qs

OODJ-QUIZ2-E180322022

OODJ-QUIZ2-E180322022

University

30 Qs

Collections

Collections

University - Professional Development

30 Qs

UJIAN MID SEMESTER 1 XI RPL PEMODELAN PERANGKAT LUNAK

UJIAN MID SEMESTER 1 XI RPL PEMODELAN PERANGKAT LUNAK

University

30 Qs

Midterm Quiz | CSC 324 SPL

Midterm Quiz | CSC 324 SPL

University

30 Qs

DBC-IT104 Prelim Quiz

DBC-IT104 Prelim Quiz

University

30 Qs

UAS PBO

UAS PBO

University

30 Qs

Term-long Review

Term-long Review

Assessment

Quiz

Computers

University

Medium

Created by

Farah Habib

Used 8+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an advantage of proper encapsulation?

Encapsulation helps to enforce constraints

Encapsulated code uses less memory when executed

Encapsulation provides a more abstract view of classes

All of the above are advantages encapsulation provides

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_____ helps deal with complexity by hiding unnecessary details.

Abstraction

Access modifiers

Encapsulation

Privacy screens

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

private, public, and protected are examples of __________

Attribute modifiers

Method modifiers

Access modifiers

Static modifiers

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these variable assignments is valid?

int x = 5.7;

double x = "5";

char x = "A";

String x = "5";

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If A is a subclass of B, then which of the following is true:

Objects of type B can be stored in variables of type A

Objects of type A can be stored in variables of type B

Both of the above are true

None of the above is true

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To treat an object of type A as an object of type B, this must be true:

A implements the interface B

B is a descendant class of A

Both of the above can be true

None of the above are true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

'Upcasting' a variable is a safe operation that does not require an explicit typecast statement.

True

False

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?