
Test di Programmazione in C#
Quiz
•
Computers
•
10th Grade
•
Medium
Maria Carmela Emma
Used 3+ times
FREE Resource
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]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
33 questions
Arduino
Quiz
•
10th Grade
35 questions
Quiz PTS CT & Algoritma Pemrograman
Quiz
•
10th Grade - University
40 questions
Grade 6-Sistem Komputer
Quiz
•
6th Grade - University
40 questions
SOAL PAS 2018 - Teknik Mikroprosessor & Mikrokontroller XD TEI
Quiz
•
10th Grade
40 questions
EXAMEN INFORMÁTICA I PARCIAL 1
Quiz
•
10th - 12th Grade
33 questions
Penjajagan ASAT 2223 Informatika
Quiz
•
10th Grade
35 questions
Sumatif 1 Kelas X
Quiz
•
10th Grade
40 questions
TEKNIK PEMROGRAMAN MIKROKONTROLLER DAN MIKROPROCESSOR
Quiz
•
10th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
