Search Header Logo
Le stringhe di Python

Le stringhe di Python

Assessment

Flashcard

Computers

8th Grade

Practice Problem

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?