Search Header Logo

P3 Decisioni

Authored by Renato Ferrero

Computers

University

P3 Decisioni
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Sia definita la variabile intera a = 45. Indicare l'istruzione che stampa un output diverso dal seguente:

print(f"Risultato:{a:>6}")

print(f"Risultato:{a:-6}")

print(f"Risultato:{a:> 6}")

print(f"Risultato:{a:+6}")

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Qual è il valore della variabile k dopo l'esecuzione del seguente codice?

2

5

6

9

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Si consideri l'istruzione:

maggiore = ("10" > "5").

Che valore assume la variabile maggiore?

"10"

True

False

l'istruzione non può essere calcolata

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

A quale funzione corrisponde la seguente tavola di verità?

f = not X or not Y or Z

f = (X and Y) or not Z

f = (X or not Y) and Z

f = (X and Z and Y) or (not X and not Z)

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Semplificare la seguente funzione booleana:

not (not X or not Y) or (X and Y and Z)

X and Y

X and Y and Z

(X or Y) and Z

(X and Y) or Z

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Siano a, b, x, n variabili intere. Fra i pezzi di codice seguenti, 3 sono equivalenti. Qual è diverso?

Media Image
Media Image
Media Image
Media Image

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Se l'utente inserisce "Mi piace programmare", cosa visualizza il seguente codice?

"Mi piace programmare"

"MI PIACE PROGRAMMARE"

"La stringa contiene spazi"

Non visualizza nulla

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers