Classes in (OOP)

Classes in (OOP)

11th Grade

12 Qs

quiz-placeholder

Similar activities

TP8 - V5 - Oefentoets deel1

TP8 - V5 - Oefentoets deel1

7th - 12th Grade

12 Qs

Object Oriented Programming

Object Oriented Programming

11th - 12th Grade

8 Qs

Introduction to Java

Introduction to Java

8th - 12th Grade

10 Qs

XII RPL

XII RPL

11th - 12th Grade

12 Qs

ET QUIZ 9

ET QUIZ 9

11th Grade

10 Qs

Computer Science

Computer Science

11th - 12th Grade

11 Qs

Implementation - PowerPoint 1 Higher

Implementation - PowerPoint 1 Higher

11th Grade

14 Qs

CodeHS 4.10 Key Terms for Classes

CodeHS 4.10 Key Terms for Classes

9th - 12th Grade

10 Qs

Classes in (OOP)

Classes in (OOP)

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Margaret Sifuna

Used 19+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

What do objects instantiated from a class contain?

Variables

Attributes

Predefined actions

2.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

What do objects instantiated from a class contain?

Class variables

Methods

Predefined Functions

3.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is the purpose of a method in a class?

To define new data types.

To organise code in a modular way.

To perform actions or behaviours.

To generate random numbers.

4.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is the term used to refer to an object in OOP?

Identifier

Blueprint

Instance

Class variable

5.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What is a class in the context of Object-Oriented Programming (OOP)?

A blueprint for creating objects.

A specific instance of an object

A method for organising code.

A predefined set of actions

6.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

What are attributes in the context of OOP?

Actions or behaviours within a class

Predefined set of functionalities

Variables within a class

Identifiers for objects

7.

MULTIPLE CHOICE QUESTION

45 sec • 5 pts

Which of the following is an example of a predefined class in Python?

Animal()

Int()

Student()

Object()

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?