The OOP Quiz

The OOP Quiz

University

10 Qs

quiz-placeholder

Similar activities

String manipulation and Encapsulation

String manipulation and Encapsulation

University

15 Qs

Quiz on OOPs- Day 1 (30-01-2025)

Quiz on OOPs- Day 1 (30-01-2025)

University

10 Qs

BINARY BRAINS

BINARY BRAINS

University

10 Qs

INTRODUCTION TO OOPS

INTRODUCTION TO OOPS

University

10 Qs

C++ Quiz-1

C++ Quiz-1

University

15 Qs

Object Oriented Programming Assessment 1

Object Oriented Programming Assessment 1

University

15 Qs

Object Oriented Programming

Object Oriented Programming

University

9 Qs

object oriented programming

object oriented programming

11th Grade - University

10 Qs

The OOP Quiz

The OOP Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Karen Ahmed

Used 125+ times

FREE Resource

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

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?