Programming Concepts Quiz

Programming Concepts Quiz

12th Grade

14 Qs

quiz-placeholder

Similar activities

Teamwork & Collaboration

Teamwork & Collaboration

9th - 12th Grade

10 Qs

Java Inheritance

Java Inheritance

11th Grade - University

10 Qs

Databases

Databases

10th Grade - University

15 Qs

Robotics quiz 2

Robotics quiz 2

1st - 12th Grade

12 Qs

Objects & Classes

Objects & Classes

11th - 12th Grade

10 Qs

Java Classes and Objects

Java Classes and Objects

12th Grade

10 Qs

Codehs

Codehs

9th - 12th Grade

15 Qs

Review for Fall Final

Review for Fall Final

10th - 12th Grade

14 Qs

Programming Concepts Quiz

Programming Concepts Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Fidaa Abed

Used 2+ times

FREE Resource

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;

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?