Question
What is Rahul by profession?
Answer the questions on the basis of the following information There are five persons Sohan, Megha, Rahul, Kajal and Gagan. Two of them are Doctors, while other three are Engineer, Architect and Chartered Accountant. A doctor and the Chartered Accountant own a same car Superb. The other three own different cars viz. City, Innova and Verna. Two of the five persons stay in Mumbai, while the other three persons live in three different cities viz. Delhi, Pune and Bangalore. They all have different height in which rank 1 is given to the tallest and 5 to the shortest. The Chartered Accountant is the tallest, while the doctor who is an ENT is the shortest. The other doctor is an eye specialist and lies between the Engineer and Chartered Accountant height wise. Kajal is an eye specialist and owns Superb while Gagan lives in Delhi and owns a Verna. The engineer lives in Pune and owns a City. Megha lives in Bangalore, while Sohan lives in Mumbai and is an ENT.Solution
From the given clues there are five persons with four different professions living in four different cities owning four different cars. They all have different height. Following table can be made, in which rank 1 is given to the tallest and 5 to the shortest: Since, the engineer lives in Pune and owns a city, he must be Rahul. Further, a Chartered Accountant and a doctor (eye specialist) owns a superb implies Megha is the Chartered Accountant and Sohan owns Innova, Gagan is an Architect and Kajal lives in Mumbai. As Megha is the Chartered Accountant, she is the tallest and the eye specialist lies between Chartered Accountant and Engineer height-wise implies rank in terms of height of Eye specialist and Engineer is 2 and 3 respectively. Therefore, rank of Gagan, the architect is 4. Following is the final table
Which command is used to search for a pattern in files?
Which command is used to find the number of lines, words, and characters in a file?
Which command is used to combine the contents of multiple files?
Which construct allows embedding a block of text in shell scripts as input?
In shell scripting, which operator is used for string comparison?
Which command is used to make a shell script executable?
Which symbol is used in shell scripting to reference a positional parameter, e.g., the first argument passed to a script?
In a POSIX shell script, which construct correctly tests whether variable x is an empty string?
In shell scripting, which symbol represents all files in the current directory?
In bash, what does trap 'echo Exit' EXIT do?