Refer to the following example of sed

#sed -n ‘2, 5, p’ file1

What contents of the file1 will be selected and displayed ?

A only line 2 and 3 of the file1
B lines 2 through 5
C all lines except 2 and 5
D all lines except 2 through 5
Answer & Explanation
Option: [B]

Random GK Questions

A Jujhar Singh --- Shah Jahan
B Rana Sanga --- Babar
C Jaswant Singh --- Aurangzeb
D Prithvi Raj Chouhan--- Akbar

View Answer

A where Rashtrapati Bhavan is situated
B The Place where the Dogra rulers of J & K built their fort in Jammu
C The Hill feature in Srinagar, otherwise known as Shankara-charya Hill
D The rock feature at Kanya-kumari where Swami Vivekananda’s statue was erected.

View Answer

A Are drawn from both the Houses of Legislature
B Are only from the popular House
C Are not members of either House of Legislature
D Become members of Legislature after their appointment

View Answer

A They have mutual repulsion
B The atoms fused have mutual attraction
C The nuclear mass of the atom formed is less than the combined mass of the atoms fused
D The nuclear mass of the atom formed is greater than the combined nuclear mass of fused atoms

View Answer

A Oral
B Written
C Oral or written
D None of these

View Answer

Your Valuable Comments Please...

Useful Computer Science EBooks