Search Header Logo

Quiz 6

Authored by Mohand Mahmoud

Computers

University

Used 1+ times

Quiz 6
AI

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

3.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

class Student:

def init(self,name):

self.name=name

stu =Student('ali')

print(stu.name)

ali

none

error

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

import datetime

x = datetime.datetime.now()

print(x.year)

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

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?