Quale metodo restituisce l’indice della prima occorrenza di un carattere in una stringa e -1 se non esiste?
Quiz Python

Quiz
•
Computers
•
2nd Grade
•
Medium
vincenzo cicco
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
count()
index()
find()
replace()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
s = "12345"; print(s.isdigit()) restituisce:
True
False
12345
Errore
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Date le due variabili x=11 e y=3 quanto vale x dopo l'istruzione x-=y?
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Qual è l’output di print("ciao"[1:3])?
ci
cia
ia
ao
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Quale valore è stampato come risultato di queste istruzioni? x=5 y=2 print(x//y)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
s = [1, 2, 3]; s.append(4) produce:
[1, 2, 3, 4]
[1, 2, 3]
[1, 4, 3, 2]
[4, 3, 2, 1]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cosa stampa l'istruzione print(stringa.index('be77o')) con stringa="Il python è bello" ?
Value Error
12
la prima posizione posizione della b
Stringa vuota
Create a free account and access millions of resources
Similar Resources on Quizizz
12 questions
Test su Google Moduli

Quiz
•
2nd Grade - University
10 questions
A3 Quiz sul Linguaggio di Programmazione C++

Quiz
•
2nd Grade
10 questions
INFORMATICA TEST DI INGRESSO

Quiz
•
2nd Grade
8 questions
quiz tic 05/04/23 Gruppo 1

Quiz
•
2nd Grade
10 questions
Tecnologia Potenziata

Quiz
•
1st - 10th Grade
10 questions
Technologie moderne (Marzo)

Quiz
•
1st - 3rd Grade
10 questions
Software

Quiz
•
2nd Grade
10 questions
CRMpro Sales Training (IT)

Quiz
•
1st - 3rd 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