Search Header Logo

Testing

Authored by Leong Kira

Education

University

Used 3+ times

Testing
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

A constructor is

a. Variable

b. Class

c. Field

d. Properties

e. Method

2.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

A constructor

a. None of the above

b. Is called when the instance is created

Does Not exist

3.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

A field is a:

a. Class variable and instance variable

Local variable and Parameter variable

Parameter variable and Class variable

4.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

All object-oriented programming languages must have the 3 following features:

Inheritance, association, encapsulation

Association, inheritance, objects

Classes, subclasses, superclasses

state, behavior, identity

Inheritance, polymorphism, encapsulation

5.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

An object that has more than one form is referred to as

Interface

Inheritance

Abstract class

Polymorhpism

Encapsulation

6.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

Constructors are used to

Free memory

To create a sub class

To build a user interface

initialize a newly created object

7.

MULTIPLE CHOICE QUESTION

15 mins • 3 pts

Encapsulation is based on:

Using global variables

Hiding deprecated fields that should NOT be removed

Nesting classes

Hiding logic that is only used from inside a class

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?

Discover more resources for Education