Search Header Logo

The OOP Quiz

Authored by Karen Ahmed

Computers

University

Used 125+ times

The OOP Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is not one of the primary principles of object-oriented programming?

Encapsulation

Polymorphism

Generalisation

Inheritance

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why are encapsulation and abstraction important?

They allow you to reuse code

Change implementation details without affecting other code that uses the class

Create other classes that use the same properties and methods

Reduce problems into more manageable parts

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do properties enable a class to meet the goals of encapsulation?

They provide a public way to access a private field

They make all data private

They make all data public

They represent data associated with a class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of inheritance does C# support?

Single and Multiple Inheritance

Multiple Inheritance

Single Inheritance only

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is polymorphism?

Where information is hidden

Where information is shared with other classes

The capability of one type to be used like another type

A new class that inherits properties and methods from its parent.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the types of control flow statements available in C#?

Sequence, Selection & Iteration

Iteration, Sequence & Jump

Jump, Selection & Sequence

Selection, Iteration & Jump

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between the while and do statements?

While is bottom-tested do is top-tested

While is top-tested, do is bottom-tested

Do loops may never be executed

While statements will always be executed at least once

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 Computers