43
Set1: 1.Which of the following is used for matching patterns in regular expression? Select an answer A. ^ B. > C. < D. $ 2.In UNIX, fork is a system call that creates a new pcb. Select an answer A. TRUE B. FALSE 3.File name is case sensitive. Select an answer A. TRUE B. FALSE 4.Every Command does not have all sections. Select an answer A. TRUE B. FALSE 5.Which of the following is not the filter command? (Please select ALL that apply) Select an answer A. Head B. Grep C. :w D. Ex E. Uniq 6.The agency that sits between the user and the UNIX system is called the: Select an answer A. Logic B. Profile C. Shell D. Erxc 7.intalphasort(const void *a, const void *b) is a valid function. Select an answer A. TRUE B. FALSE 8.A file is a collection of data. Select an answer A. TRUE B. FALSE 9.Which symbol is used to specify a group of character? Select an answer A. () B. {} C. [] D. <> 10.Simple form of synchronization between parent and child.int wait (int * statloc ); Select an answer A. TRUE B. FALSE 11.Open() is a:

unix MCQ

Embed Size (px)

DESCRIPTION

Its a UniX MCQ Collections

Citation preview

  • Set1: 1.Which of the following is used for matching patterns in regular expression?Select an answerA. ^B. >C. B. >D.

  • software interrupts, to allocate memory, and to do other useful jobs for a process.Select an answerA. TRUEB. FALSE22.What does date command print?Select an answerA. Login dateB. Log out dateC. System dateD. None of the options are correct23.ls and find are:Select an answerA. DirectoriesB. CommandsC. Both Directories and CommandsD. None of the options are correct24.Find command is used to search files in specified directorySelect an answerA. TRUEB. FALSE25.fork() does not creates a new copy of the signal table for the new process.Select an answerA. TRUEB. FALSE26.-mtime n operator is used for search files which were modified 24 hours ago.Select an answerA. TRUEB. FALSE27.int alphasort (const void *a, const void *b) is a valid function.Select an answerA. TRUEB. FALSE28.Which command will be used with vi editor to insert text to left of cursor?Select an answerA. SB. SC. AD. I29.ps command shows a combination of information from the process table and the user area.Select an answerA. TRUEB. FALSE30.The Kernel communicates with the hardware in machine language.Select an answerA. TRUEB. FALSE31.A system composed of a set of instruction for a given object-desk is called:Select an answerA. ProgramB. InformationC. TechnologyD. All the options are correct

  • 32.How to get date information into day variable in Bourne shell?Select an answerA. day='date'B. day='date'C. day="date"D. day=date33.The output of the command "echo hello | wc -c" is:hereSelect an answerA. bash: echo: command not foundB. 4C. 5D. 634.How to remove blank lines from a file in an editor?Select an answerA. Esc delB. Esc ddC. Esc :ddD. Esc d35.How do you create a new file using vi?Select an answerA. new filenameB. vi filenameC. touchD. cat>filename36.Which option will be used with ps command to slow the entire command line of the processbeing run?Select an answerA. -4B. -fC. -1D. -437.Which symbol is used for merging the standard error message to the same output file?Select an answerA. >B. &C. &&D. None of the options are correct38.Choose the valid command to a add user.Select an answerA. adduser usernameB. add usernameC. user usernameD. None of the options are correct39.Which are types of storage for file format?Select an answerA. DirectoriesB. DataC. ProgramD. All the options are correct40.What is the primary job of the shell?Select an answerA. A command interpreter

  • B. The core of the operating systemC. Interpreter between applications and the OSD. Shell programming41.Which is the default shell in UNIX?Select an answerA. BashB. KshC. CshD. Sh42.The process table is located in kernel memory and cannot be swapped out. Each entry contains:Select an answerA. PIDB. User IDC. StateD. All the options are correct43.Which command is used to remove a file?Select an answerA. RemoveB. RmC. MvD. Del44.Memory allocation by which the program is subdivided into equal portions is called _____.Select an answerA. PagingB. PartitioningC. FetchingD. Blocking45.While working with mail command, which command is used to save mail i a separate file?Select an answerA. SB. RC. WD. D46.Which are the types of storage for file format?Select an answerA. DirectoriesB. DataC. ProgramD. All the options are correct47.Processor substitutes the definition for all occurrences of the abbreviation in the program iscalled:Select an answerA. Program CallB. Macro CallC. SubstitutesD. None of the options are correct48.Command used to delete 10 lines from the current line is:Select an answerA. 10ddB. 10dC. 10dlD. None of the options are correct

  • 49.cat< file1 >file2 2> err.logwhat is the output of the command?Select an answerA. Concates file1 and file2 , if any error stored to "err.log" fileB. Concates file1 and file2 , if any error displayed on consoleC. Contents of file1 is stored under file2, if any error stored to "err.log" fileD. None of the options are correct50.Command used to display output of a command line by line is:Select an answerA. More file nameB. Less file nameC. Both more and less file nameD. None of the options are correct51.In the output of ls -l if the first character is an s the file type is:Select an answerA. Symbolic linkB. Socket special fileC. Block special fileD. Character special file52.The group of the file and the group of the directory is always the same for all new files createdwhen:Select an answerA. The set userid is set on the directoryB. The set group id is setC. The sticky bit is set on the directoryD. The user belongs to a different group as that of the file53.How do we display the last second line of a file?Select an answerA. tail -2 filename | head 1B. cat filename | tail -3 | head -1C. tail +2 filename | head -1 | tail 1D. None of the options are correct54.The process table is located in kernel memory and cannot be swapped out. Each entry contains:Select an answerA. PIDB. User IDC. StateD. All the options are correct55.catemp.lst | sort | tee temp | uniq | cut d " " f2What is the output of the file temp?Select an answerA. Unsorted contents of emp.lstB. Error in pipingC. Sorted contents of emp.lstD. None of the options are correct56.Which of the following commands will show the current run level?Select an answerA. boot -lB. who -bC. uptimeD. who -r57.If programmer wants to repeat identical part of their program, __________ permit the

  • programmers to define an abbreviation in his program.Select an answerA. System ProgrammingB. MacrosC. Shell ScriptingD. Advanced Shell scripting58.Which is the valid command to copy a file from /root directory to current directory?Select an answerA. cp / root / filenameB. cp / root / filename $HOMEC. cp / root.filename / usr /username /currentD. None of the options are correct59.Choose a valid Logical Test expression to check a non-numeric value with another value.Select an answerA. if test $v1 eq $ v2B. if $v1 = $v2C. if test $v1 = $v2D. if test $v1 == $v260.The Octal number to be given along with chmod command to make a file readable, writable, andexecutable to the owner, readable and executable to group and others is:Select an answerA. 0B. 755C. 744

    D. 555

  • set 2 : Which of the following is not involved with system programming?Select an answerA. I/o ProcessorsB. CPUC. Printer DD. All the options are correctA "." matches multiple characters.Select an answerA. TRUEB. FALSE Bint alphasort (const void *a, const void *b) is a valid function.Select an answerA. TRUE AB. FALSEMore command is used to display text in the terminal screen.Select an answerA. TRUE AB. FALSEFind command is used to search files in specified directorySelect an answerA. TRUE AB. FALSEWe can redirect the error messages to alternate location using the error redirection operator.Select an answerA. TRUE AB. FALSEThe default integer value of standard error file is:Select an answerA. 1B. 2C. 4D. 0 BThe file limit for UNIX, LINUX is up to 255 characters.Select an answerA. TRUE AB. FALSEThe engine of UNIX is:Select an answerA. The ShellB. CommandC. The kernel CD. None of the options are correctFile name is case sensitive.Select an answerA. TRUEB. FALSE Bcreat() stands for:Select an answerA. OpenB. InputC. Output

  • D. Create DWhich symbol is used to specify a group of character?Select an answerA. ()B. {} BC. []D. The UNIX system provides several system calls to create and end program, to send and receivesoftware interrupts, to allocate memory, and to do other useful jobs for a process.Select an answerA. TRUE AB. FALSEWhich of the following commands is used to obtain a list of all files by modification time?Select an answerA. ls -1B. ls-tC. ls-i CD. ls-RHow many types of commands is mainly used in UNIX?Select an answerA. 2B. 3 BC. 4D. 5-mtime n operator is used for search files which were modified 24 hours ago.Select an answerA. TRUEB. FALSE BCommand for changing permissions is:Select an answerA. Chmod AB. ChgrpC. CatD. CdKernel is loaded into memory when the system boots.Select an answerA. TRUE AB. FALSEThe Kernel communicates with the hardware in machine language.Select an answerA. TRUE AB. FALSEEvery Command does not have all sections.Select an answerA. TRUE AB. FALSEalphasort() and versionsort() functions are used as the comparison function.Select an answerA. TRUE AB. FALSERegular expressions allow matching and manipulation of textual data.Select an answer

  • A. TRUE AB. FALSEfork() does not creates a new copy of the signal table for the new process.Select an answerA. TRUEB. FALSE BWhich command will be used with vi editor to insert text to left of cursor?Select an answerA. SB. SC. AD. I DWhich command is used to remove a directory?Select an answerA. RdB. Rmdir BC. DldirD. RdirA link is a pointer reference to another file.Select an answerA. TRUE AB. FALSEWhich command list hidden files?Select an answerA. ls-lB. ls-a BC. ls-hD. ls-IfWhich of the following options will be used to display number of blocks used by a file?Select an answerA. -cB. -i BC. -dD. -sWhich symbol is used for output redirection operator?Select an answerA. > AB. >D.
  • The filed separator in cut command is specified with:Select an answerA. -a optionB. -d option BC. -r optionD. -x optionWhich command is used to upload filename from local machine to remote machine?Select an answerA. Mput AB. get filenameC. put filenameD. mput file listWhat will rm -rf * do?Select an answerA. Removes all filesB. Removes all directoriesC. Removes all files and directories in a directory cD. Gives errorThe parenthesis are a feature used for:Select an answerA. Command SubstitutionB. Command evaluationC. Sub ShellD. None of the options are correctWhich is a super-user prompt?Select an answerA. $ AB. %C. #D. *The > operator is used for:Select an answerA. Comparison of two numbersB. Input RedirectionC. Output Redirection CD. PipingDefault Link for a directory is:Select an answerA. TwoB. One BC. ThreeD. NoneWhich of the following is not involved with the system programming?Select an answerA. I/O ProcessorsB. CPUC. Printer cD. All the options are correctWhich command is used to count just the number of characters in a file?Select an answerA. wc- 1B. wc-c c

  • C. wc-wD. wc-rThe task of adjusting programs so they may be placed in arbitrary core locations in called:Select an answerA. LoaderB. AllocationC. RelocationD. MacrosWhich of the following commands is used to update access and modification times of a file?Select an answerA. GrepB. WcC. Touch cD. CatSignal for system calls is:Select an answerA. SignalB. KillC. AlarmD. All the options are correctWhich symbol is used for input redirection operator?Select an answerA. >B. < BC. >>D.
  • Select an answerA. ReadingB. AddingC. DeletingD. All the options are correct DChoose a valid Logical Test expression to check a non-numeric value with another value.Select an answerA. if test $v1 eq $ v2 AB. if $v1 = $v2C. if test $v1 = $v2D. if test $v1 == $v2The group of the file and the group of the directory is always the same for all new files createdwhen:Select an answerA. The set userid is set on the directoryB. The set group id is setC. The sticky bit is set on the directory CD. The user belongs to a different group as that of the fileTypes of file access rights are:Select an answerA. Read access (r)B. Write access (w)C. Execute access (x)D. All the options are correct Dcatemp.lst | sort | tee temp | uniq | cut d " " f2What is the output of the file temp?Select an answerA. Unsorted contents of emp.lstB. Error in pipingC. Sorted contents of emp.lst CD. None of the options are correctcat one.txt two.txt>>three.txtwhat is the output of the command?Select an answerA. Appends three.txt contents with one.txt and two.txt AB. Displays one.txt two.txt and three.txtC. Error in RedirectionD. None of the options are correctWhich of the following commands will show the current run level?Select an answerA. boot -lB. who -bC. uptime cD. who -rOnly a few system calls are needed to implement process control in UNIX. They are:Select an answerA. LsB. intgetpidC. Ls onlyD. intgetpid onlyE. Both Ls and intgetpid EF. None of options are correct

  • Virtual memory is best defined for:Select an answerA. A Memory consisting of those addresses that may be generated by a processor duringexecution of a computationB. The memory space consists of the set of addresses that corresponded to physicallocationC. The technique of segmentation provides a large name space and a good protectionmechanismD. All the options are correct Dcat< file1 >file2 2> err.logwhat is the output of the command?Select an answerA. Concates file1 and file2 , if any error stored to "err.log" file AB. Concates file1 and file2 , if any error displayed on consoleC. Contents of file1 is stored under file2, if any error stored to "err.log" fileD. None of the options are correctWhich is the valid command to display all the files with size 100 to 399 bytes occupied?Select an answerA. ls -l | tr -s " " | cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"B. ls -ls | cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"C. ls |cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"D. None of the options are correctA program that places program into memory and also prepares them for execution is called:Select an answerA. Loader AB. CompilerC. Interpreter

    D. None of the options are correct

  • set 3 :Question: 1 of 60lt043979enQ0015How many types of links are there?Select an answerA. 1B. 2----C. 3D. 4Question: 2 of 60lt043979enQ0042ls and find are:Select an answerA. DirectoriesB. Commands----C. Both Directories and CommandsD. None of the options are correctQuestion: 3 of 60lt043979enQ0007We can redirect the error messages to alternate location using the error redirection operator.Select an answerA. TRUE----B. FALSEQuestion: 4 of 60lt043979enQ0010How many types of commands is mainly used in UNIX?Select an answerA. 2B. 3-----C. 4D. 5Question: 5 of 60lt043979enQ0003File name is case sensitive.Select an answerA. TRUE----B. FALSEQuestion: 6 of 60lt043979enQ0023Command for System Load Average is:Select an answerA. TimeB. ProfC. Uptime-----D. TopQuestion: 7 of 60lt043979enQ0019Open() is a:Select an answerA. Specific classB. General ClassC. System call----

  • D. None of the options are correctQuestion: 8 of 60lt043979enQ0047Which of the following is used for matching patterns in regular expression?Select an answerA. ^B. >--------C. -----B.
  • C. >>D.
  • C. -i-----D. -1Question: 22 of 60lt043979enQ0013The role of assemblers is a basic machine that passes through a program.Select an answerA. TRUE----B. FALSEQuestion: 23 of 60lt043979enQ0049A "." matches multiple characters.Select an answerA. TRUEB. FALSE----Question: 24 of 60lt043979enQ0006We can redirect the error messages to alternate location using the error redirection operator.Select an answerA. TRUE------B. FALSEQuestion: 25 of 60lt043979enQ0029Which command will be used with vi editor to insert text to left of cursor?Select an answerA. SB. SC. AD. I-----Question: 26 of 60lt043979enQ0009The default integer value of standard error file is:Select an answerA. 1B. 2----C. 4D. 0Question: 27 of 60lt043979enQ0020unlink and rm does the same to a file.Select an answerA. TRUE----B. FALSEQuestion: 28 of 60lt043979enQ0011Every Command does not have all sections.Select an answerA. TRUE---B. FALSEQuestion: 29 of 60lt043979enQ0036The engine of UNIX is:Select an answer

  • A. The Shell----B. CommandC. The kernelD. None of the options are correctQuestion: 30 of 60lt043979enQ0035Kernel is loaded into memory when the system boots.Select an answerA. TRUE---B. FALSEQuestion: 31 of 60lt043979enQ0182What does the Pipe ( | ) do?Select an answerA. Takes the output of a command and logs itB. Take the output of one command and displays it to the screenC. Takes the output of one command and passes it as the input into a following command---D. Takes the output & sends to userQuestion: 32 of 60lt043979enQ0179What is a File system?Select an answerA. A hierarchy of directories and subdirectoriesB. The core of the operating systemC. A hierarchy of directories, subdirectories, and files--D. Group of filesWhich command is used to set the positional parameters?Select an answerA. Set--B. EnvC. IsD. EchoQuestion: 34 of 60lt043979enQ0077Choose a valid Logical Test expression to check a non-numeric value with another value.Select an answerA. if test $v1 eq $ v2---B. if $v1 = $v2C. if test $v1 = $v2D. if test $v1 == $v2Question: 35 of 60lt043979enQ0192Which command will display what users are currently logged into the system?Select an answerA. id -aB. lastC. whodoD. who---Question: 36 of 60lt043979enQ0110Which are the types of storage for file format?Select an answer

  • A. DirectoriesB. DataC. ProgramD. All the options are correct---Question: 37 of 60lt043979enQ0173The files which are open by default for each and every process are:Select an answerA. Stdin--B. StdoutC. StderrD. All the options are correctE. None of the options are correctQuestion: 37 of 60lt043979enQ0173The files which are open by default for each and every process are:Select an answerA. StdinB. StdoutC. StderrD. All the options are correctE. None of the options are correctQuestion: 38 of 60lt043979enQ0073Choose the valid command to a add user.Select an answerA. adduser username---B. add usernameC. user usernameD. None of the options are correctQuestion: 39 of 60lt043979enQ0201Choose the valid command to a add user.Select an answerA. adduser username---B. add usernameC. user usernameD. None of the options are correctQuestion: 40 of 60lt043979enQ0200What is the echo command used for?Select an answerA. Display text or variables---B. Used to repeat a command more than onceC. Displays text twiceD. To echo the inputQuestion: 41 of 60lt043979enQ0056Which command is used to display the characteristics of a process?Select an answerA. PidB. Du

  • C. Ps---D. AuQuestion: 42 of 60lt043979enQ0129A directory contains .c files which have to be compressed. Which is the valid command to compressthem?Select an answerA. gzip *.cB. gzip -d *.cc. compress *.c cporg.gz----D. None of the options are correctQuestion: 43 of 60lt043979enQ0175Which command is used while finding out the type of file based on the contents of the file?Select an answerA. findB. chmodC. File--D. None of the options are correctQuestion: 44 of 60lt043979enQ0190UNIX is a:Select an answerA. Multiuser, multitasking OS---B. Multiuser, single tasking OSC. Single user, multitasking OSD. Single user, single tasking OSQuestion: 45 of 60lt043979enQ0119Which of the following special shell variables is used to process number of the last background job?Select an answerA. $!---B. $#C. 0D. $*Question: 46 of 60lt043979enQ0096Which of the following commands is used to display your working directory?Select an answerA. DirB. prompt $p$gC. pwdD. path---Question: 47 of 60lt043979enQ0128To Save and exit the vi editor, colon command used is:Select an answerA. :wq---B. :sqC. :seD. :q!Question: 48 of 60

  • lt043979enQ0117Which of the following commands is used to list contents of directories?Select an answerA. Ls---B. LpC. DirD. TarQuestion: 49 of 60lt043979enQ0220Wild card will extract of the requested information as per the input details like:Select an answerA. ReadingB. AddingC. DeletingD. All the options are correct----Question: 50 of 60lt043979enQ0215In the output of ls -l if the first character is an s the file type is:Select an answerA. Symbolic linkB. Socket special file---C. Block special fileD. Character special fileQuestion: 51 of 60lt043979enQ0224The features of UNIX are:Select an answerA. MultitaskingB. InteractiveC. PortableD. All the options are correct---Question: 52 of 60lt043979enQ0217Only a few system calls are needed to implement process control in UNIX. They are:Select an answerA. LsB. intgetpidC. Ls onlyD. intgetpid onlyE. Both Ls and intgetpid---F. None of options are correctQuestion: 53 of 60lt043979enQ0211How do we display the last second line of a file?Select an answerA. tail -2 filename | head 1B. cat filename | tail -3 | head -1----C. tail +2 filename | head -1 | tail 1D. None of the options are correctQuestion: 54 of 60lt043979enQ0221A program that places program into memory and also prepares them for execution is called:

  • Select an answerA. Loader=---B. CompilerC. InterpreterD. None of the options are correctQuestion: 55 of 60lt043979enQ0229The process table is located in kernel memory and cannot be swapped out. Each entry contains:Select an answerA. PIDB. User IDC. State----D. All the options are correctQuestion: 56 of 60lt043979enQ0225Types of file access rights are:Select an answerA. Read access (r)B. Write access (w)C. Execute access (x)D. All the options are correct----Question: 57 of 60lt043979enQ0216The group of the file and the group of the directory is always the same for all new files createdwhen:Select an answerA. The set userid is set on the directoryB. The set group id is setC. The sticky bit is set on the directory----D. The user belongs to a different group as that of the fileQuestion: 58 of 60lt043979enQ0207Which is the valid command to copy a file from /root directory to current directory?Select an answerA. cp / root / filenameB. cp / root / filename $HOMEC. cp / root.filename / usr /username /current---D. None of the options are correctcat one.txt two.txt>>three.txtwhat is the output of the command?Select an answerA. Appends three.txt contents with one.txt and two.txt---B. Displays one.txt two.txt and three.txtC. Error in RedirectionD. None of the options are correctQuestion: 60 of 60lt043979enQ0214Choose a valid Logical Test expression to check a non-numeric value with another value.Select an answerA. if test $v1 eq $ v2-----B. if $v1 = $v2C. if test $v1 = $v2

  • D. if test $v1 == $v2DI.

  • set 4 :Question: 1 of 60lt043979enQ0015How many types of links are there?Select an answerA. 1B. 2C. 3D. 4Question: 2 of 60lt043979enQ0042ls and find are:Select an answerA. DirectoriesB. CommandsC. Both Directories and CommandsD. None of the options are correctQuestion: 3 of 60lt043979enQ0007We can redirect the error messages to alternate location using the error redirection operator.Select an answerA. TRUEB. FALSEQuestion: 4 of 60lt043979enQ0010How many types of commands is mainly used in UNIX?Select an answerA. 2B. 3C. 4D. 5Question: 5 of 60lt043979enQ0003File name is case sensitive.Select an answerA. TRUEB. FALSEQuestion: 6 of 60lt043979enQ0023Command for System Load Average is:Select an answerA. TimeB. ProfC. UptimeD. TopQuestion: 7 of 60lt043979enQ0019Open() is a:Select an answerA. Specific classB. General ClassC. System call

  • D. None of the options are correctQuestion: 8 of 60lt043979enQ0047Which of the following is used for matching patterns in regular expression?Select an answerA. ^B. >C. B.
  • C. >>D.
  • C. -iD. -1Question: 22 of 60lt043979enQ0013The role of assemblers is a basic machine that passes through a program.Select an answerA. TRUEB. FALSEQuestion: 23 of 60lt043979enQ0049A "." matches multiple characters.Select an answerA. TRUEB. FALSEQuestion: 24 of 60lt043979enQ0006We can redirect the error messages to alternate location using the error redirection operator.Select an answerA. TRUEB. FALSEQuestion: 25 of 60lt043979enQ0029Which command will be used with vi editor to insert text to left of cursor?Select an answerA. SB. SC. AD. IQuestion: 26 of 60lt043979enQ0009The default integer value of standard error file is:Select an answerA. 1B. 2C. 4D. 0Question: 27 of 60lt043979enQ0020unlink and rm does the same to a file.Select an answerA. TRUEB. FALSEQuestion: 28 of 60lt043979enQ0011Every Command does not have all sections.Select an answerA. TRUEB. FALSEQuestion: 29 of 60lt043979enQ0036The engine of UNIX is:Select an answer

  • A. The ShellB. CommandC. The kernelD. None of the options are correctQuestion: 30 of 60lt043979enQ0035Kernel is loaded into memory when the system boots.Select an answerA. TRUEB. FALSEQuestion: 31 of 60lt043979enQ0182What does the Pipe ( | ) do?Select an answerA. Takes the output of a command and logs itB. Take the output of one command and displays it to the screenC. Takes the output of one command and passes it as the input into a followingcommandD. Takes the output & sends to userQuestion: 32 of 60lt043979enQ0179What is a File system?Select an answerA. A hierarchy of directories and subdirectoriesB. The core of the operating systemC. A hierarchy of directories, subdirectories, and filesD. Group of filesWhich command is used to set the positional parameters?Select an answerA. SetB. EnvC. IsD. EchoQuestion: 34 of 60lt043979enQ0077Choose a valid Logical Test expression to check a non-numeric value with another value.Select an answerA. if test $v1 eq $ v2B. if $v1 = $v2C. if test $v1 = $v2D. if test $v1 == $v2Question: 35 of 60lt043979enQ0192Which command will display what users are currently logged into the system?Select an answerA. id -aB. lastC. whodoD. whoQuestion: 36 of 60lt043979enQ0110Which are the types of storage for file format?

  • Select an answerA. DirectoriesB. DataC. ProgramD. All the options are correctQuestion: 37 of 60lt043979enQ0173The files which are open by default for each and every process are:Select an answerA. StdinB. StdoutC. StderrD. All the options are correctE. None of the options are correctQuestion: 37 of 60lt043979enQ0173The files which are open by default for each and every process are:Select an answerA. StdinB. StdoutC. StderrD. All the options are correctE. None of the options are correctQuestion: 38 of 60lt043979enQ0073Choose the valid command to a add user.Select an answerA. adduser usernameB. add usernameC. user usernameD. None of the options are correctQuestion: 39 of 60lt043979enQ0201Choose the valid command to a add user.Select an answerA. adduser usernameB. add usernameC. user usernameD. None of the options are correctQuestion: 40 of 60lt043979enQ0200What is the echo command used for?Select an answerA. Display text or variablesB. Used to repeat a command more than onceC. Displays text twiceD. To echo the inputQuestion: 41 of 60lt043979enQ0056Which command is used to display the characteristics of a process?Select an answerA. Pid

  • B. DuC. PsD. AuQuestion: 42 of 60lt043979enQ0129A directory contains .c files which have to be compressed. Which is the valid command to compressthem?Select an answerA. gzip *.cB. gzip -d *.cC. compress *.c cporg.gzD. None of the options are correctQuestion: 43 of 60lt043979enQ0175Which command is used while finding out the type of file based on the contents of the file?Select an answerA. findB. chmodC. FileD. None of the options are correctQuestion: 44 of 60lt043979enQ0190UNIX is a:Select an answerA. Multiuser, multitasking OSB. Multiuser, single tasking OSC. Single user, multitasking OSD. Single user, single tasking OSQuestion: 45 of 60lt043979enQ0119Which of the following special shell variables is used to process number of the last background job?Select an answerA. $!B. $#C. 0D. $*Question: 46 of 60lt043979enQ0096Which of the following commands is used to display your working directory?Select an answerA. DirB. prompt $p$gC. pwdD. pathQuestion: 47 of 60lt043979enQ0128To Save and exit the vi editor, colon command used is:Select an answerA. :wqB. :sqC. :seD. :q!

  • Question: 48 of 60lt043979enQ0117Which of the following commands is used to list contents of directories?Select an answerA. LsB. LpC. DirD. TarQuestion: 49 of 60lt043979enQ0220Wild card will extract of the requested information as per the input details like:Select an answerA. ReadingB. AddingC. DeletingD. All the options are correctQuestion: 50 of 60lt043979enQ0215In the output of ls -l if the first character is an s the file type is:Select an answerA. Symbolic linkB. Socket special fileC. Block special fileD. Character special fileQuestion: 51 of 60lt043979enQ0224The features of UNIX are:Select an answerA. MultitaskingB. InteractiveC. PortableD. All the options are correctQuestion: 52 of 60lt043979enQ0217Only a few system calls are needed to implement process control in UNIX. They are:Select an answerA. LsB. intgetpidC. Ls onlyD. intgetpid onlyE. Both Ls and intgetpidF. None of options are correctQuestion: 53 of 60lt043979enQ0211How do we display the last second line of a file?Select an answerA. tail -2 filename | head 1B. cat filename | tail -3 | head -1C. tail +2 filename | head -1 | tail 1D. None of the options are correctQuestion: 54 of 60lt043979enQ0221

  • A program that places program into memory and also prepares them for execution is called:Select an answerA. LoaderB. CompilerC. InterpreterD. None of the options are correctQuestion: 55 of 60lt043979enQ0229The process table is located in kernel memory and cannot be swapped out. Each entry contains:Select an answerA. PIDB. User IDC. StateD. All the options are correctQuestion: 56 of 60lt043979enQ0225Types of file access rights are:Select an answerA. Read access (r)B. Write access (w)C. Execute access (x)D. All the options are correctQuestion: 57 of 60lt043979enQ0216The group of the file and the group of the directory is always the same for all new files createdwhen:Select an answerA. The set userid is set on the directoryB. The set group id is setC. The sticky bit is set on the directoryD. The user belongs to a different group as that of the fileQuestion: 58 of 60lt043979enQ0207Which is the valid command to copy a file from /root directory to current directory?Select an answerA. cp / root / filenameB. cp / root / filename $HOMEC. cp / root.filename / usr /username /currentD. None of the options are correctcat one.txt two.txt>>three.txtwhat is the output of the command?Select an answerA. Appends three.txt contents with one.txt and two.txtB. Displays one.txt two.txt and three.txtC. Error in RedirectionD. None of the options are correctQuestion: 60 of 60lt043979enQ0214Choose a valid Logical Test expression to check a non-numeric value with another value.Select an answerA. if test $v1 eq $ v2B. if $v1 = $v2

  • C. if test $v1 = $v2D. if test $v1 == $v2

  • set 5 :-mtime n operator is used for search files which were modified 24 hours ago.Select an answerA. TRUE --------B. FALSERegular expressions allow matching and manipulation of textual data.Select an answerA. TRUE --------B. FALSEMore command is used to display text in the terminal screen.Select an answerA. TRUE -----------B. FALSEint alphasort (const void *a, const void *b) is a valid function.Select an answerA. TRUE ----------B. FALSEQuestion: 5 of 60Which is communicating between kernel and user interface?Select an answerA. The Shell ----------B. Operating SystemC. CommandsD. None of the options are correcQuestion: 6 of 60In UNIX, fork is a system call that creates a new pcb.Select an answerA. TRUE -----------B. FALSEQuestion: 7 of 60The role of assemblers is a basic machine that passes through a program.Select an answerA. TRUEB. FALSE ------------Question: 8 of 60lt043979enQ0026ps command shows a combination of information from the process table and the user area.Select an answerA. TRUE ----------B. FALSEQuestion: 9 of 60Open() is a:Select an answerA. Specific classB. General ClassC. System call ---------D. None of the options are correctQuestion: 10 of 60lt043979enQ0028The agency that sits between the user and the UNIX system is called the:Select an answerA. Logic

  • B. ProfileC. Shell -----------------D. ErxcQuestion: 11 of 60Which of the following commands is used to obtain a list of all files by modification time?Select an answerA. ls -1B. ls-t -----------C. ls-iD. ls-RQuestion: 12 of 60Kernel is loaded into memory when the system boots.Select an answerA. TRUE -------------B. FALSEQuestion: 13 of 60fork() does not creates a new copy of the signal table for the new process.Select an answerA. TRUEB. FALSE ---------Question: 14 of 60Which option is used with rm command to make the command prompt the user with each filenameand a ?, before acting on it?Select an answerA. -rB. -xC. -i------------D. -1Question: 15 of 60Which of the following options will be used to display number of blocks used by a file?Select an answerA. -cB. -iC. -dD. -s -----------Question: 16 of 60unlink and rm does the same to a file.Select an answerA. TRUE ---------B. FALSEQuestion: 17 of 60The Kernel communicates with the hardware in machine language.Select an answerA. TRUE ----------B. FALSEQuestion: 18 of 60Which of the following command addresses all users who are currently hooked on?Select an answerA. WriteB. MailC. Wall ------------D. Mesg

  • Question: 19 of 60lt043979enQ0009The default integer value of standard error file is:Select an answerA. 1B. 2 --------C. 4D. 0Question: 20 of 60Which of the following is used for matching patterns in regular expression?Select an answerA. ^ -----------B. >C. ----------B. >D.

  • B. MemoryC. I / O timeD. All the options are correct -------------Question: 33 of 60lt043979enQ0131What is the primary job of the shell?Select an answerA. A command interpreterB. The core of the operating systemC. Interpreter between applications and the OS ----------------D. Shell programmingQuestion: 34 of 60lt043979enQ0156_____________ are not the components of the programming systems.Select an answerA. AssemblerB. Macros -------------C. CompilersD. Hard diskQuestion: 35 of 60lt043979enQ0144Which of the following files will displayed by this command?Select an answerA. PatchB. CatchC. .chD. All the options are correct -------Question: 36 of 60lt043979enQ0186What will rm -rf * do?Select an answerA. Removes all filesB. Removes all directoriesC. Removes all files and directories in a directory --------D. Gives errorQuestion: 37 of 60lt043979enQ0129A directory contains .c files which have to be compressed. Which is the valid command to compressthem?Select an answerA. gzip *.cB. gzip -d *.cC. compress *.c cporg.gz -----------D. None of the options are correctQuestion: 38 of 60lt043979enQ0199What does the cat command do?Select an answerA. Gives a listing of all files in a directoryB. Creates and displays file's contentC. Displays your current working directoryD. All the options are correct --------------

  • Question: 39 of 60Choose the valid command to a add user.Select an answerA. adduser usernameB. add usernameC. user usernameD. None of the options are correct ----------Question: 40 of 60UNIX is a:Select an answerA. 64-bit OSB. 32-bit OSC. 16-bit OSD. None of the options are correct ----------Question: 41 of 60The kill command with the -20 option is used to:Select an answerA. Terminate a processB. Stop a processC. Kill a process ---------------D. Interrupt a processQuestion: 42 of 60Which command is used to save current file in vi editor?Select an answerA. hB. nC. :w ----------D. w:Question: 43 of 60lt043979enQ0169Command to list all the files available in the current directory of remote machine is:Select an answerA. prompt on ------------B. CD dirnameC. DirD. LcddirnameQuestion: 44 of 60lt043979enQ0086The modes of Vi editor is:Select an answerA. Command modeB. Input modeC. Both Command mode and Input mode ---------D. Executive modeQuestion: 45 of 60lt043979enQ0126How do we kill a process forcefully?Select an answerA. kill 9 PID -----------B. kill PIDC. kill 9 PPIDD. None of the options are correct

  • Question: 46 of 60lt043979enQ0051Which of the following keys is used to replace a single character with new text?Select an answerA. sB. s --------C. rD. cQuestion: 47 of 60lt043979enQ0182What does the Pipe ( | ) do?Select an answerA. Takes the output of a command and logs itB. Take the output of one command and displays it to the screenC. Takes the output of one command and passes it as the input into a followingcommand --------------D. Takes the output & sends to userQuestion: 48 of 60What is the echo command used for?Select an answerA. Display text or variables ---------B. Used to repeat a command more than onceC. Displays text twiceD. To echo the inputQuestion: 49 of 60Which are types of storage for file format?Select an answerA. DirectoriesB. DataC. ProgramD. All the options are correct -----------Question: 50 of 60lt043979enQ0208cat< file1 >file2 2> err.logwhat is the output of the command?Select an answerA. Concates file1 and file2 , if any error stored to "err.log" fileB. Concates file1 and file2 , if any error displayed on consoleC. Contents of file1 is stored under file2, if any error stored to "err.log" file ------------D. None of the options are correctQuestion: 51 of 60Which of the following is not involved with system programming?Select an answerA. I/O ProcessorsB. CPUC. Printer ------------D. All the options are correctQuestion: 52 of 60Types of file access rights are:Select an answerA. Read access (r)B. Write access (w)

  • C. Execute access (x)D. All the options are correct --------------Question: 53 of 60In the output of ls -l if the first character is an s the file type is:Select an answerA. Symbolic linkB. Socket special file ------------C. Block special fileD. Character special fileQuestion: 54 of 60Which is the valid command to display all the files with size 100 to 399 bytes occupied?Select an answerA. ls -l | tr -s " " | cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"B. ls -ls | cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"C. ls |cut -d" " -f1-5,9 | grep -w "[0-3][0-9][0-9]"D. None of the options are correctQuestion: 55 of 60The Octal number to be given along with chmod command to make a file readable, writable, andexecutable to the owner, readable and executable to group and others is:Select an answerA. 0B. 755 ------------C. 744D. 555Question: 56 of 60A file contains, employee information like code name, department, salary in this format, withcolon(:) as delimiter. How do we display the highest salary drawing 2 people all the details?Select an answerA. cat emp.dat | tr ":" " " |sort +2 | head -2B. sort emp.dat | head -2C. sort -t":" +2 emp.dat | tr ":" " " | cut -d":" -f1,3D. None of the options are correctQuestion: 57 of 60Which is the valid command to copy a file from /root directory to current directory?Select an answerA. cp / root / filenameB. cp / root / filename $HOMEC. cp / root.filename / usr /username /currentD. None of the options are correct -----------Question: 58 of 60Command used to display output of a command line by line is:Select an answerA. More file nameB. Less file nameC. Both more and less file name -----------D. None of the options are correctQuestion: 59 of 60catemp.lst | sort | tee temp | uniq | cut d " " f2What is the output of the file temp?Select an answerA. Unsorted contents of emp.lstB. Error in piping

  • C. Sorted contents of emp.lst ---------------D. None of the options are correctQuestion: 60 of 60lt043979enQ0211How do we display the last second line of a file?Select an answerA. tail -2 filename | head 1B. cat filename | tail -3 | head -1 ---------------------C. tail +2 filename | head -1 | tail 1D. None of the options are correct