Question
Suyash have total amount of Rs.3200 out of which, he
spent 35% on food, 45% of the rest on travelling. Out of remaining amount he spends Rs.540 on miscellaneous and saves the rest. Find the amount he saved.Solution
Amount spent on food = 0.35 x 3200 = Rs.1120 Amount spent on travelling = 0.45 x (3200 – 1120) = Rs.936 His savings = 3200 – (1120 + 936 + 540) = Rs.604
Perform a dry run of Binary Search for target = 29 in the sorted array [2, 12, 15, 17, 27, 29, 45]. What are the values of mid in each iteration until t...
Which type of inheritance in C++ allows a class to inherit from more than one base class?
What is the best case time complexity of merge sort?
Which of the following statements accurately describes hard computing?
Which traversal method for a binary tree processes the root node *after* visiting both its left and right subtrees?
You are designing a system where multiple threads need to access and modify a shared counter variable. What is a critical concern you must address to en...
Which of the following protocols is responsible for mapping an IP address to a MAC address in a local network?Â
What is the purpose of the #include
directive in C/C++ programming? Which is connectionless and unreliable protocol
Fill the correct option for blank space 23.