Array and Loops in C#

Quiz
•
Computers
•
University
•
Hard
Jairuz Paulo Saure
Used 5+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is an array in C#?
A collection of elements with different types.
A collection of elements with the same type.
A dynamic collection of elements.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array of integers in C# with a size of 10?
int[] numbers = new int();
int[10] numbers;
int[] numbers = new int[10];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array in C#?
0
1
-1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is more suitable when the number of iterations is known beforehand?
for loop
while loop
do-while loop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a for loop, what does the third expression control?
Initialization
Condition
Iteration
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the element at index 3 in an array named data?
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the foreach loop in C#?
To iterate over the elements of an array or collection.
To execute a block of code repeatedly until a condition is met.
To define a function that can be called within a loop.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz Algoritma Looping

Quiz
•
University
20 questions
PROGRAMACAO NO DES DE SISTEMAS

Quiz
•
3rd Grade - University
15 questions
Flutter intro and Dart quiz

Quiz
•
University
15 questions
Java

Quiz
•
University
20 questions
Apuntadores en C

Quiz
•
University
17 questions
Flow of Control in C++ ( Conditional statements)

Quiz
•
9th Grade - University
20 questions
C Programming (Unit- 1) Quiz

Quiz
•
University
20 questions
1TEC_AVALIAÇÃO LÓGICA COMPUTACIONAL 3º TRI_AV5

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University