Object Oriented (Unit 2)

Object Oriented (Unit 2)

University

26 Qs

quiz-placeholder

Similar activities

Q2 BASIC CONCEPTS OOP

Q2 BASIC CONCEPTS OOP

University

21 Qs

Comp 210 MT2 Review

Comp 210 MT2 Review

University

27 Qs

Python Quiz

Python Quiz

University

30 Qs

The Basics of R

The Basics of R

University

21 Qs

Python Programming Revision

Python Programming Revision

University

23 Qs

OCA Unit 1

OCA Unit 1

11th Grade - Professional Development

23 Qs

C++ Quiz

C++ Quiz

University

25 Qs

JAVA - EXCEPTION & MULTITHREADING

JAVA - EXCEPTION & MULTITHREADING

University

25 Qs

Object Oriented (Unit 2)

Object Oriented (Unit 2)

Assessment

Quiz

Computers

University

Medium

Created by

Vanna J

Used 5+ times

FREE Resource

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement best describes the relationship between a class and an object?

A class is an instance of an object

An object is a blueprint of a class

A class is a blueprint, and an object is an instance of it

Both are the same

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C#, what keyword is used to create an object from a class?

class

new

object

this

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return type of a constructor in C#?

void

int

object

It has no return type

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If a developer wants to initialize fields automatically when creating an object, which feature should they use?

Methods

Constructors

Properties

Delegates

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You create multiple constructors with different parameter lists. This is an example of:

Encapsulation

Overloading

Overriding

Hiding

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which accessor in a property retrieves the value of a field?

get

set

return

this

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a value type in C#?

string

int

object

class

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?