Term-long Review

Term-long Review

University

32 Qs

quiz-placeholder

Similar activities

CISSP CH2 Asset Security

CISSP CH2 Asset Security

University

34 Qs

DCI 2025 Quiz 1

DCI 2025 Quiz 1

University

30 Qs

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

30 Qs

Computer Security 1

Computer Security 1

University

30 Qs

Unit-2 cryptography primitives

Unit-2 cryptography primitives

University

33 Qs

OOPS Live Quiz

OOPS Live Quiz

University

28 Qs

CW412 PART III

CW412 PART III

University

29 Qs

Jrb1 Quiz 5

Jrb1 Quiz 5

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?