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
Cultura Geral

Quiz
•
5th - 9th Grade
10 questions
Tecnologia e Inovação - 8º Ano - Quiz 1

Quiz
•
8th Grade
15 questions
Robótica e Semáforos: Quiz Divertido

Quiz
•
3rd Grade - University
10 questions
QUIZ TESTE AVALIAÇÃO APRENDIZAGEM

Quiz
•
1st Grade - University
15 questions
GUIA TECNOLOGIA 2

Quiz
•
8th Grade - University
10 questions
AVALIAÇÃO DE PENSAMENTO COMPUTACIONAL - 8° ANO

Quiz
•
8th Grade
11 questions
Automações inteligentes

Quiz
•
1st - 12th Grade
12 questions
Robótica Lego EV3 - Básico

Quiz
•
6th - 9th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade