
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:])
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
27 questions
PRACTICE TEST FOR 4TH QUARTER - TLE ICT 10
Quiz
•
10th Grade - University
30 questions
Kelas 8 - Halaman 31 (PTS)
Quiz
•
8th Grade - University
30 questions
SMR SegInf quiz Sistema, Firewall, Proxy, ACLs
Quiz
•
10th Grade
30 questions
Electricity Safety Quiz
Quiz
•
9th Grade - University
30 questions
KUIZ SAINS KOMPUTER - Tingkatan 4
Quiz
•
9th - 12th Grade
30 questions
Java Code Output Quiz
Quiz
•
9th - 12th Grade
27 questions
HTML
Quiz
•
9th - 12th Grade
27 questions
Net Module 6
Quiz
•
10th 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
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
