My Report

Data Structure I Mock Test 3


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1. Is O(n) the Worst case Time Complexity for addition of two Sparse Matrix?

Question 1 of 10

Question 2 of 10

2. Consider the postfix expression 4 5 6 a b 7 8 a c, where a, b, c are operators. Operator a has higher precedence over operators b and c. Operators b and c are right associative. Then, equivalent infix expression is

Question 2 of 10

Question 3 of 10

3. The matrix contains m rows and n columns. The matrix is called Sparse Matrix if ________

Question 3 of 10

Question 4 of 10

4. What is a bit array?

Question 4 of 10

Question 5 of 10

5. Suppose the contents of an array A are, A = {1, null, null, null, null, 10};
What would be the size of the array considering it as a normal array and a sparse array?

Question 5 of 10

Question 6 of 10

6. Dynamic arrays overcome the limit of static arrays.

Question 6 of 10

Question 7 of 10

7. Which class in Java can be used to represent bit array?

Question 7 of 10

Question 8 of 10

8. What is the time required to locate the occurrences of a pattern P of length m in a string of length n using suffix array?

Question 8 of 10

Question 9 of 10

9. How many passes does the balancing symbols algorithm makes through the input?

Question 9 of 10

Question 10 of 10

10. The result of the postfix expression 5 3 * 9 + 6 / 8 4 / + is _____________

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.