Question
In a certain code language, "ROCK" is coded as 36 and
"MUSIC" is coded as 40. How will "SONG" be coded?Solution
The logic followed is: Code = (Sum of the positional values of consonants) + (Number of letters in the word).
For ROCK:
Consonants: R (18), C (3), K (11)
Sum: 18 + 3 + 11 = 32
Add number of letters (4): 32 + 4 = 36
For MUSIC:
Consonants: M (13), S (19), C (3)
Sum: 13 + 19 + 3 = 35
Add number of letters (5): 35 + 5 = 40
For SONG:
Consonants: S (19), N (14), G (7)
Sum: 19 + 14 + 7 = 40
Add number of letters (4): 40 + 4 = 44.
Which searching algorithm requires the data to be sorted beforehand?
What is the role of the catch block in exception handling?
Which of the following is a subset of AI that focuses on enabling machines to understand, interpret, and respond to human language?
Mention any two indirect measures of product.
- Which stations can detect whether the channel is in use prior to transmitting?
Which technology is most commonly associated with cryptocurrencies like Bitcoin?
What application layer protocol is used for the retrieval of email from a mail server?
Which tree traversal visits the nodes in the order: left, root, right?
Which logic gate operation is performed by an XOR gate?
The SI unit for measuring pressure is: