
Sintassi base di Python
Authored by Procolo Lucignano
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Che cosa fa il seguente codice di Python:
print("Hello, World!")
Stampa "Hello, World!" sullo schermo
Crea una variabile chiamata "Hello, World!"
Genera un errore di sintassi
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Qual è l'output di questo codice?
a = True
b = False
print(a and b)
True
False
1
None
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Quale di questi è un commento valido in Python?
<!-- Questo è un commento -->
/* Questo è un commento */
# Questo è un commento
' Questo è un commento
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual è il risultato di questa espressione in Python?
x = 5
y = 2
print(x % y)
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Quale di queste espressioni produce un errore di sintassi?
stringa = 'Questo e\' un esempio con apici singoli.'
stringa = "Questo e' un esempio con apici doppi."
stringa = "Questo e\' un esempio con apici doppi."
stringa = 'Questo e' un esempio con apici singoli.'
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?