Le stringhe di Python

Le stringhe di Python

Assessment

Flashcard

Computers

8th Grade

Hard

Created by

Sandra Lorenzini

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Quale di queste è una stringa correttamente definita in Python? 'Ciao mondo', "Ciao mondo", Ciao mondo, Entrambe le risposte a e b

Back

Entrambe le risposte a e b

2.

FLASHCARD QUESTION

Front

È possibile usare le stringhe con tripli apici per definire stringhe su più righe?

Back

Vero

3.

FLASHCARD QUESTION

Front

Quale è il risultato dell'espressione 'Python' * 3?

Back

'PythonPythonPython'

4.

FLASHCARD QUESTION

Front

Come si definisce una stringa multilinea in Python?

Back

Utilizzando i tripli apici (''' o """)

5.

FLASHCARD QUESTION

Front

Quale di queste stringhe è correttamente formattata in Python? "f Il numero è {5}", 'Il numero è {5}', "Il numero è {5}", f"Il numero è {5}"

Back

f"Il numero è {5}"

6.

FLASHCARD QUESTION

Front

È possibile utilizzare i doppi apici per definire stringhe multilinea.

Back

Falso

7.

FLASHCARD QUESTION

Front

Esempio di stringa multilinea correttamente definita in Python?

Back

'''Ciao come va?''' (triple single quotes) is a correctly defined multiline string in Python.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?