Question
In a certain code language, ‘GLASS’ is coded as 20 and
‘SUGAR’ is coded as 8. How will ‘CRISP’ be coded in that language?Solution
The words are coded as the sum of the positional values of the 3rd and 4th letters from the left as per the English alphabetical series.
GLASS → 20
3rd letter A = 1
4th letter S = 19
Code = 1 + 19 = 20
SUGAR → 8
3rd letter G = 7
4th letter A = 1
Code = 7 + 1 = 8
CRISP → ?
3rd letter I = 9
4th letter S = 19
Code = 9 + 19 = 28
Which of the following I/O scheduling algorithms provides the most efficient disk access for systems with many requests clustered around a central locat...
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...
What is the primary purpose of Apache Hive in the Hadoop ecosystem?
Which system call is typically used by a parent process to wait for a child process to terminate?
In a multi-homed network, BGP route flapping causes external instability. Which mechanism MOST effectively prevents repeated advertisement of unstable r...
In a Binary Search Tree (BST), which traversal technique results in nodes being visited in ascending order?
Which of the following is the primary characteristic of serverless computing in cloud platforms?
A priority queue is a special type of queue where each element has a priority. What is the typical time complexity for inserting an element into a prior...
Which NoSQL database is column-oriented and widely used in Big Data?
What is the significance of the "best case" time complexity of an algorithm?