Classes in (OOP)

Classes in (OOP)

11th Grade

12 Qs

quiz-placeholder

Similar activities

Python Classes

Python Classes

9th - 12th Grade

11 Qs

Object Orientation 2

Object Orientation 2

11th Grade

15 Qs

PT101 - Mobile and Game Platform

PT101 - Mobile and Game Platform

11th Grade - University

12 Qs

AQA - Unit 7 - OOP

AQA - Unit 7 - OOP

11th - 12th Grade

10 Qs

CICS Test 2 Review

CICS Test 2 Review

9th - 12th Grade

15 Qs

Objects & Classes

Objects & Classes

11th - 12th Grade

10 Qs

Pewarisan Antar Interface

Pewarisan Antar Interface

11th Grade

10 Qs

CodeHS Classes & Objects

CodeHS Classes & Objects

9th - 12th Grade

11 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?