Sintassi base di Python

Sintassi base di Python

9th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

XML few questions

XML few questions

10th Grade

8 Qs

TEST D'INGRESSO_C

TEST D'INGRESSO_C

10th - 12th Grade

9 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

React - JSX e componenti

React - JSX e componenti

9th Grade

10 Qs

Test su Arduino

Test su Arduino

9th Grade

10 Qs

If_while_quiz

If_while_quiz

9th - 10th Grade

8 Qs

Cifrario di Vigenère

Cifrario di Vigenère

9th - 12th Grade

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