The OOP Quiz

The OOP Quiz

University

10 Qs

quiz-placeholder

Similar activities

object oriented programming

object oriented programming

11th Grade - University

10 Qs

ADPROG1

ADPROG1

University

10 Qs

COMPUTER PROGRAMMING 2- SEATWORK 2- INTRO TO OBJECT OOP

COMPUTER PROGRAMMING 2- SEATWORK 2- INTRO TO OBJECT OOP

University

10 Qs

OOC-1

OOC-1

University

10 Qs

Dr. S. Uma's Object Oriented Programming Quiz Event 1

Dr. S. Uma's Object Oriented Programming Quiz Event 1

University

10 Qs

Topik 2: Ciri-ciri Object Oriented Programming (OOP)

Topik 2: Ciri-ciri Object Oriented Programming (OOP)

University

10 Qs

Object Oriented Programming Quiz

Object Oriented Programming Quiz

University

15 Qs

INTRODUCTION TO OOPS

INTRODUCTION TO OOPS

University

10 Qs

The OOP Quiz

The OOP Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Strawberry Bytes

Used 124+ 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?