Search Header Logo

Verifica di Codice C#

Authored by Roberta De Nisi

Computers

10th Grade

Verifica di Codice C#
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual è l'output di 'if (5 > 3) Console.WriteLine("Maggiore");' ?

Uguale

Maggiore

Nessun output

Minore

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cosa stampa il seguente codice: 'switch (2) { case 1: Console.WriteLine("Uno"); break; case 2: Console.WriteLine("Due"); break; }' ?

Quattro

Tre

Cinque

Due

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Qual è il risultato di 'for (int i = 0; i < 5; i++) { Console.Write(i); }' ?

01235

12345

01234

01234

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cosa fa il ciclo 'do { Console.WriteLine("Ciao"); } while (false);' ?

Stampa 'Ciao' due volte.

Stampa 'Ciao' in un ciclo infinito.

Stampa 'Ciao' una volta.

Non stampa nulla.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual è l'output di 'while (false) { Console.WriteLine("Non verrà stampato"); }' ?

Stampa 'Non verrà stampato' una volta

Nessun output

Stampa 'Non verrà stampato' infinite volte

Un errore di compilazione

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cosa restituisce 'Math.Sqrt(16)' ?

3

5

8

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qual è il risultato di '5 % 2' ?

3

2

0

1

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?