
Python Programming Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
ALI HANI JIWANI
Used 1+ times
FREE Resource
Enhance your content in a minute
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code? name = "Python" print(name[1:4])
"yth"
"Pyt"
"tho"
"ytho"
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which operator is used to concatenate two strings in Python?
*
+
%
&
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does len() function return when used on a string?
The number of vowels in the string
The length of the string (number of characters)
The number of words in the string
The memory size of the string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you use an f-string to format the variable name into the sentence "Hello, [name]"?
"Hello, {name}"
f"Hello, {name}"
"Hello, + name"
Hello.format(name)
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the result of str.find("apple") if the string does not contain "apple"?
It raises an error
It returns -1
It returns 0
It returns None
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of round(3.14159, 2)?
3
3.14
3.142
3.1
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does math.factorial(5) return?
25
15
120
720
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
14 questions
AWS Cloud
Quiz
•
11th - 12th Grade
20 questions
PTS KELAS 9
Quiz
•
9th - 12th Grade
15 questions
UAS Desain Media Interaktif
Quiz
•
12th Grade
15 questions
User Interface Design - Topic 1
Quiz
•
12th Grade
20 questions
Database&Relation
Quiz
•
12th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
18 questions
School Mangement System ICT 0417 IGCSE
Quiz
•
10th - 12th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 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
