AITT LAB QUIZ 4

Quiz
•
Computers
•
University
•
Hard
bhuvana medicherla
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The output of:
def hello(a,b):
print("How are you?")
hello(1,2) is?
1 2
How are you?
How are you? 1 2
None
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The body of the class consists of:
Objects
Constructors
Attributes
None
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Encapsulation is a combination of:
Objects and Variables
Classes and Objects
Methods and Variables
None
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following code:
class demo:
a=10
def greet(self):
print("Hello")
print("Hi")
d= demo()
d.greet()
the constructor is:
demo
greet
greet(self)
None
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In Inheritance:
A->B, where A is super class or base class and B is subclass, the this is called:
Multiple Inheritance
Multilevel inheritance
Single Inheritance
Hierarchical Inheritance
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The following code is an example of:
class A:
a=10
class B:
b=20
class C(A,B):
c=30
c= C()
print(c.a,c.b,c.c)
Error
30
10 20 30
None of the above
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following code:
class Circle:
def init(self,pi):
self.pi = pi
def calc_area(self,radius):
return self.pi*radius**2
C1=Circle(3.14)
print('The area of Circle is ',C1.calc_area(5))
the instance variable is initialized with what value?
5
3.14
2
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Тест з програмування на Python

Quiz
•
12th Grade - University
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
15 questions
Round 1 (Tech Utsav)

Quiz
•
University
10 questions
Scientific Computing with Python-Basics

Quiz
•
University
13 questions
APCSA Quiz 1

Quiz
•
9th Grade - University
10 questions
Python Quiz 1 : Python Basics

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
15 questions
Cybernaut Analysis

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University