Classes in (OOP)

Quiz
•
Computers
•
11th Grade
•
Medium
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
Similar Resources on Wayground
17 questions
12/3 Classes & Objects

Quiz
•
9th - 11th Grade
10 questions
Vector Graphics

Quiz
•
11th Grade
10 questions
OOP

Quiz
•
9th - 12th Grade
8 questions
8.4 Programming Paradigms and Processes

Quiz
•
11th - 12th Grade
10 questions
C++ Quiz 1

Quiz
•
11th - 12th Grade
14 questions
8.1 Programming Overview

Quiz
•
9th - 11th Grade
10 questions
Algorithms & Pseudocode

Quiz
•
8th - 12th Grade
10 questions
Java

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade