
Workshop Quiz
Authored by 041_CSE1_Aryan Raj
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
1. What should be the output for the following code:
for i in range(1,8)
print(1)
1 2 3 4 5 6 7 8
1 1 1 1 1 1 1
1 2 3 4 5 6 7
syntax error
2.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
If a=2 and b=3 then the value of print('a+b') will be:
5
a+b
2
3
3.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What will be the output for the following:
a=2;b=3
a,b=b,a
print(a,b)
2 3
5
3 2
1
4.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
If a='56' and b='23' then print(a+b) will be:
2356
79
5623
69
5.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
Which command is used to install a library in python:
#pip install <library name>
pip install <library name>
$pip install <library name>
_pip install <library name>
6.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
class Animal:
def eat(self):
print("I can eat!")
class Dog(Animal):
def bark(self):
print("I can bark woof woof !!")
class Cat(Animal):
def sleep(self):
print("I am sleeping!")
In the following code, which class is parent class:
Dog
Cat
Animal
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec ⢠1 pt
What does class man(human) mean:
human is the inheritance of man
human is the argument for the function man
man is the inheritance of human
this line of code is not supported in python
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?
Similar Resources on Wayground
20 questions
TEST FINAL - Configuración de Servicios Windows
Quiz
ā¢
University
20 questions
Technical Quiz R1
Quiz
ā¢
University
20 questions
Infrastructure (Network)
Quiz
ā¢
University
20 questions
C Quest 2.0
Quiz
ā¢
University
20 questions
PHP First Internal Practical Viva
Quiz
ā¢
University
20 questions
Software Testing and Maintenance Quiz
Quiz
ā¢
University
20 questions
Social Issues and Professional Practices Midterm Exam
Quiz
ā¢
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
ā¢
4th Grade
15 questions
Fractions on a Number Line
Quiz
ā¢
3rd Grade
20 questions
Equivalent Fractions
Quiz
ā¢
3rd Grade
25 questions
Multiplication Facts
Quiz
ā¢
5th Grade
22 questions
fractions
Quiz
ā¢
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
ā¢
3rd Grade
20 questions
Main Idea and Details
Quiz
ā¢
5th Grade
20 questions
Context Clues
Quiz
ā¢
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
ā¢
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
ā¢
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
ā¢
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
ā¢
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
ā¢
4th Grade - University
20 questions
Mardi Gras History
Quiz
ā¢
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
ā¢
11th Grade - University
17 questions
Review9_TEACHER
Quiz
ā¢
University