
Python Quiz 1 (UPB2021)
Quiz
โข
Computers
โข
9th - 12th Grade
โข
Easy
Karen Kikuchi
Used 3+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec โข 1 pt
The correct syntax of the len function for string x:
x.len()
len[x]
LEN[]
len(x)
2.
MULTIPLE CHOICE QUESTION
30 sec โข 1 pt
The correct syntax for converting the string x to uppercase is :
X.upper()
upper(x)
x.UPPER[ ]
x.upper()
3.
MULTIPLE CHOICE QUESTION
30 sec โข 1 pt
The correct syntax for converting the string myname to lowercase is :
myNAME.lower[ ]
myname.lower( )
myname.upper( )
myname_lower(12 )
4.
MULTIPLE CHOICE QUESTION
30 sec โข 1 pt
To remove the spaces present at start and end of the string, you can use
split()
len()
strip()
remove()
5.
MULTIPLE CHOICE QUESTION
45 sec โข 1 pt
Let x= "Python", the output of
print(x[0])
print(x[1])
print(x[2])
PYT
P
y
t
T
h
o
n
oh
6.
MULTIPLE CHOICE QUESTION
45 sec โข 1 pt
What letter will be printed on the screen after running this code:
7.
MULTIPLE CHOICE QUESTION
30 sec โข 1 pt
In the following code, "city" is an example of a what?
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
25 questions
Quiz Struktur Data
Quiz
โข
10th Grade
25 questions
1st Period Feb 22, 2024 - Virtual AP CompSci AP
Quiz
โข
9th - 12th Grade
25 questions
MIL Removal 2.0
Quiz
โข
12th Grade
26 questions
Legislation and Privacy Quiz
Quiz
โข
9th Grade
27 questions
Hardware and software 1ยบ Bach
Quiz
โข
11th Grade
25 questions
Java Review
Quiz
โข
9th Grade - University
25 questions
Post-test Penerapan Mikrotik untuk Manajemen Internet
Quiz
โข
11th Grade
25 questions
CSS 9 Achievement part two
Quiz
โข
9th 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
