
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
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
28 questions
Tech+ 5.4 Questions
Quiz
•
10th Grade
35 questions
Uji Pengetahuan Komputer
Quiz
•
10th Grade - University
35 questions
TEST BANK: NETWORKS AND DIGITAL SECURITY
Quiz
•
9th - 12th Grade
30 questions
Wiedza z Informatyki
Quiz
•
8th Grade - University
30 questions
Proses Bisnis Pengembangan Perangkat Lunak dan Gim
Quiz
•
10th Grade
30 questions
Model Evaluation MCQs for Grade 10
Quiz
•
10th Grade
30 questions
AI Project Cycle and Ethics Quiz
Quiz
•
10th Grade
30 questions
Tools TIK
Quiz
•
7th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
