PYTHON ISHAAN2412

Quiz
•
Professional Development
•
6th - 9th Grade
•
Hard
ISHAAN KORDE
Used 3+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Python (повторення)

Quiz
•
6th Grade
10 questions
Lesson 25 - datetime module

Quiz
•
5th - 8th Grade
13 questions
Digital Literacy Quiz

Quiz
•
9th Grade
10 questions
Logic Building in Java Part 1

Quiz
•
6th - 9th Grade
10 questions
Python level4

Quiz
•
6th - 9th Grade
10 questions
Lesson 44 - Dictionary Datatype 2

Quiz
•
5th - 8th Grade
10 questions
Python Marathon (Easy Round)

Quiz
•
1st - 6th Grade
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Professional Development
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade