Search Header Logo

Quizz di ripasso: cicli di iterazione e condizioni if/else

Authored by Valeriia Vakhrusheva

Computers

11th Grade

Used 6+ times

Quizz di ripasso: cicli di iterazione e condizioni if/else
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

OPEN ENDED QUESTION

10 mins • 1 pt

Stampa i numeri da 1 a 10 usando un ciclo for

Evaluate responses using AI:

OFF

Answer explanation

for (int i = 1; i <= 10; i++) {

cout << i << " ";

}

2.

OPEN ENDED QUESTION

10 mins • 1 pt

Stampa i numeri da 10 a 1 usando un ciclo for.

Evaluate responses using AI:

OFF

Answer explanation

for(int i=10; i>0;i--) {

cout << i << " ";

}

3.

OPEN ENDED QUESTION

10 mins • 1 pt

Calcola la somma dei numeri da 1 a N inserito dall'utente usando un ciclo for.

Evaluate responses using AI:

OFF

Answer explanation

int N, somma = 0;

cin >> N;

for (int i = 1; i <= N; i++) {

somma += i;

}

cout << "Somma: " << somma;

4.

OPEN ENDED QUESTION

10 mins • 1 pt

Stampa i primi 10 numeri pari usando un ciclo for.

Evaluate responses using AI:

OFF

Answer explanation

for (int i = 1; i <= 10; i++) {

cout << i * 2 << " ";

}

5.

OPEN ENDED QUESTION

10 mins • 1 pt

Usa un ciclo for per stampare la tabellina del 5 fino a 10 * 5.

Evaluate responses using AI:

OFF

Answer explanation

for (int i = 1; i <= 10; i++) {

cout << "5 x " << i << " = " << (5 * i) << "\n";

}

6.

OPEN ENDED QUESTION

10 mins • 1 pt

Calcola il fattoriale di un numero. Esempio: se il numero è 5, il suo fattoriale è: 5*4*3*2*1

Evaluate responses using AI:

OFF

Answer explanation

int fatt = 1;

cin >> N;

for (int i = 1; i <= N; i++) {

fatt *= i;

}

cout << "Fattoriale: " << fatt;

7.

MULTIPLE CHOICE QUESTION

10 mins • 1 pt

Qual è la scrittura corretta per verifica se un numero è pari?

if(n%2=0)

if(n%2==0)

if(n%2!=0)

if(n%2!==0)

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?