Object Oriented (Unit 2)

Object Oriented (Unit 2)

University

26 Qs

quiz-placeholder

Similar activities

1A_CIT201 - MIDTERM EXAM 2021-2022

1A_CIT201 - MIDTERM EXAM 2021-2022

University

23 Qs

Section 9: Networking (30-36)

Section 9: Networking (30-36)

University

23 Qs

ISA111 - QUIZ #1

ISA111 - QUIZ #1

University

21 Qs

GGE Quiz

GGE Quiz

University

21 Qs

ICA 02

ICA 02

University

22 Qs

Teste de avaliação UFCD0822

Teste de avaliação UFCD0822

9th Grade - Professional Development

22 Qs

Examen_1p_InfoII

Examen_1p_InfoII

8th Grade - Professional Development

22 Qs

Post Produzione-Foto

Post Produzione-Foto

University - Professional Development

23 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

Access all questions and much more by creating a free account

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?

Discover more resources for Computers