
CMPE 103 OOP FINAL EXAMINATION 2nd SEM SY 2024-2025
Authored by Julius Cansino
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
100 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
It represents an entity in the real world that can be distinctly identified.
A class
An object
A method
A data field
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
It is a template, blueprint, or contract that defines objects of the same type.
A class
An object
A method
A data field
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
An object is an instance of a __________.
program
class
method
data
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The keyword __________ is required to define a class
def
return
class
method
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
________ is used to create an object.
A constructor
A class
A value-returning method
A None method
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The ________ creates an object in the memory and invokes __________.
The --init-- method
the init method
the initialize method
the --str-- method
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Analyze the following code:
The program has an error because class A does not have a constructor.
The program has an error because class A should have a print method with signature print(self, s).
The program has an error because class A should have a print method with signature print(s).
The program would run if you change print(s) to print(self.s).
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?