Question
A spherical balloon has a radius of 7 meters. If the
balloon is inflated and the volume increases by 4 times, what will be the new radius of the balloon?Solution
The volume of a sphere is given by V = (4/3)πr³. Let the initial radius be r = 7 meters. Initial volume = (4/3)π(7)³ = (4/3)π(343) = 457.33π m³. If the volume increases by 4 times, the new volume is 4 × 457.33π = 1829.33π m³. Let the new radius be R. Then, (4/3)πR³ = 4 × (4/3)π(7)³, R³ = 4 × 7³, R³ = 4 × 343 = 1372, R ≈ ∛1372 ≈ 11 meters.
State True or False
Kernel level thread cannot share the code segment.
Which of the following protocol is a network layer protocol and used for reporting errors?
What is the time complexity of a Binary Search algorithm on a sorted array of 'n' elements?
What is the primary purpose of Named Entity Recognition (NER)?
Consider the in-order traversal of a Binary Search Tree. What characteristic does the sequence of visited nodes possess?
In a 0/1 Knapsack problem implemented using dynamic programming, a common mistake is to allow items to be reused, effectively turning it into an unbound...
In a backtracking algorithm, what happens when a partial solution is found to violate a constraint?
Consider the following Python code:
text = "banana"
char_to_find = 'a'
count = 0
for i in range(len(text)):
  if ...
What is a common disadvantage of greedy algorithms?
What is the primary purpose of the UNION ALL operator in SQL?