
CPT C04 Programming (math, random, string, logical)
Quiz
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Medium
woai chemhepython
Used 2+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
27 questions
PRE TEST
Quiz
•
10th Grade
29 questions
Quiz 3.1 - Operating Systems
Quiz
•
9th - 12th Grade
30 questions
Materi Google Form (KuisOnline)
Quiz
•
10th Grade - University
30 questions
Internet Basics Quiz
Quiz
•
6th Grade - University
35 questions
Chapter 2.2.2 RFID Technology
Quiz
•
7th Grade - University
30 questions
Creating a Web Page Excel
Quiz
•
10th Grade
30 questions
WK2: Game Programming Vocabulary Review (Quiz #01)
Quiz
•
10th Grade
37 questions
Tech+ 5.3 Questions
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
Understanding Protein Synthesis
Interactive video
•
7th - 10th Grade
10 questions
Exploring Newton's Laws of Motion
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
