Object Oriented (Unit 2)

Object Oriented (Unit 2)

University

26 Qs

quiz-placeholder

Similar activities

Chapter 4-Java Selection & Loops

Chapter 4-Java Selection & Loops

University

21 Qs

Segurança de TI - Revisao

Segurança de TI - Revisao

University

21 Qs

Computer Security

Computer Security

University

21 Qs

Spreadsheet

Spreadsheet

9th Grade - Professional Development

21 Qs

Forms html

Forms html

KG - University

22 Qs

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

25 Qs

Algoritmos

Algoritmos

University

23 Qs

DI (EM24) - Interacción (T2)

DI (EM24) - Interacción (T2)

University - Professional Development

21 Qs

Object Oriented (Unit 2)

Object Oriented (Unit 2)

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Vanna J

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?