Quale struttura di controllo viene utilizzata per gestire più condizioni in C#?

Test di Programmazione C#

Quiz
•
Computers
•
10th Grade
•
Hard
Roberta De Nisi
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
for loop
while loop
if-else
switch-case
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale tra i seguenti è un esempio di ciclo for in C#?
for(int i = 0; i < 10; i--) { Console.WriteLine(i); }
for(int i = 0; i < 10; i++) { Console.WriteLine(i); }
for(int i = 10; i > 0; i++) { Console.WriteLine(i); }
for(int i = 0; i < 10; i += 2) { Console.WriteLine(i); }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa fa l'istruzione 'return' all'interno di un metodo?
Interrompe il programma completamente.
Ritorna al metodo chiamante senza valore.
Aggiunge un valore alla fine del metodo.
Termina l'esecuzione del metodo e restituisce un valore al chiamante.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale operatore logico rappresenta l'AND in C#?
&&
||
&
!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale tra i seguenti è un esempio di ciclo do-while?
while (condizione) { // codice }
if (condizione) { // codice }
do { // codice } while (condizione);
for (int i = 0; i < n; i++) { // codice }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cosa restituisce la funzione Math.Sqrt() in C#?
La somma di due numeri.
La potenza di un numero elevato a due.
Il valore assoluto di un numero.
La radice quadrata di un numero.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quale istruzione viene utilizzata per controllare una condizione in C#?
while
switch
if
for
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
С++ циклы

Quiz
•
10th Grade
15 questions
A4 - Il linguaggi di programmazione C++ SELEZIONE

Quiz
•
2nd Grade - University
20 questions
Sfida informatica

Quiz
•
6th - 10th Grade
20 questions
Array

Quiz
•
10th - 12th Grade
18 questions
[2T] Il software

Quiz
•
10th Grade
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
20 questions
Python - Iteration (For Loops)

Quiz
•
10th Grade
15 questions
Struktur Kontrol Perulangan, Array, dan Function (Bahasa C)

Quiz
•
10th Grade
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

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

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University