Question
In a certain code language, "BOND" is coded as 24 and
"PLANT" is coded as 67. How will "SMART" be coded in that language?Solution
The logic followed is: Code = (Sum of the positional values of consonants) + (Number of letters in the word). For BOND : Consonants: B (2), N (14), D (4) Sum: 2 + 14 + 4 = 20 Add number of letters (4): 20 + 4 = 24 For PLANT:
Consonants: P (16), L (12), N (14), T (20) Sum: 16 + 12 + 14 + 20 = 62 Add number of letters (5): 62 + 5 = 67
For SMART:
Consonants: S (19), M (13), R (18), T (20) Sum: 19 + 13 + 18 + 20 = 70 Add number of letters (5): 70 + 5 = 75 Thus, "SMART" is coded as 75.
Which of the following collision resolution techniques involves storing all elements that hash to the same value in a linked list?
Which algorithm constructs a suffix tree in linear time?
Fibonacci Heaps support Decrease-Key in:
Which cloud service model allows developers to deploy their applications without managing the underlying infrastructure?
Which memory type is the fastest but most expensive, typically located directly on the CPU?
Which of the following is a key characteristic of an effective Management Information System (MIS)?
Which of the following is an example of Polymorphism in Object-Oriented Programming?
Which of the following is the primary reason why polymorphism is useful in Object-Oriented Programming (OOP)?
Which of the following is true about triggers in a relational database?
Which of the following best describes the primary function of an IoT gateway in an Internet of Things (IoT) network?