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
10 questions
Pewarisan Antar Interface

Quiz
•
11th Grade
14 questions
Mobile Devices

Quiz
•
9th - 12th Grade
14 questions
Network Fundamentals-Physical layer

Quiz
•
9th Grade - Professio...
10 questions
EMTECH POP QUIZ

Quiz
•
9th - 12th Grade
10 questions
Creative tech summative exam

Quiz
•
9th - 12th Grade
10 questions
HTML Introduction

Quiz
•
3rd Grade - Professio...
15 questions
CSP Unit 1 Review

Quiz
•
9th - 12th Grade
9 questions
Animation Software and Publishing

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade