Basic OOP

Basic OOP

University

26 Qs

quiz-placeholder

Similar activities

EE 529 Quiz 1(Module 1)

EE 529 Quiz 1(Module 1)

University

30 Qs

Automania

Automania

University

25 Qs

Intellectual Property Basics

Intellectual Property Basics

12th Grade - University

24 Qs

UNIT - 3 B Intermediate Code Generation Quiz

UNIT - 3 B Intermediate Code Generation Quiz

University

25 Qs

Microsoft Outlook Mastery

Microsoft Outlook Mastery

University

25 Qs

POF - Stability

POF - Stability

University

21 Qs

RAD 177 Exam 2 Review

RAD 177 Exam 2 Review

University

30 Qs

star wars

star wars

1st Grade - Professional Development

22 Qs

Basic OOP

Basic OOP

Assessment

Quiz

Other

University

Hard

Created by

Hai NS

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in object-oriented programming (OOP)?

A basic entity that represents a specific instance of a class.

A template for creating objects.

A structure for storing simple data types.

A contract that classes must implement.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What defines the properties and methods that objects of a class will have?

Object

Class

Struct

Interface

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a struct used for?

To store simple data types.

To define a contract for classes.

To represent a specific instance of a class.

To define properties and methods.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an interface define?

A contract that classes must implement.

A template for creating objects.

A structure for storing simple data types.

A basic entity in OOP.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do access modifiers determine?

The visibility of class members.

The methods available in a class.

The properties of a struct.

The inheritance of a class.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a constant?

Defined only once at compile time.

Can be changed at runtime.

Supports all data types.

Initialized at runtime.

7.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the difference between override and new?

Override always calls the latest implementation.

New preserves the original implementation.

Both are the same.

Override cannot be used in derived classes.

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?