G12- Python Strings Quiz
Quiz
•
Information Technology (IT)
•
12th Grade
•
Practice Problem
•
Easy
Sherin Kamel
Used 3+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When are double quotations added in Python strings?
When there are words containing apostrophes.
When there are no apostrophes.
When the string is empty.
When the string is a single word.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of triple quotes in Python?
To write a single line string.
To write a paragraph in multiple lines.
To concatenate strings.
To format strings.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the index() function in Python do?
Returns the index position of a character.
Counts the number of characters in a string.
Formats a string.
Concatenates two strings.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can negative indexing be used in Python?
To select characters from the end of a string.
To select characters from the beginning of a string.
To count characters in a string.
To format strings.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the LEN function do in Python?
Counts the number of characters in a string.
Formats a string.
Finds a character in a string.
Replaces a character in a string.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print(name [1:-1]) if name = 'Rbravo.Aleikz'?
bravo.aleik
Rbravo.Aleik
Rbravo.Alei
bravo.Aleikz
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to uppercase in Python?
Using the upper() method.
Using the lower() method.
Using the find() method.
Using the replace() method.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the replace function do in Python?
Replaces a word within a given string.
Finds a character in a string.
Counts the number of characters in a string.
Formats a string.
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of print('Computer' in department_name) if department_name = 'Informational Computer Technology'?
True
False
None
Error
Similar Resources on Wayground
10 questions
Reinforcement Learning Quiz
Quiz
•
12th Grade
12 questions
Transformação Digital
Quiz
•
University
12 questions
Borders and Shades in Word 2010 Quiz
Quiz
•
10th Grade - University
10 questions
ASSESSING HARDWARE
Quiz
•
University
11 questions
html basics
Quiz
•
8th Grade - University
12 questions
Understanding Data Structures
Quiz
•
University
12 questions
How to Lead When the Future Feels Unpredictable
Quiz
•
10th Grade - University
10 questions
Java Diagnostic Assessment
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
