1) Which of the following is not considered while calculating time complexity? a) Arithmetic & logical operators b) Read and Write operators c) Assignment and return d) Declaring variables 2) In linear time complexity : a) Time required increases with increase in input value b) Time required decreases with increase in input value c) Time remains constant with increase in input value d) Time required increases with constant in input value 3) Which of following is an example of non-linear data structure ? a) Linked list b) Tree c) Queue d) Array 4) Which notation indicates maximum time or worse case of an algorithm? a) Big - Omega notation b) Big - O notation c) Big – Theta d) None of the above 5) Which of the following is the formula to calculate address in 2D array in row major system? a) B + W * [ N * (I - Lr) + (J - Lc) ] b) B + W * [ N * (I + Lr) + (J + Lc) ] c) B - W * [ N * (I - Lc) - (J - Lr) ] d) B - W * [ N * (I + Lc) + (J + Lr) ] 6) Stack follows which of the following principle ? a) LILO b) FIFO c) LIFO d) None of the above 7) What is / are the conditions to check that the queue is empty? a) Front = 0 or front < rear b) Rear = 0 or rear >front c) Front = -1 or front > rear d) Only Rear = n-1 8) Which of the following is true ? a) Every Perfect binary tree is a Complete binary tree b) Every Complete binary tree is a Full binary tree c) Every Full binary tree is a Perfect binary tree d) None 9) What is the traverse order for preorder traversal ? a) Left, Root, Right b) Root, Left, Right c) Left, Right, Root d) Root, Right, Left 10) In a B- Tree, every internal node (nodes other then root node) will have : a) Max (m-1) keys & max [(m/2) -1] children b) Max (m) keys & max (m-1) children c) Max [(m/2) -1] keys & max (m-1) children d) Max (m-1) keys & max (m) children 11) Calculate the time complexity of the following code : a) 8 b) 7 c) 28 d) 22 12) Find the address of B [1700]. a) 2500 b) 7000 c) 200 d) 1800 13) What is the condition for Big- Omega Notation? a) f(n) <= c.g(n) b) f(n) >= c.g(n) c) c1.g(n) <= f(n) <= c2.g(n) d) none 14) Inorder : DGBAHEICF Post order : GDBHIEFCA -> Which is the root node of a tree? a) F b) G c) D d) A 15) What is the formula to find balance factor ? a) height(mid subtree) - height(top subtree) b) height (right subtree) - height (left subtree) c) height (left subtree) - height (right subtree) d) height(top subtree) - height(mid subtree)
0%
DSA - Quiz
共享
共享
共享
由
Ddkulkarni19
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
问答游戏
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?