Quiz 1_DSA

Quiz
•
Computers
•
University
•
Medium
Lenin Narengbam
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
1) How can we describe an array in the best possible way?
The Array shows a hierarchical structure.
Arrays are immutable.
Container that stores the elements of similar types
The Array is not a data structure
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can we initialize an array in C language?
int arr[2]=(10, 20)
int arr(2)={10, 20}
int arr[2] = {10, 20}
int arr(2) = (10, 20)
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the disadvantage of the array?
Stack and Queue data structures can be implemented through an array.
Index of the first element in an array can be negative
Wastage of memory if the elements inserted in an array are lesser than the allocated size
Elements can be accessed sequentially.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of the following is the size of int arr[9] assuming that int is of 4 bytes?
9
36
35
None of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data structure is mainly used for implementing the recursive algorithm?
Queue
Stack
Binary tree
Linked list
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What would be the time complexity if user tries to insert the element at the end of the linked list (head pointer is known)
O(1)
O(n)
O(logn)
O(nlogn)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is the time complexity to search an element in the linked list?
O(1)
O(n)
O(logn)
O(nlogn)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Data Structures

Quiz
•
University
20 questions
js DOM

Quiz
•
12th Grade - Professi...
15 questions
Arrays and Linked Lists

Quiz
•
University
18 questions
Data Structures Quiz 1

Quiz
•
12th Grade - University
20 questions
6. Kubernetes Networking & Services

Quiz
•
University
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
20 questions
ASD - A

Quiz
•
University
20 questions
Understanding Stacks, Queues, and Lists

Quiz
•
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