
collections

Quiz
•
Computers
•
University
•
Hard
kalyani boyina
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
SortedList sortedlist=new SortedList()
{{2,True},
{1,"one"}};
foreach(DirectoryEntry de in sortedlist)
Console.Write(de.value);
Compile-time Error
Runtime Error
12
One true
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is FIFO(First In FirstOut) Collection?
Queue
Stack
ArrayList
SortedList
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the Output of the following code?
int[ , ] x=new int[ 3,2 ];
Console.WriteLine(x.Length);
3
6
5
7
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
hich statement is correct in the following C#.NET code snippet?
Stack st = new Stack();
st.Push("Csharp");
st.Push(7.3);
st.Push(8);
st.Push('b');
st.Push(true);
a) Unsimilar elements like “Csharp”, 7.3, 8 cannot be stored in the same stack collection
b) Boolean values can never be stored in Stack collection
c) Perfectly workable code
d) All of the mentioned
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Among the given collections which one is I/O index based?
a) ArrayList
b) List
c) Stack
d) Queue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A HashTable t maintains a collection of names of states and capital city of each state. Which among the following finds out whether “New delhi” state is present in the collection or not?
a)
t.HasValue("New delhi");
b)
t.ContainsKey("New delhi");
c)
t.HasKey("New delhi");
d)
t.ContainsValue("New delhi");
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement is correct about the C#.NET code snippet given below?
Stack st = new Stack();
st.Push("Csharp");
st.Push(7.3);
st.Push(8);
st.Push('b');
st.Push(true);
a) Unsimilar elements like “Csharp”,7.3,8 cannot be stored in the same stack collection.
b) Boolean values can never be stored in Stack collection
c) Perfectly workable code
d) All of the mentioned
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
BCA 2nd Semester, Data Structure

Quiz
•
University
15 questions
Data Structures and Algorithms Quiz No.1

Quiz
•
1st Grade - Professio...
15 questions
Stacks

Quiz
•
University
15 questions
8051-MCQ

Quiz
•
University
15 questions
REMEDI UH INFORMATIKA BAB 2 "BERPIKIR KOMPUTASIONAL"

Quiz
•
10th Grade - University
10 questions
Quiz Notación

Quiz
•
University
11 questions
Tutorium 1 - Prog2

Quiz
•
University
10 questions
informatika

Quiz
•
7th Grade - 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 Computers
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