collections

collections

University

10 Qs

quiz-placeholder

Similar activities

CCT1 Data Structure B.Sc.II

CCT1 Data Structure B.Sc.II

University

11 Qs

Στοίβες Python

Στοίβες Python

12th Grade - University

10 Qs

Data Structures Quiz-2

Data Structures Quiz-2

University

10 Qs

What is Linux?

What is Linux?

10th Grade - University

11 Qs

DSA(UNIT 1) Test 1

DSA(UNIT 1) Test 1

University

10 Qs

stack

stack

University

10 Qs

DataStructure

DataStructure

University

15 Qs

Stacks and Queues Quiz

Stacks and Queues Quiz

University

15 Qs

collections

collections

Assessment

Quiz

Computers

University

Hard

Created by

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?

  1. Stack st = new Stack();

  2. st.Push("Csharp");

  3. st.Push(7.3);

  4. st.Push(8);

  5. st.Push('b');

  6. 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?

  1. Stack st = new Stack();

  2. st.Push("Csharp");

  3. st.Push(7.3);

  4. st.Push(8);

  5. st.Push('b');

  6. 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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?