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

Functions and modules

4 esercizi
SVOLGI
INFO

Informatica

How to define a function in Python

Which of the following is the correct way to define a function in Python?

A:

function my_function():

B:

def my_function:

C:

def my_function():

D:

define my_function():

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

Recursion

Which of the following sentences most accurately describes the term recursion?

A:

The repetition of the same set of operations.

B:

A calculation algorithm that is able to call itself.

C:

An iterative method to calculate approximate values.

D:

The method for finding the solutions of an equation.

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

Power exponent

Which of the following statements returns base (b) raised to the power exponent (e)?

A:

print(math.pow(e, b))

B:

print(math.pow(b, e))

C:

print(power(b, e))

D:

print((b, e)**pow)

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

Convergence

What is convergence in an iterative process?

A:

The result comes closer to the estimated value as the number of iterations increases.

B:

The result comes closer to the estimated value as the number of iterations decreases.

C:

The result comes closer to the estimated value after a predefined number of iterations.

D:

The process becomes faster as the number of iterations increases.

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