Sintassi base di Python

Sintassi base di Python

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

connettivi logici

connettivi logici

12th Grade

7 Qs

Esercizi codice di Hamming

Esercizi codice di Hamming

11th Grade

10 Qs

If_while_quiz

If_while_quiz

9th - 10th Grade

8 Qs

ORD - STEM Special Edition Lezione 2

ORD - STEM Special Edition Lezione 2

7th Grade - University

8 Qs

myecdl

myecdl

6th Grade - Professional Development

7 Qs

Ripasso

Ripasso

2nd Grade - University

10 Qs

Le basi Java

Le basi Java

11th Grade

10 Qs

Test sui disturbi da uso prolungato di devices

Test sui disturbi da uso prolungato di devices

8th Grade - Professional Development

10 Qs

Sintassi base di Python

Sintassi base di Python

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Procolo Lucignano

Used 1+ times

FREE Resource

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.'