
Python quiz-2
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
sreenivas pasupuleti
Used 8+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of print list[1:3] if list=['abcd',786,2,23,'john',70.2]
['abcd',786,2,23,'john',70.2]
abcd
[786,2,23]
None of the above
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function convert a string to a float in python?
int(x,[,base])
long(x,[base])
float(x)
str(x)
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statement causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating?
break
continue
pass
None of the above
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function checks in a string that all characters are numeric?
islower()
isnumeric()
isspace()
None
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function replaces all occurrences of old substring in string with new string?
replace (old,new [,max])
strip([chars])
swapcase()
title()
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of [1,2,3]+[4,5,6]
[1,2,3,4,5,6]
[1,2,3],[4,5,6]
[5,7,9]
None
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following function converts a string to a list in python?
list.index(obj)
list.insert(index,obj)
list.pop(obj=list[-1])
list.remove(obj)
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
System and network support and management
Quiz
•
11th Grade - Professi...
20 questions
C - Structures
Quiz
•
University
20 questions
DreamWeaver CS6
Quiz
•
University
20 questions
The Firm and Its Environment
Quiz
•
University
20 questions
3°DS _AV2_R2 3TEC_PM_Programação Mobile _12_20 Quizizz
Quiz
•
11th Grade - University
20 questions
English Writing Skills Quiz
Quiz
•
University
20 questions
MIDTERM-SW3 MARKETING COMMUNICATION
Quiz
•
University
20 questions
Cysec Club - Workshop Quiz
Quiz
•
University
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
