Qual a função utilizada para encontrar o comprimento de uma string em Python?
Exercícios de Strings em Python

Quiz
•
Instructional Technology
•
8th Grade
•
Hard

Ana Almeida
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
length()
count()
len()
size()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como podemos verificar se uma determinada substring está presente em uma string em Python?
string_principal in substring
string_principal.contains(substring)
substring not in string_principal
substring in string_principal
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explique a diferença entre as funções upper() e lower() em Python.
upper() converte para minúsculas e lower() converte para maiúsculas.
upper() converte para minúsculas e lower() converte para números.
upper() converte para minúsculas e lower() não faz nada.
upper() converte para maiúsculas e lower() converte para minúsculas.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como podemos concatenar duas strings em Python?
string1 - string2
string1 . string2
string1 * string2
string1 + string2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual a função utilizada para dividir uma string em substrings com base num separador em Python?
replace()
slice()
strip()
split()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Como podemos inverter uma string em Python?
string.reverse
string.reverse
string[::-1]
string.reverse()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explique o que é indexação negativa em Python e como podemos utilizá-la em strings.
Indexação negativa em Python não é uma funcionalidade válida para strings
Indexação negativa em Python não permite acessar caracteres no final da string
Podemos utilizar a indexação negativa em Python apenas em listas, não em strings
Podemos utilizar a indexação negativa em strings em Python da seguinte forma: string = 'hello world'; ultimo_caractere = string[-1]; penultimo_caractere = string[-2];
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Informática

Quiz
•
8th Grade
15 questions
Yellow Belt Level 3

Quiz
•
6th - 8th Grade
10 questions
Cultura Geral

Quiz
•
5th - 9th Grade
10 questions
Perguntas sobre Paralelismo e Concorrência

Quiz
•
6th - 8th Grade
10 questions
Conhecimentos sobre Ciência e Didática - ODP

Quiz
•
1st - 12th Grade
10 questions
Linguagem de Programação

Quiz
•
6th - 8th Grade
14 questions
ROBÓTICA_BÁSICO

Quiz
•
6th - 8th Grade
10 questions
ROB_EF_M2_A17_Matriz LED 8x8

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Instructional Technology
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres

Quiz
•
8th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review

Quiz
•
8th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade