Question
In a code language, ‘PRIGHT’ is written as
‘UFHGSN’ and ‘GARDEN’ is written as ‘OCEPBE’. How will ‘WINDOW’ be written in that language?Solution
The logic followed here is: First, all the letters are written in reverse order. From the left end, letters in even positions are replaced by their second preceding letter while the letters at odd positions replaced by their immediate succeeding letter, as per English alphabetical series. PÂ Â Â Â Â Â Â Â RÂ Â Â Â Â Â Â Â IÂ Â Â Â Â Â Â Â Â Â GÂ Â Â Â Â Â Â Â HÂ Â Â Â Â Â Â Â T TÂ Â Â Â Â Â Â Â Â HÂ Â Â Â Â Â Â Â GÂ Â Â Â Â Â Â Â IÂ Â Â Â Â Â Â Â Â Â RÂ Â Â Â Â Â Â Â P + 1Â Â Â Â -2Â Â Â Â Â Â + 1Â Â Â Â Â Â -2Â Â Â Â Â Â + 1Â Â Â Â Â Â -2 UÂ Â Â Â Â Â Â Â FÂ Â Â Â Â Â Â Â Â HÂ Â Â Â Â Â Â Â GÂ Â Â Â Â Â Â Â SÂ Â Â Â Â Â Â Â N So, PRIGHT is written as UFHGSN. GÂ Â Â Â Â Â Â Â AÂ Â Â Â Â Â Â Â RÂ Â Â Â Â Â Â Â DÂ Â Â Â Â Â Â Â EÂ Â Â Â Â Â Â Â N NÂ Â Â Â Â Â Â Â EÂ Â Â Â Â Â Â Â DÂ Â Â Â Â Â Â Â RÂ Â Â Â Â Â Â Â AÂ Â Â Â Â Â Â Â G + 1Â Â Â Â -2Â Â Â Â Â Â + 1Â Â Â Â Â Â -2Â Â Â Â Â Â + 1Â Â Â Â Â Â -2 OÂ Â Â Â Â Â Â Â CÂ Â Â Â Â Â Â Â EÂ Â Â Â Â Â Â Â PÂ Â Â Â Â Â Â Â BÂ Â Â Â Â Â Â Â E So, GARDEN is written as OCEPBE. WÂ Â Â Â Â Â Â IÂ Â Â Â Â Â Â Â Â Â NÂ Â Â Â Â Â Â Â DÂ Â Â Â Â Â Â Â OÂ Â Â Â Â Â Â Â W WÂ Â Â Â Â Â Â OÂ Â Â Â Â Â Â Â DÂ Â Â Â Â Â Â Â NÂ Â Â Â Â Â Â Â IÂ Â Â Â Â Â Â Â Â Â D + 1Â Â Â Â -2Â Â Â Â Â Â + 1Â Â Â Â Â Â -2Â Â Â Â Â Â + 1Â Â Â Â Â Â -2 XÂ Â Â Â Â Â Â Â MÂ Â Â Â Â Â Â Â EÂ Â Â Â Â Â Â Â LÂ Â Â Â Â Â Â Â Â JÂ Â Â Â Â Â Â Â Â B So, WINDOW is written as XMELJB.
Consider a delete_node(head, key) function for a singly linked list that removes the first occurrence of a node with a given key. The function works for...
What is the final value of x after the following C++ code snippet executes?
  int x = 10;
  for (int i = 0; i < 3; ++i) {
�...
Which Hadoop component is responsible for resource management?
The output of the circuit below is _______
Which of the following statements accurately describes the role of system calls in an operating system?Â
Which of the following statements accurately describes hard computing?
Which of the following describes a major benefit of Continuous Integration (CI) in the software development lifecycle?Â
Which statement is FALSE for analog input module for PLCs?Â
Which of the following statements best describes a mesh topology in network design?
Which of the following tools is commonly used for compliance auditing in Unix/Linux environments?Â