
CPT C04 Programming (math, random, string, logical)

Quiz
•
Information Technology (IT)
•
10th Grade
•
Medium
woai chemhepython
Used 2+ times
FREE Resource
32 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following Python code? (Please ignore the erratic indentation)
text = "Hello World"
print(text.lower())
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the split() method do in Python?
Joins a list of strings into a single string
Splits a string into a list based on a delimiter
Finds the index of a substring
Replaces a substring with another string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly removes whitespace from both ends of a string?
text.strip()
text.trim()
text.remove_spaces()
text.split()
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following Python code? (Please ignore the erratic indentation)
word = "Python"
print(word[::-1])
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following Python code? (Please ignore the erratic indentation)
s = "apple,banana,cherry"
print(s.split(","))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following Python expressions will correctly extract "Python" from the string
text = "Learn Python Programming"?
test[6:12]
text.split()[1]
text.find("Python")
text[6:11]
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code? (Please ignore the erratic indentation)
s = "O-Level Computing"
print(s[-9:])
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
UJIAN MID SMT GENAP INFORMATIKA KLS X TP. 2024/2025

Quiz
•
10th Grade
35 questions
UH Materi Ms. Word

Quiz
•
7th Grade - University
30 questions
Test6

Quiz
•
9th - 12th Grade
30 questions
Client-Server / Peer-To-Peer Networking

Quiz
•
10th Grade
30 questions
Test9

Quiz
•
9th - 12th Grade
28 questions
Tin Học 10 - Cuối kì 1

Quiz
•
10th Grade
35 questions
Quiz PAS Informatika Genap Tahun 2024

Quiz
•
10th Grade
30 questions
Form 4 - CSEC Information Technology Quiz

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University