
String Quiz
Authored by Jakobi Gorham
Computers
9th - 12th Grade
Used 39+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which method can be used to remove any whitespace from both the beginning and the end of a string?
trim()
strip()
len()
replace()
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is a correct syntax to return the first character in a string?
x = "Hello"[0]
x = sub("Hello", 0, 1)
x = "Hello".sub(0, 1)
All of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What is the correct syntax to output the type of a variable or object in Python?
print(typeof(x))
print(typeOf(x))
print(type(x))
print(typeof x)
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which one does take you to next line?
\t
\n
\'
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Print output.
x=”CHAMPION”
print(x[5])
C
A
I
P
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which method can be used to calculate length of list:
len()
string()
count()
remove()
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
What in programming language are like something which gets active or gets task done when called
Functions
Set
Tuple
Dictionary
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
12 questions
Tin học 2
Quiz
•
11th Grade
20 questions
Informatika
Quiz
•
10th Grade
10 questions
Bài 25 tin 10
Quiz
•
9th Grade - University
15 questions
Arduino
Quiz
•
7th - 9th Grade
20 questions
Bài 11. Tệp và quản lý tệp
Quiz
•
10th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
20 questions
Teknik Pengolahan Audio dan Video
Quiz
•
12th Grade
10 questions
TIN HỌC 10 - BÀI 21
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