Questions

1 Marks Each

🎯

Test yourself on this topic

5 questions · timed · auto-graded

Question 11 Mark
Define O(log n).
Answer
O(log n) denotes logarithmic time complexity. O(log n) represents a code whose execution time will grow logarithmically w.r.t. the size of the input data. O(log n) is typical with algorithms that keep on successively dividing the data range to work upon.
View full question & answer
Question 21 Mark
Difference between best case and worst case scenario concerning sorting techniques.
Answer
Best case is when the array is sorted in that order, in which we required the array. For example, if we need array elements in ascending order and all the elements of the array is in ascending order.
View full question & answer
Question 31 Mark
What is code optimisation?
Answer
It is a way to enhance code productivity and quality. It can be achieved by reducing code size and memory, execute statements quickly.
View full question & answer
Question 41 Mark
Define Time Complexity.
Answer
The time taken by the code to execute i.e. the number of iteration or statements is known as time complexity
View full question & answer
1 Marks Each - Computer Science STD 12 Commerce Questions - Vidyadip