
ASSESSMENT | ARRAY

Quiz
•
Information Technology (IT)
•
University
•
Medium
Glaizess Salisi
Used 5+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In C#, an array is:
A collection of values of the same type stored in consecutive memory locations.
A collection of values of different types stored together.
A method for repeating tasks.
A keyword used for sorting values.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT true about arrays?
Array elements are accessed using an index.
The index of the first element starts at 0.
Arrays can store different data types in one collection.
Arrays have a fixed size once declared.
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which is a valid declaration of an integer array with 5 elements in C#?
int[] nums = new int[5];
int nums = {1, 2, 3, 4, 5};
array nums[5];
int nums = new int(5);
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Given int[] numbers = {10, 20, 30, 40};, what will numbers[0] return?
10
20
30
40
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which of the following correctly initializes a string array?
string fruits = {"Apple", "Banana", "Mango"};
string[] fruits = {"Apple", "Banana", "Mango"};
fruits string[] = {"Apple", "Banana", "Mango"};
array fruits = {"Apple", "Banana", "Mango"};
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If an array is declared as int[] arr = new int[3];, what are the default values of its elements?
null
1
0
undefined
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which property is used to determine the number of elements in an array?
Count
Length
Size
Capacity
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
C# Тізімдері бойынша Тест

Quiz
•
University
21 questions
Викторина по Tkinter

Quiz
•
University
22 questions
Problem Solving and Programming Design (Part 3)

Quiz
•
University
26 questions
ITE 292 Long Quiz

Quiz
•
University
25 questions
XI RPL Quizziz Pertemuan 3 XI RPL (Array dan Fungsi)

Quiz
•
11th Grade - University
25 questions
SAS Dasar Program Keahlian RPL Kelas X

Quiz
•
10th Grade - University
30 questions
Quiz Logika dan Algoritma

Quiz
•
University
29 questions
Web Development Quiz

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University