Workshop Quiz

Quiz
•
Computers
•
University
•
Hard
041_CSE1_Aryan Raj
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Section1

Quiz
•
University
26 questions
Linux Tech Tips

Quiz
•
University
20 questions
Understanding Power Quality Issues

Quiz
•
University
20 questions
Midterm Exam - DV - Part 1

Quiz
•
University
22 questions
Big Data Analytics unit -1

Quiz
•
University
30 questions
Data Analysis with Python 1

Quiz
•
University
23 questions
Sistemas de numeración RC

Quiz
•
University
20 questions
Beginner Quiz on ML and Python Basics

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