
Data structure

Quiz
•
Computers
•
University
•
Medium
Ramakant Kumar
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
How many times is the comparison-
ison i <= n performed in the
the following program?
int i = 60 , n = 100;
main ( ) {
w h i l e ( i <= n ){
i = i +2;
n = n−3;
}
}
12
13
14
15
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the infix expression?
+A*BC
A+B*C
ABC+*
None of the above
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A(){
int i= 0,n=0,j=0;
for( i=0;i<n;i++){
for(j=0;j<i;j++){
SOP("hello")
}}}
time complexity of given code:
O(n)
O(logn)
O(n^2)
O(n^3)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a disadvantage to the usage of an array?
Fixed size
Insertion based on position
Accessing elements at specified positions
There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3. What is the time complexity to count the number of elements in the linked list?
O(1)
O(logn)
O(n2)
O(n)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Time complexity of f (x) = (x^2 + 5logx)
O(x^2)
O(x^3)
O(logx)
O(1)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What data structure would you mostly likely see in non recursive implementation
of a recursive algorithm?
Linked List
Double lists
Tree
stacks
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Python Quiz 1.4

Quiz
•
University
10 questions
searching quiz

Quiz
•
University
10 questions
Python debugging

Quiz
•
University
10 questions
Câu hỏi về thuật toán tìm kiếm tuần tự

Quiz
•
9th Grade - University
11 questions
Data Structures - Training: Quiz 1

Quiz
•
University
10 questions
Algorithms and algorithmic Complexity

Quiz
•
University
14 questions
Sorting Algorithms

Quiz
•
University
10 questions
TIN 10 BAI 6

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University