G12- Python Strings Quiz
Quiz
•
Information Technology (IT)
•
12th Grade
•
Medium
Sherin Kamel
Used 1+ times
FREE Resource
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
Continue операторы
Quiz
•
9th - 12th Grade
10 questions
7 класс программирование
Quiz
•
7th Grade - University
10 questions
Chapter Quiz
Quiz
•
University
10 questions
MongoDB Concepts 1
Quiz
•
University
14 questions
1st Quiz
Quiz
•
University
10 questions
Comandos SQL
Quiz
•
University
13 questions
Mobile Computing Quiz
Quiz
•
12th Grade
10 questions
INTRODUCCION A BASE DE DATOS
Quiz
•
University
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
16 questions
Subject pronouns in Spanish
Quiz
•
9th - 12th Grade
14 questions
Model and Solve Linear Equations
Quiz
•
9th - 12th Grade
17 questions
Graduation Requirements Review
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
