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
10 questions
9-сынып. Python массив.

Quiz
•
1st - 9th Grade
15 questions
Wordpad kelas 1

Quiz
•
1st - 2nd Grade
10 questions
Quiz di Programmazione Python

Quiz
•
2nd Grade
15 questions
APP Inventor nozioni base

Quiz
•
2nd - 4th Grade
10 questions
INFORMATICA TEST DI INGRESSO

Quiz
•
2nd Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
10 questions
Python тілінде программалау

Quiz
•
1st - 10th Grade
10 questions
Quiz sugli Array e le Matrici

Quiz
•
2nd 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 Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
10 questions
2nd Grade math review

Quiz
•
2nd Grade
26 questions
Place Value Review

Quiz
•
2nd Grade
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
44 questions
logos

Quiz
•
KG - University