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

P3 Decisioni

Quiz
•
Computers
•
University
•
Hard

Renato Ferrero
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
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
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
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?
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
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
8.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Il seguente programma è corretto?
no: c'è un errore di sintassi
si: stampa "Errore" se l'input non è numerico
no: genera eccezione se l'input non è numerico
no: genera eccezione se l'utente introduce un numero maggiore di 100
Similar Resources on Quizizz
10 questions
FOGLIO_ELETTRONICO_LSNT1

Quiz
•
University
8 questions
P5 funzioni

Quiz
•
University
5 questions
Python: Variabili, Espressioni ed Istruzioni

Quiz
•
11th Grade - University
11 questions
Transistor BASE

Quiz
•
9th Grade - Professio...
10 questions
A level Computer Science In-fix post-fix Reverse polish

Quiz
•
10th Grade - University
10 questions
Python - Functions

Quiz
•
University
11 questions
Excel 1

Quiz
•
9th Grade - University
10 questions
Hardware_Parte1

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade