
Python challange

Quiz
•
Computers
•
University
•
Medium
Sakthi Sakthi
Used 4+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What will be the output of the following program?
my_list=['two',5,['one',2]]
print(len(my_list))
3
6
4
2
Answer explanation
['one',2] is one element so the overall length is 3
2.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What will be the output of the following program?
x=10
def f():
x=x+10
print(x)
f()
20
10
Error
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output following program?
str1="Python programming"
str1[0]="J"
print(str1)
Does not support
assignment operation
Jython programming
Jython
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
s1="Welcome to java programming"
s2=s1.replace("java","python")
print(s2)
welcome to java program
welcome to python program
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List=[10,20,30,40,50,60,70]
del List[2:5]
print(List)
[10,20,70]
[10,20,60,70]
[30,40,50,60,70]
[30,40,50,60,70]
6.
MULTIPLE CHOICE QUESTION
30 sec • 20 pts
What will be the output of the following program?
def f():
x=10
x=x+10
print(x)
f()
20
Error
10
Function is not called
7.
MULTIPLE CHOICE QUESTION
30 sec • 19 pts
What will be the output of following code?
def fun_name(x):
x=200
x=100
text(x)
print(x)
100
200
Error
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
javaquizvivek

Quiz
•
University
13 questions
Python Module 1

Quiz
•
University - Professi...
10 questions
Quiz 8

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
17 questions
Operators in Python

Quiz
•
9th Grade - Professio...
10 questions
Python Dictionaries

Quiz
•
University
10 questions
PSS-Expressions-1

Quiz
•
University
20 questions
UNIT 1 PYTHON

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