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
15 questions
Fundamentals of Algorithms - Unit 1 - Test 1

Quiz
•
University
20 questions
Data Structures and Algorithms Quiz

Quiz
•
University
20 questions
BCS 8th BDA Quizz

Quiz
•
University
25 questions
QUIZ

Quiz
•
University
20 questions
Data Structures

Quiz
•
University
20 questions
Sorting and Searching Algorithms Quiz - Batch 1

Quiz
•
University
15 questions
Data Structures Activity - 1

Quiz
•
University
21 questions
Sorting algorithms I

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade