
Test di Programmazione in C#
Authored by Maria Carmela Emma
Computers
10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
36 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Daniel sta programmando in C# e si chiede: Che cosa fa un'istruzione if in C#?
Esegue sempre un blocco di codice indipendentemente dalla condizione.
Termina l'esecuzione del programma se la condizione è falsa.
Ripete un blocco di codice fino a quando la condizione è vera.
Controlla una condizione e esegue un blocco di codice se la condizione è vera.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Samuel sta cercando di scrivere un programma in C# e si chiede qual è la sintassi corretta per un ciclo for. Puoi aiutarlo?
for (int i = 0; i < n; i++) { // codice da eseguire }
for (int i = 0; i < n; ++i) { // codice }
for (i = 0; i < n; i++) { codice da eseguire }
for (int i = 0; i < n; i) { // codice da eseguire }
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Evelyn sta cercando di capire come utilizzare un ciclo while in C#. Qual è la sintassi corretta che dovrebbe usare?
Utilizza la sintassi 'while (condizione) { // codice }'.
Utilizza la sintassi 'for (int i = 0; i < n; i++) { // codice }'.
Utilizza la sintassi 'do { // codice } while (condizione);'.
Utilizza la sintassi 'if (condizione) { // codice }'.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Emma sta cercando di capire la differenza tra do while e while in C#. Può aiutarti a spiegare?
'while' esegue il corpo del ciclo prima di controllare la condizione.
Entrambi i cicli sono identici e non hanno differenze.
La differenza principale è che 'while' controlla la condizione prima di eseguire il corpo del ciclo, mentre 'do while' lo esegue almeno una volta prima di controllare la condizione.
'do while' non può essere utilizzato in un ciclo infinito.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Mia sta programmando un'applicazione in C# e si chiede: cosa sono gli operatori logici in C#?
XOR (^)
NAND (!&&)
Operatori logici in C# sono AND (&&), OR (||) e NOT (!).
NOR (!||)
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Scarlett sta cercando di dichiarare un array in C#. Quale delle seguenti opzioni è corretta?
int myArray[] = new int[5];
int[] myArray; or int[] myArray = new int[5]; or int[] myArray = {1, 2, 3, 4, 5};
array myArray int[];
int myArray = {1, 2, 3, 4, 5};
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Abigail ha un array di punteggi degli esami in C#. Qual è la sintassi per accedere al punteggio del secondo esame?
arrayName.at(index)
array[index]
array.get(index)
arrayName[index]
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
36 questions
T.I.C. - test grilă
Quiz
•
8th - 12th Grade
40 questions
KUIS BIOS
Quiz
•
10th Grade
35 questions
Test inițial-TIC
Quiz
•
9th - 10th Grade
32 questions
Tin 4-kỳ I
Quiz
•
4th Grade - University
40 questions
PAS SIMKOMDIG SEMESTER GENAP
Quiz
•
10th Grade
40 questions
PERAKITAN KOMPUTER
Quiz
•
10th Grade
40 questions
Kuiz Komputer Online
Quiz
•
6th - 10th Grade
40 questions
Latihan Semester Genap 22/23
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade