Question
In a POSIX shell script, which construct correctly tests
whether variable x is an empty string?Solution
-z returns true if string length is zero; quoting $x avoids word-splitting when empty.
Which of the following is coded as ‘cmk psk’?
If PIN is coded as ‘117’ and CLAP is coded as ‘128’, then what is the code for ‘JOKE?
In a certain code language, YEARS is written as ZDZST, and RIGID is written as SHHHE. How will ORPHAN be written in that language?
In a certain code language, ‘APPLE’ is written as ‘25’ and ‘JUNIOR’ is written as ‘36’. How will ‘PACKAGE’ be written in that lan...
In a certain code, STRIVE is written as RSQHUD. How PRIEST can be written in that code?
In a certain code language, ‘PORE’ is written as ‘56’ and ‘MALL’ is written as ‘40’. What will be the code for ‘HURT’ in that code l...
In a certain code language, ‘APPRAISAL’ is written as ‘CRRTCKUCN’. What will be the code for ‘COLLECTOR’ in the same code language?
...In a certain code language, 'MOUNTAIN' is coded as 'OMNUATNI' and 'PLAYER' is coded as 'LPYARE’, then what will be the code for 'BRIGHT' in the same ...
The code “oth” represents which of the following word?
What is the code of ‘impossible’?