
collections
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
kalyani boyina
Used 3+ times
FREE Resource
Enhance your content in a minute
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
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
13 questions
#include <\c>
Quiz
•
University
10 questions
2024 - Struktur Data Quiz 1
Quiz
•
University
15 questions
Javascript Array dan Object
Quiz
•
University
15 questions
NSCC-CODE TO COIN
Quiz
•
University
10 questions
Stack & Queue
Quiz
•
University
12 questions
La messagerie électronique
Quiz
•
University
10 questions
Quiz - CSE
Quiz
•
University
15 questions
IWP Digital Assignment 3
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
