Question
In a certain code language, "LANTERN" is written as 45, and
"CANDLE" is written as 29. How will "TORCH" be written in that language?Solution
The logic followed here is:
To obtain the code, the place values of alternate letters (starting from the first letter from the left) are added as per the English alphabetical series.
For LANTERN:
Code = (12 + 14 + 5 + 14) = 45
For CANDLE:
Code = (3 + 14 + 12) = 29
For TORCH:
Code = (20 + 18 + 8) = 46
Which C operator is used to access a value at a memory address stored in a pointer?
In Python, which method is used to convert a string to lowercase?
- Which network device operates at the Data Link Layer of the OSI model and helps to filter and forward data between LAN segments?
Which of the following is true about Java interfaces?
In Python, which of the following is used to create an anonymous function?
Which type of malware disguises itself as legitimate software but has malicious intent once installed?
 What is the output of the following code: x = 5; y = 2; print(x ** y)?
In C, which function is used to dynamically allocate memory?
Which software development methodology emphasizes iterative development and customer feedback? Â Â Â Â Â Â Â
...Which Python keyword is used to handle exceptions?