Quiz 6

Quiz 6

University

10 Qs

quiz-placeholder

Similar activities

Array

Array

University

11 Qs

COMPUTER 7 SUMMATIVE EXAM

COMPUTER 7 SUMMATIVE EXAM

University

10 Qs

Python Quiz 2.0

Python Quiz 2.0

University

14 Qs

Untitled Quiz

Untitled Quiz

9th Grade - University

14 Qs

Understanding Procedures in Python

Understanding Procedures in Python

9th Grade - University

10 Qs

python

python

3rd Grade - University

12 Qs

OOP Review 2

OOP Review 2

University

10 Qs

Quiz Microsoft Excel

Quiz Microsoft Excel

University

10 Qs

Quiz 6

Quiz 6

Assessment

Quiz

Computers

University

Medium

Created by

Mohand Mahmoud

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?