
Quiz 6
Authored by Mohand Mahmoud
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
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
class Avoid:
def m1(self):
print('m1 in A')
class B(Avoid):
def m1(self):
print('m1 in B')
a = B()
a.m1()
m1 in A
m1 in B
m1 in A m1 in B
m1 in A m1 in A
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
methods can't return objects?
False
True
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
which of the following is not oop concopet?
Encapsulation
polymorphism
inherentiance
exception
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
class Home:
def init(self,name,HomeName):
self.name=name
self.HomeName=HomeName
x = Home()
x.homeName = 'Giza'
print(x.homeName)
Giza
Error
Home()
None
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
class Home:
def init(self,name,HomeName):
self.name=name
self.HomeName=HomeName
x = Home("Ahmed","Giza")
print(x.HomeName)
Giza
None
Error
Ahmed Giza Giza
7.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
2023
7
4
4\7\2023
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?