Search Header Logo

Programming Concepts Quiz

Authored by Fidaa Abed

Computers

12th Grade

Used 2+ times

Programming Concepts Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a class in object-oriented programming?

A pre-defined library

A data structure for only functions

A blueprint for creating objects

A single instance of data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in programming?

A blueprint of a class

A variable of a struct

An instance of a class

A function in a class

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which access specifier allows members to be accessed only by functions in the class?

Public

Protected

Private

Default

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default access specifier in a class if not explicitly defined?

Public

Private

Protected

Internal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a mutator?

A function that retrieves a value from a private member

A function that stores or changes a value in a private member

A public variable in a class

An inline function

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an accessor?

A function that modifies private members

A function that retrieves values from private members

A private variable of a class

A function marked as inline

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How is an object of a class defined?

ClassName objectName;

ObjectName ClassName;

new ClassName();

objectName = new ClassName;

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?