Question
In a certain code language, ‘CALCIUM’ is coded as
‘25’ and ‘FLOWER’ is coded as ‘53’. What is the code of word ‘MEMORIES’ in the same coding language?Solution
The pattern followed here is as follow: Code of the word is the sum of all the place value of letters which are at even position, in the given word, from the left end. CALCIUM = A + C + U = 1 + 3 + 21 = 25. FLOWERS = L + W + R = 12 + 23 + 18 = 53. MEMORIES = E + O + I + S = 5 + 15 + 9 + 19 = 48
Which command is used to display the number of lines in a file?
What will be the output of the following script snippet?
  for item in Apple Banana Cherry; do
 echo $item
done
Which of the following is a system call used to create a new process in Unix-like operating systems?
Which of the following is the syntax for an `if` statement checking if a variable `NUM` is numerically equal to 5?
In a POSIX shell script, which construct correctly tests whether variable x is an empty string?
What does $# represent in a shell script?
Which command is used to display all currently running processes in Linux?
Which operator enables process substitution?
Which command is used to read user input from the keyboard and store it in a variable?
Which character is used to denote a single-line comment in a shell script?