Question
What is the average of the squares of the first 35
natural numbers?Solution
Sum of squares of first 'n' natural numbers = n × (n + 1) × (2n + 1) ÷ 6
So, average = n × (n + 1) × (2n + 1) ÷ 6n = (n + 1) × (2n + 1) ÷ 6
= (35 + 1) × (2 × 35 + 1) ÷ 6
= 36 × 71 ÷ 6
= 426
A queue follows which principle for data access?
What is the time complexity of searching for an element in a sorted array using binary search?
RISC stands for:
Which of the following is a key advantage of digital signatures?
Deletion in Red-Black Trees maintains balance using:
Which of the following represents the Preorder Traversal of the binary tree given below?
       A       / \      B   C   ...Which SOLID principle emphasizes that a class should have only one reason to change?
Which of the following is a primary feature of Mobile Computing?
A graph where edges have a direction (e.g., from A to B, but not necessarily B to A) is called a:
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?