Question
The average weight of Gopal, Akshay and Atul is 46 kg.
If the average weight of Gopal and Akshay be 40 kg and that of Akshay and Atul be 45 kg, then the weight of Akshay (in kg) is:ÂSolution
Average of Gopal, Akshay, Atul = 46 ⇒ G + A + T = 46 × 3 = 138 Average of Gopal and Akshay = 40 ⇒ G + A = 80 Average of Akshay and Atul = 45 ⇒ A + T = 90 Add last two equations: (G + A) + (A + T) = 80 + 90 G + 2A + T = 170 But G + A + T = 138 Subtract: (G + 2A + T) − (G + A + T) = 170 − 138 A = 32
Fill in the correct option for 28 blank space.
When comparing two algorithms, Algorithm A has O(N log N) complexity and Algorithm B has O(N² ) complexity. For very large input sizes N:
Which of the following network topologies is most resilient to node failures?Â
A C function print_matrix(int rows, int cols, int matrix[rows][cols]) is designed to print a matrix.
#include
void print_matrix(...
Which of the following protocol is used for discovering link layer address or MAC address, associated with a given internet layer address?
Consider a singly linked list: 1 -> 2 -> 3 -> 4 -> None. If a delete_node(head, 3) function is called (which deletes the node with value 3), what will b...
What is a primary advantage of using virtual machines in a computing environment?Â
You are asked to implement a feature that requires storing unique items and quickly checking for the existence of an item. Which data structure would be...
In a data analysis application, a hash table is used to store key-value pairs for fast lookups. What is the primary goal of a good hash function?