
PYTHON ISHAAN2412
Authored by ISHAAN KORDE
Professional Development
6th - 9th Grade
Used 3+ times

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
30 sec • 1 pt
What is output for −
a = ['he', 'she', 'we']
' '.join(a)
['heshewe']
'heshewe'
['he she we']
'he she we'
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we swap two numbers a = 10, b = 20 in python without using third variable?
a = b
b = a
a,b = b,a
both a & b
b = a
a = b
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For tuples and list which is correct?
List and tuples both are mutable
List is mutable whereas tuples are immutable
List and tuples both are immutable.
List is immutable whereas tuples are mutable.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output for −
2 * 2 **3
12
64
16
36
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
def total(initial = 5, *num, **key):
count = initial
for n in num:
count+=n
for k in key:
count+=key[k]
return count
print(total(100,2,3, clouds=50, stars=100))
260
160
155
255
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is more accurate for the following declaration?
x = Circle()
x contains a reference to a Circle object
Now you can assign int value to x
x actually contains an object of type Circle.
x contains an int value.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the out of the code?
def rev_func(x,length):
print(x[length-1],end='' '')
rev_func(x,length-1)
x=[11, 12, 13, 14, 15]
rev_func(x,5)
The program runs fine without error.
Program displays 15 14 13 12 11.
Program displays 11 12 13 14 15.
Program displays 15 14 13 12 11 and then raises an index out of range exception.
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
13 questions
Išorės ir Vidaus valymo produktai
Quiz
•
1st Grade - Professio...
10 questions
Perkalian 4
Quiz
•
2nd - 6th Grade
10 questions
TKMRPI
Quiz
•
1st - 10th Grade
10 questions
DBMS Quiz 1
Quiz
•
1st - 10th Grade
10 questions
Lesson 29 - Introduction to module
Quiz
•
5th - 8th Grade
10 questions
Lesson 10 - Decision control statements
Quiz
•
5th - 8th Grade
14 questions
Guess The Apps
Quiz
•
KG - Professional Dev...
10 questions
PDHS-Sistema de Marcas
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Professional Development
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
20 questions
Exponents
Quiz
•
6th Grade
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
22 questions
distributive property
Quiz
•
7th Grade
15 questions
Distributive Property & Review
Quiz
•
6th Grade
10 questions
Figurative Language
Quiz
•
6th Grade