
Fondamenti di C++
Authored by Paola Ibba
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual è la sintassi corretta per dichiarare una variabile intera in C++?
myVariable int;
float myVariable;
int myVariable;
integer myVariable;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quali sono i tipi di dati primitivi disponibili in C++?
array
int, float, double, char, bool
string
list
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Come si definisce una variabile di tipo float in C++?
double myVariable = 3.14;
char myVariable = 'A';
float myVariable; or float myVariable = 3.14;
int myVariable;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual è la struttura di controllo utilizzata per eseguire un blocco di codice se una condizione è vera?
while
if
switch
for
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa fa l'istruzione 'break' all'interno di un ciclo in C++?
Interrompe l'esecuzione del ciclo.
Aggiunge un elemento al ciclo.
Ritorna un valore dal ciclo.
Continua l'esecuzione del ciclo.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Qual è la differenza tra 'if' e 'switch' in C++?
'if' è per condizioni booleane; 'switch' è per selezionare tra più valori.
'if' è più veloce di 'switch' in tutti i casi; 'switch' è più lento.
'if' è usato per i cicli; 'switch' è usato per la gestione degli errori.
'if' può gestire solo due condizioni; 'switch' non può gestire espressioni booleane.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Come si dichiara un array di interi in C++?
array
myArray int[10];
int[] myArray;
int myArray[10];
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?