InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which command is used for killing a line?(a) ctrl-k(b) del(c) esc(d) ctrl-uThis question was addressed to me in class test.This key question is from General Purpose Commands in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct answer is (d) ctrl-u |
|
| 2. |
Which control unlocks the keyboard?(a) ctrl-u(b) ctrl-c(c) ctrl-z(d) ctrl-qThe question was posed to me during an interview.This question is from General Purpose Commands in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct choice is (d) ctrl-q |
|
| 3. |
Ctrl-S stops scrolling of screen output and ________(a) locks terminal(b) delete a character(c) locks keyboard(d) delete a lineI have been asked this question in an interview for job.Asked question is from General Purpose Commands topic in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct choice is (c) locks keyboard |
|
| 4. |
When backspace doesn’t work to erase characters, we can use _____(a) ctrl-f(b) ctrl-h(c) ctrl-c(d) ctrl-uThe question was posed to me in homework.This is a very interesting question from General Purpose Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct choice is (b) ctrl-H |
|
| 5. |
For interrupting a command, we can use _____(a) ctrl-f(b) esc(c) ctrl-h(d) ctrl-cThis question was addressed to me in exam.My query is from General Purpose Commands in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right answer is (d) ctrl-c |
|
| 6. |
Which command handles a character stream by duplicating its input?(a) tree(b) tee(c) tty(d) lsThe question was asked in an interview for job.This interesting question is from General Purpose Commands topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct answer is (b) tee |
|
| 7. |
We can use man command for displaying the documentation of man itself.(a) True(b) FalseThe question was posed to me during an interview for a job.The query is from General Purpose Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct option is (a) True |
|
| 8. |
Which command is used by the user to change their login password in UNIX?(a) man(b) reset(c) passwd(d) cpThis question was posed to me in an interview for job.Question is taken from General Purpose Commands topic in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right answer is (c) passwd |
|
| 9. |
-h option is used with who command for what purpose?(a) display output with header information(b) display output with a more detailed version(c) display output with trailer information(d) display output in columnar formThe question was asked during an online interview.My question comes from General Purpose Commands in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right option is (a) display output with HEADER INFORMATION |
|
| 10. |
history command displays the log of recently used commands.(a) True(b) FalseThis question was addressed to me during an interview.The query is from General Purpose Commands in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct answer is (a) True |
|
| 11. |
Two or more users can have same login name in the output of who command.(a) True(b) FalseI have been asked this question in examination.The origin of the question is General Purpose Commands topic in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct OPTION is (a) True |
|
| 12. |
Which of the following is not an internal command used by mailx?(a) N(b) d(c) q(d) aThe question was posed to me in exam.I'm obligated to ask this question of General Purpose Commands topic in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» RIGHT choice is (d) a Easy EXPLANATION: There are various INTERNAL COMMANDS used by mailx each of which performs a specified task. |
|
| 13. |
Which of the following function cannot be performed by mailx command?(a) sending and receiving emails(b) reply to the sender(c) forward, delete and print mails(d) un-send mailsI have been asked this question in an interview for internship.This question is from General Purpose Commands in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right choice is (d) un-send mails |
|
| 14. |
script command is used for___________(a) recording history(b) recording our session(c) recording passwords(d) recording scriptsThis question was addressed to me in a national level competition.Origin of the question is General Purpose Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct answer is (B) RECORDING our session |
|
| 15. |
mailx command is used for sending and receiving emails.(a) True(b) FalseI have been asked this question in exam.This key question is from General Purpose Commands topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct ANSWER is (a) True |
|
| 16. |
For what purpose bc command is used?(a) as a calculator(b) as an editor(c) as a process table viewer(d) for copying filesI got this question in an interview for internship.My query is from General Purpose Commands in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct choice is (a) as a calculator |
|
| 17. |
Which of the following is a valid option with script command?(a) -b(b) -a(c) -d(d) -xThe question was posed to me in class test.I want to ask this question from General Purpose Commands in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct answer is (b) -a |
|
| 18. |
Which command is used as an alternative to echo command?(a) ls(b) printf(c) wc(d) psThe question was posed to me in an online quiz.My query is from General Purpose Commands in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct choice is (b) printf |
|
| 19. |
What are escape sequences?(a) special characters beginning with a \ (backslash)(b) special commands(c) special utilities(d) a sequence of charactersThe question was asked during an interview.I want to ask this question from General Purpose Commands in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct answer is (a) special characters beginning with a \ (backslash) |
|
| 20. |
Which command is used for displaying date in the format dd/mm/yyyy ?(a) date+%m(b) date +%h(c) date+”%d/%m/%Y”(d) date +”%h %m”The question was posed to me by my school principal while I was bunking the class.This interesting question is from Commands topic in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct option is (C) date+”%d/%m/%Y” |
|
| 21. |
echo command is used for _________(a) displaying errors(b) displaying operating system details(c) displaying diagnostic messages(d) displaying date and timeI have been asked this question in examination.My enquiry is from General Purpose Commands topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right answer is (c) displaying diagnostic messages |
|
| 22. |
What are meta-characters?(a) special characters having predefined meaning to the shell(b) special symbols(c) shell symbols(d) command symbolsThis question was posed to me in an internship interview.This key question is from Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right choice is (a) special characters having predefined meaning to the shell |
|
| 23. |
What is the output of who command?(a) display information about users who are currently logged in.(b) display file hierarchy(c) display administrator information(d) display processesI have been asked this question by my school teacher while I was bunking the class.I would like to ask this question from Commands in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The CORRECT answer is (a) display information about users who are currently logged in. |
|
| 24. |
Which command is used for displaying date and calendar in UNIX?(a) date and cal(b) DATE and CAL(c) date and calendar(d) dt and clI had been asked this question during an interview.I'd like to ask this question from Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct answer is (a) date and cal |
|
| 25. |
Which command is used to display the documentation of commands in UNIX?(a) help(b) search(c) whatis(d) manI got this question in an interview.This interesting question is from Commands in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right choice is (d) man |
|
| 26. |
How can we specify more than one command in the command line at the same time?(a) using ;(b) using >(c) using ==(d) not possibleThis question was addressed to me during an internship interview.My doubt is from Commands in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct option is (a) using ; |
|
| 27. |
Which of the following is not a valid option of uname?(a) -a(b) -s(c) -v(d) -zThis question was addressed to me in an interview for job.This intriguing question originated from Commands topic in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» CORRECT choice is (d) -z Easiest EXPLANATION: UNAME command is used for PRINTING the information about the current system.-a is used for printing all the information including version NAME, kernel name, kernel release, machine hardware name etc. -s is used for printing only the kernel name while -v is used for printing the kernel version. |
|
| 28. |
Options are also arguments but begin with a -.(a) True(b) FalseThe question was posed to me during an interview for a job.My query is from Commands in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right option is (a) True |
|
| 29. |
The sequences of directories that a shell searches while looking for a command is specified in the PATH variable.(a) True(b) FalseThis question was posed to me by my college professor while I was bunking the class.Query is from Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct CHOICE is (a) True |
|
| 30. |
Which command is used for extracting the details of the operating system?(a) cd(b) echo(c) uname(d) wcThe question was posed to me during an interview.This intriguing question originated from Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct option is (C) uname |
|
| 31. |
What are Commands?(a) specific instructions for performing a particular task(b) part of the operating system(c) part of the shell(d) special instructionsI got this question in a national level competition.Enquiry is from Commands topic in portion The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct option is (a) specific instructions for performing a PARTICULAR task |
|
| 32. |
In how many categories, commands of UNIX operating system classified?(a) 1(b) 2(c) Many(d) 0This question was addressed to me in an online quiz.The question is from Commands in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» CORRECT answer is (b) 2 Easiest EXPLANATION: There are two broad categories in which the classification of commands is based on UNIX. They are namely—external commands and internal commands. External commands are those commands that have an independent EXISTENCE in the /bin directory i.e. these are the EXECUTABLES which are present in separate files while Internal commands are BUILT-in commands which are built into the shell. Example, ‘ls’ is an external command while ‘echo’ is an internal command. |
|
| 33. |
What is the windowing system of UNIX known as?(a) X Window system(b) LINUX(c) Red Hat(d) DOSI have been asked this question by my college professor while I was bunking the class.Question is from Introduction to UNIX topic in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct option is (a) X WINDOW system |
|
| 34. |
Two UNIX systems may or may not use the same set of system calls.(a) True(b) FalseI have been asked this question in exam.Query is from Introduction to UNIX topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» CORRECT CHOICE is (b) False For explanation I would SAY: All UNIX flavors have one thing in common, they use the same SYSTEM calls which are described in POSIX specification. |
|
| 35. |
What is a superuser?(a) system manager(b) normal user(c) administrator(d) a user with special rightsThe question was asked during an online exam.My doubt is from Introduction to UNIX in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Right CHOICE is (a) system manager |
|
| 36. |
Which part of the UNIX operating system interacts with the hardware?(a) Kernel(b) Shell(c) vi editor(d) application programThis question was posed to me in an online interview.Question is taken from Introduction to UNIX topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct CHOICE is (a) Kernel |
|
| 37. |
Shell is a command interpreter used for interacting with a UNIX system.(a) True(b) FalseThe question was asked in an online interview.This key question is from Introduction to UNIX in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct OPTION is (a) True |
|
| 38. |
POSIX is a set of standards specified for establishing compatibility between operating systems.(a) True(b) FalseI got this question in an online quiz.Asked question is from Introduction to UNIX topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct choice is (a) True |
|
| 39. |
Which of the following is not true about UNIX?(a) Many people can use a UNIX based computer at the same time; hence UNIX is called as a multiuser system(b) A user can run multiple programs at the same time; hence UNIX is called a multitasking environment(c) UNIX was not written in ‘C’ language(d) Linux is also known as a version of UNIXThe question was posed to me during an interview.The doubt is from Introduction to UNIX in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct CHOICE is (c) UNIX was not written in ‘C’ language |
|
| 40. |
Which of the following is not a part of all the versions of UNIX?(a) Kernel and Shell(b) Commands and utilities(c) Graphical user interface(d) System CallsI got this question by my college professor while I was bunking the class.I'd like to ask this question from Introduction to UNIX topic in division The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct choice is (c) GRAPHICAL user interface |
|
| 41. |
In which language UNIX is written?(a) JAVA(b) Python(c) C++(d) CI got this question by my school teacher while I was bunking the class.Query is from Introduction to UNIX topic in section The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» Correct answer is (d) C |
|
| 42. |
Which of the following is not a feature of UNIX?(a) multitasking(b) multiuser(c) portability(d) easy to useI had been asked this question in unit test.I want to ask this question from Introduction to UNIX topic in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct answer is (d) EASY to use |
|
| 43. |
What is UNIX?(a) an operating system(b) a text editor(c) programming language(d) software programI have been asked this question at a job interview.This interesting question is from Introduction to UNIX in chapter The Unix Architecture & General Purpose Utilities of Unix |
|
Answer» The correct option is (a) an operating system |
|