Informatica - Scuola secondaria di secondo gradoInfo Training Info Training / Volume Linguaggio Python per il secondo biennio

Algorithm design and Python language

3 esercizi
SVOLGI
INFO

Informatica

The value of k

What would be the value of k at the end of the following code?

k = 1
while k <= 5:

k += 1

A:

1

B:

4

C:

5

D:

6

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

Algorithm design and Python language

Which of these statements are true and which are false?

A:

The debug is an error or failure that produces an incorrect or unexpected result.

B:

Python is a case sensitive language.

C:

Before using a variable in a program it has to be declared.

D:

The conditional expression of an if structure is enclosed in curly braces.

Vero o falso
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza

Informatica

Preconditional expression

Which of the following statements is correct with respect to a preconditional expression?

A:

The instructions are executed at least once.

B:

The instructions are executed at least twice.

C:

Under certain conditions, the instructions are not executed.

D:

It cannot enter in an infinite loop.

Scelta multipla
1

Il punteggio di un esercizio è determinato
dalla difficoltà: da 1 (più facile) a 5 (più
difficile). Vuoi saperne di più? Consulta il
Centro assistenza