You are on page 1of 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:

Select an answer
A. Specific class
B. General Class
C. System call
D. None of the options are correct
12.How many types of links are there?
Select an answer
A. 1
B. 2
C. 3
D. 4
13.Command for System Load Average is:
Select an answer
A. Time
B. Prof
C. Uptime
D. Top
14.A link is a pointer reference to another file.
Select an answer
A. TRUE
B. FALSE
15.Which symbol is used for output redirection operator?
Select an answer
A. >
B. <
C. >>
D. <<
16.We can redirect the error messages to alternate location using the error redirection operator.
Select an answer
A. TRUE
B. FALSE
17.The file limit for UNIX, LINUX is up to 255 characters.
Select an answer
A. TRUE
B. FALSE
18.Which of the following options will be used to display number of blocks used by a file?
Select an answer
A. -c
B. -i
C. -d
D. -s
19.Regular expressions allow matching and manipulation of textual data.
Select an answer
A. TRUE
B. FALSE
20.creat() stands for:
Select an answer
A. Open
B. Input
C. Output
D. Create
21.The UNIX system provides several system calls to create and end program, to send and receive

software interrupts, to allocate memory, and to do other useful jobs for a process.
Select an answer
A. TRUE
B. FALSE
22.What does date command print?
Select an answer
A. Login date
B. Log out date
C. System date
D. None of the options are correct
23.ls and find are:
Select an answer
A. Directories
B. Commands
C. Both Directories and Commands
D. None of the options are correct
24.Find command is used to search files in specified directory
Select an answer
A. TRUE
B. FALSE
25.fork() does not creates a new copy of the signal table for the new process.
Select an answer
A. TRUE
B. FALSE
26.-mtime n operator is used for search files which were modified 24 hours ago.
Select an answer
A. TRUE
B. FALSE
27.int alphasort (const void *a, const void *b) is a valid function.
Select an answer
A. TRUE
B. FALSE
28.Which command will be used with vi editor to insert text to left of cursor?
Select an answer
A. S
B. S
C. A
D. I
29.ps command shows a combination of information from the process table and the user area.
Select an answer
A. TRUE
B. FALSE
30.The Kernel communicates with the hardware in machine language.
Select an answer
A. TRUE
B. FALSE
31.A system composed of a set of instruction for a given object-desk is called:
Select an answer
A. Program
B. Information
C. Technology
D. All the options are correct

32.How to get date information into day variable in Bourne shell?


Select an answer
A. day='date'
B. day='date'
C. day="date"
D. day=date
33.The output of the command "echo hello | wc -c" is:here
Select an answer
A. bash: echo: command not found
B. 4
C. 5
D. 6
34.How to remove blank lines from a file in an editor?
Select an answer
A. Esc del
B. Esc dd
C. Esc :dd
D. Esc d
35.How do you create a new file using vi?
Select an answer
A. new filename
B. vi filename
C. touch
D. cat>filename
36.Which option will be used with ps command to slow the entire command line of the process
being run?
Select an answer
A. -4
B. -f
C. -1
D. -4
37.Which symbol is used for merging the standard error message to the same output file?
Select an answer
A. >
B. &
C. &&
D. None of the options are correct
38.Choose the valid command to a add user.
Select an answer
A. adduser username
B. add username
C. user username
D. None of the options are correct
39.Which are types of storage for file format?
Select an answer
A. Directories
B. Data
C. Program
D. All the options are correct
40.What is the primary job of the shell?
Select an answer
A. A command interpreter

B. The core of the operating system


C. Interpreter between applications and the OS
D. Shell programming
41.Which is the default shell in UNIX?
Select an answer
A. Bash
B. Ksh
C. Csh
D. Sh
42.The process table is located in kernel memory and cannot be swapped out. Each entry contains:
Select an answer
A. PID
B. User ID
C. State
D. All the options are correct
43.Which command is used to remove a file?
Select an answer
A. Remove
B. Rm
C. Mv
D. Del
44.Memory allocation by which the program is subdivided into equal portions is called _____.
Select an answer
A. Paging
B. Partitioning
C. Fetching
D. Blocking
45.While working with mail command, which command is used to save mail i a separate file?
Select an answer
A. S
B. R
C. W
D. D
46.Which are the types of storage for file format?
Select an answer
A. Directories
B. Data
C. Program
D. All the options are correct
47.Processor substitutes the definition for all occurrences of the abbreviation in the program is
called:
Select an answer
A. Program Call
B. Macro Call
C. Substitutes
D. None of the options are correct
48.Command used to delete 10 lines from the current line is:
Select an answer
A. 10dd
B. 10d
C. 10dl
D. None of the options are correct

49.cat< file1 >file2 2> err.log


what is the output of the command?
Select an answer
A. Concates file1 and file2 , if any error stored to "err.log" file
B. Concates file1 and file2 , if any error displayed on console
C. Contents of file1 is stored under file2, if any error stored to "err.log" file
D. None of the options are correct
50.Command used to display output of a command line by line is:
Select an answer
A. More file name
B. Less file name
C. Both more and less file name
D. None of the options are correct
51.In the output of ls -l if the first character is an s the file type is:
Select an answer
A. Symbolic link
B. Socket special file
C. Block special file
D. Character special file
52.The group of the file and the group of the directory is always the same for all new files created
when:
Select an answer
A. The set userid is set on the directory
B. The set group id is set
C. The sticky bit is set on the directory
D. The user belongs to a different group as that of the file
53.How do we display the last second line of a file?
Select an answer
A. tail -2 filename | head 1
B. cat filename | tail -3 | head -1
C. tail +2 filename | head -1 | tail 1
D. None of the options are correct
54.The process table is located in kernel memory and cannot be swapped out. Each entry contains:
Select an answer
A. PID
B. User ID
C. State
D. All the options are correct
55.catemp.lst | sort | tee temp | uniq | cut d " " f2
What is the output of the file temp?
Select an answer
A. Unsorted contents of emp.lst
B. Error in piping
C. Sorted contents of emp.lst
D. None of the options are correct
56.Which of the following commands will show the current run level?
Select an answer
A. boot -l
B. who -b
C. uptime
D. who -r
57.If programmer wants to repeat identical part of their program, __________ permit the

programmers to define an abbreviation in his program.


Select an answer
A. System Programming
B. Macros
C. Shell Scripting
D. Advanced Shell scripting
58.Which is the valid command to copy a file from /root directory to current directory?
Select an answer
A. cp / root / filename
B. cp / root / filename $HOME
C. cp / root.filename / usr /username /current
D. None of the options are correct
59.Choose a valid Logical Test expression to check a non-numeric value with another value.
Select an answer
A. if test $v1 eq $ v2
B. if $v1 = $v2
C. if test $v1 = $v2
D. if test $v1 == $v2
60.The Octal number to be given along with chmod command to make a file readable, writable, and
executable to the owner, readable and executable to group and others is:
Select an answer
A. 0
B. 755
C. 744
D. 555

set 2 :
Which of the following is not involved with system programming?
Select an answer
A. I/o Processors
B. CPU
C. Printer D
D. All the options are correct
A "." matches multiple characters.
Select an answer
A. TRUE
B. FALSE B
int alphasort (const void *a, const void *b) is a valid function.
Select an answer
A. TRUE A
B. FALSE
More command is used to display text in the terminal screen.
Select an answer
A. TRUE A
B. FALSE
Find command is used to search files in specified directory
Select an answer
A. TRUE A
B. FALSE
We can redirect the error messages to alternate location using the error redirection operator.
Select an answer
A. TRUE A
B. FALSE
The default integer value of standard error file is:
Select an answer
A. 1
B. 2
C. 4
D. 0 B
The file limit for UNIX, LINUX is up to 255 characters.
Select an answer
A. TRUE A
B. FALSE
The engine of UNIX is:
Select an answer
A. The Shell
B. Command
C. The kernel C
D. None of the options are correct
File name is case sensitive.
Select an answer
A. TRUE
B. FALSE B
creat() stands for:
Select an answer
A. Open
B. Input
C. Output

D. Create D
Which symbol is used to specify a group of character?
Select an answer
A. ()
B. {} B
C. []
D. <>
The UNIX system provides several system calls to create and end program, to send and receive
software interrupts, to allocate memory, and to do other useful jobs for a process.
Select an answer
A. TRUE A
B. FALSE
Which of the following commands is used to obtain a list of all files by modification time?
Select an answer
A. ls -1
B. ls-t
C. ls-i C
D. ls-R
How many types of commands is mainly used in UNIX?
Select an answer
A. 2
B. 3 B
C. 4
D. 5
-mtime n operator is used for search files which were modified 24 hours ago.
Select an answer
A. TRUE
B. FALSE B
Command for changing permissions is:
Select an answer
A. Chmod A
B. Chgrp
C. Cat
D. Cd
Kernel is loaded into memory when the system boots.
Select an answer
A. TRUE A
B. FALSE
The Kernel communicates with the hardware in machine language.
Select an answer
A. TRUE A
B. FALSE
Every Command does not have all sections.
Select an answer
A. TRUE A
B. FALSE
alphasort() and versionsort() functions are used as the comparison function.
Select an answer
A. TRUE A
B. FALSE
Regular expressions allow matching and manipulation of textual data.
Select an answer

A. TRUE A
B. FALSE
fork() does not creates a new copy of the signal table for the new process.
Select an answer
A. TRUE
B. FALSE B
Which command will be used with vi editor to insert text to left of cursor?
Select an answer
A. S
B. S
C. A
D. I D
Which command is used to remove a directory?
Select an answer
A. Rd
B. Rmdir B
C. Dldir
D. Rdir
A link is a pointer reference to another file.
Select an answer
A. TRUE A
B. FALSE
Which command list hidden files?
Select an answer
A. ls-l
B. ls-a B
C. ls-h
D. ls-If
Which of the following options will be used to display number of blocks used by a file?
Select an answer
A. -c
B. -i B
C. -d
D. -s
Which symbol is used for output redirection operator?
Select an answer
A. > A
B. <
C. >>
D. <<
Which is communicating between kernel and user interface?
Select an answer
A. The Shell A
B. Operating System
C. Commands
D. None of the options are correct
Choose the valid command to a add user.
Select an answer
A. adduser username A
B. add username
C. user username
D. None of the options are correct

The filed separator in cut command is specified with:


Select an answer
A. -a option
B. -d option B
C. -r option
D. -x option
Which command is used to upload filename from local machine to remote machine?
Select an answer
A. Mput A
B. get filename
C. put filename
D. mput file list
What will rm -rf * do?
Select an answer
A. Removes all files
B. Removes all directories
C. Removes all files and directories in a directory c
D. Gives error
The parenthesis are a feature used for:
Select an answer
A. Command Substitution
B. Command evaluation
C. Sub Shell
D. None of the options are correct
Which is a super-user prompt?
Select an answer
A. $ A
B. %
C. #
D. *
The > operator is used for:
Select an answer
A. Comparison of two numbers
B. Input Redirection
C. Output Redirection C
D. Piping
Default Link for a directory is:
Select an answer
A. Two
B. One B
C. Three
D. None
Which of the following is not involved with the system programming?
Select an answer
A. I/O Processors
B. CPU
C. Printer c
D. All the options are correct
Which command is used to count just the number of characters in a file?
Select an answer
A. wc- 1
B. wc-c c

C. wc-w
D. wc-r
The task of adjusting programs so they may be placed in arbitrary core locations in called:
Select an answer
A. Loader
B. Allocation
C. Relocation
D. Macros
Which of the following commands is used to update access and modification times of a file?
Select an answer
A. Grep
B. Wc
C. Touch c
D. Cat
Signal for system calls is:
Select an answer
A. Signal
B. Kill
C. Alarm
D. All the options are correct
Which symbol is used for input redirection operator?
Select an answer
A. >
B. < B
C. >>
D. <<
To execute a Bourne shell script in the current directory which doesn't have execute permission,
command is:
Select an answer
A. chmodu+xscriptfile; ./sctriptfile A
B. shscriptfile
C. bash; shscriptfilename
D. chmodu+xscriptfile; bash sctriptfile
The process table is located in kernel memory and cannot be swapped out. Each entry contains:
Select an answer
A. PID
B. User ID
C. State C
D. All the options are correct
File Attribute mainly contains:
Select an answer
A. File name
B. An owner name
C. Access rights
D. All the options are correct D
Equivalent command for find . -name "*.dat" -ok rm {} \;
Select an answer
A. find . -name "*.dat" -exec rm -i {} \;
B. rm *.dat
C. erase *.dat all
D. None
Wild card will extract of the requested information as per the input details like:

Select an answer
A. Reading
B. Adding
C. Deleting
D. All the options are correct D
Choose a valid Logical Test expression to check a non-numeric value with another value.
Select an answer
A. if test $v1 eq $ v2 A
B. if $v1 = $v2
C. if test $v1 = $v2
D. if test $v1 == $v2
The group of the file and the group of the directory is always the same for all new files created
when:
Select an answer
A. The set userid is set on the directory
B. The set group id is set
C. The sticky bit is set on the directory C
D. The user belongs to a different group as that of the file
Types of file access rights are:
Select an answer
A. Read access (r)
B. Write access (w)
C. Execute access (x)
D. All the options are correct D
catemp.lst | sort | tee temp | uniq | cut d " " f2
What is the output of the file temp?
Select an answer
A. Unsorted contents of emp.lst
B. Error in piping
C. Sorted contents of emp.lst C
D. None of the options are correct
cat one.txt two.txt>>three.txt
what is the output of the command?
Select an answer
A. Appends three.txt contents with one.txt and two.txt A
B. Displays one.txt two.txt and three.txt
C. Error in Redirection
D. None of the options are correct
Which of the following commands will show the current run level?
Select an answer
A. boot -l
B. who -b
C. uptime c
D. who -r
Only a few system calls are needed to implement process control in UNIX. They are:
Select an answer
A. Ls
B. intgetpid
C. Ls only
D. intgetpid only
E. Both Ls and intgetpid E
F. None of options are correct

Virtual memory is best defined for:


Select an answer
A. A Memory consisting of those addresses that may be generated by a processor during
execution of a computation
B. The memory space consists of the set of addresses that corresponded to physical
location
C. The technique of segmentation provides a large name space and a good protection
mechanism
D. All the options are correct D
cat< file1 >file2 2> err.log
what is the output of the command?
Select an answer
A. Concates file1 and file2 , if any error stored to "err.log" file A
B. Concates file1 and file2 , if any error displayed on console
C. Contents of file1 is stored under file2, if any error stored to "err.log" file
D. None of the options are correct
Which is the valid command to display all the files with size 100 to 399 bytes occupied?
Select an answer
A. 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 correct
A program that places program into memory and also prepares them for execution is called:
Select an answer
A. Loader A
B. Compiler
C. Interpreter
D. None of the options are correct

set 3 :
Question: 1 of 60
lt043979enQ0015
How many types of links are there?
Select an answer
A. 1
B. 2---C. 3
D. 4
Question: 2 of 60
lt043979enQ0042
ls and find are:
Select an answer
A. Directories
B. Commands---C. Both Directories and Commands
D. None of the options are correct
Question: 3 of 60
lt043979enQ0007
We can redirect the error messages to alternate location using the error redirection operator.
Select an answer
A. TRUE---B. FALSE
Question: 4 of 60
lt043979enQ0010
How many types of commands is mainly used in UNIX?
Select an answer
A. 2
B. 3----C. 4
D. 5
Question: 5 of 60
lt043979enQ0003
File name is case sensitive.
Select an answer
A. TRUE---B. FALSE
Question: 6 of 60
lt043979enQ0023
Command for System Load Average is:
Select an answer
A. Time
B. Prof
C. Uptime----D. Top
Question: 7 of 60
lt043979enQ0019
Open() is a:
Select an answer
A. Specific class
B. General Class
C. System call----

D. None of the options are correct


Question: 8 of 60
lt043979enQ0047
Which of the following is used for matching patterns in regular expression?
Select an answer
A. ^
B. >-------C. <--D. $
Question: 9 of 60
lt043979enQ0027
fork() does not creates a new copy of the signal table for the new process.
Select an answer
A. TRUE
B. FALSE---Question: 10 of 60
lt043979enQ0032
Which of the following commands is used to obtain a list of all files by modification time?
Select an answer
A. ls -1
B. ls-t----------C. ls-i
D. ls-R
Question: 11 of 60
lt043979enQ0037
Which is communicating between kernel and user interface?
Select an answer
A. The Shell
B. Operating System-----C. Commands
D. None of the options are correct
Question: 12 of 60
lt043979enQ0017
Which command is used to remove a directory?
Select an answer
A. Rd
B. Rmdir----C. Dldir
D. RdirQuestion: 13 of 60
lt043979enQ0014
Which command list hidden files?
Select an answer
A. ls-l
B. ls-a-----C. ls-h
D. ls-If
Question: 14 of 60
lt043979enQ0008
Which symbol is used for output redirection operator?
Select an answer
A. >----B. <

C. >>
D. <<
Question: 15 of 60
lt043979enQ0012
Which of the following is not involved with system programming?
Select an answer
A. I/o Processors
B. CPU
C. Printer----D. All the options are correct
Question: 16 of 60
lt043979enQ0038
A file is a collection of data.
Select an answer
A. TRUE----B. FALSE
Question: 17 of 60
lt043979enQ0043
What does date command print?
Select an answer
A. Login date
B. Log out date
C. System date-----D. None of the options are correct
Question: 18 of 60
lt043979enQ0018
creat() stands for:
Select an answer
A. Open
B. Input
C. Output
D. Create---Question: 19 of 60
lt043979enQ0024
The UNIX system provides several system calls to create and end program, to send and receive
software interrupts, to allocate memory, and to do other useful jobs for a process.
Select an answer
A. TRUE---B. FALSE
Question: 20 of 60
lt043979enQ0004
The file limit for UNIX, LINUX is up to 255 characters.
Select an answer
A. TRUE---B. FALSE
Question: 21 of 60
lt043979enQ0031
Which option is used with rm command to make the command prompt the user with each filename
and a ?, before acting on it?
Select an answer
A. -r
B. -x

C. -i----D. -1
Question: 22 of 60
lt043979enQ0013
The role of assemblers is a basic machine that passes through a program.
Select an answer
A. TRUE---B. FALSE
Question: 23 of 60
lt043979enQ0049
A "." matches multiple characters.
Select an answer
A. TRUE
B. FALSE---Question: 24 of 60
lt043979enQ0006
We can redirect the error messages to alternate location using the error redirection operator.
Select an answer
A. TRUE-----B. FALSE
Question: 25 of 60
lt043979enQ0029
Which command will be used with vi editor to insert text to left of cursor?
Select an answer
A. S
B. S
C. A
D. I----Question: 26 of 60
lt043979enQ0009
The default integer value of standard error file is:
Select an answer
A. 1
B. 2---C. 4
D. 0
Question: 27 of 60
lt043979enQ0020
unlink and rm does the same to a file.
Select an answer
A. TRUE---B. FALSE
Question: 28 of 60
lt043979enQ0011
Every Command does not have all sections.
Select an answer
A. TRUE--B. FALSE
Question: 29 of 60
lt043979enQ0036
The engine of UNIX is:
Select an answer

A. The Shell---B. Command


C. The kernel
D. None of the options are correct
Question: 30 of 60
lt043979enQ0035
Kernel is loaded into memory when the system boots.
Select an answer
A. TRUE--B. FALSE
Question: 31 of 60
lt043979enQ0182
What does the Pipe ( | ) do?
Select an answer
A. Takes the output of a command and logs it
B. Take the output of one command and displays it to the screen
C. Takes the output of one command and passes it as the input into a following command--D. Takes the output & sends to user
Question: 32 of 60
lt043979enQ0179
What is a File system?
Select an answer
A. A hierarchy of directories and subdirectories
B. The core of the operating system
C. A hierarchy of directories, subdirectories, and files-D. Group of files
Which command is used to set the positional parameters?
Select an answer
A. Set-B. Env
C. Is
D. Echo
Question: 34 of 60
lt043979enQ0077
Choose a valid Logical Test expression to check a non-numeric value with another value.
Select an answer
A. if test $v1 eq $ v2--B. if $v1 = $v2
C. if test $v1 = $v2
D. if test $v1 == $v2
Question: 35 of 60
lt043979enQ0192
Which command will display what users are currently logged into the system?
Select an answer
A. id -a
B. last
C. whodo
D. who--Question: 36 of 60
lt043979enQ0110
Which are the types of storage for file format?
Select an answer

A. Directories
B. Data
C. Program
D. All the options are correct--Question: 37 of 60
lt043979enQ0173
The files which are open by default for each and every process are:
Select an answer
A. Stdin-B. Stdout
C. Stderr
D. All the options are correct
E. None of the options are correct
Question: 37 of 60
lt043979enQ0173
The files which are open by default for each and every process are:
Select an answer
A. Stdin
B. Stdout
C. Stderr
D. All the options are correct
E. None of the options are correct
Question: 38 of 60
lt043979enQ0073
Choose the valid command to a add user.
Select an answer
A. adduser username--B. add username
C. user username
D. None of the options are correct
Question: 39 of 60
lt043979enQ0201
Choose the valid command to a add user.
Select an answer
A. adduser username--B. add username
C. user username
D. None of the options are correct
Question: 40 of 60
lt043979enQ0200
What is the echo command used for?
Select an answer
A. Display text or variables--B. Used to repeat a command more than once
C. Displays text twice
D. To echo the input
Question: 41 of 60
lt043979enQ0056
Which command is used to display the characteristics of a process?
Select an answer
A. Pid
B. Du

C. Ps--D. Au
Question: 42 of 60
lt043979enQ0129
A directory contains .c files which have to be compressed. Which is the valid command to compress
them?
Select an answer
A. gzip *.c
B. gzip -d *.c
c. compress *.c cporg.gz---D. None of the options are correct
Question: 43 of 60
lt043979enQ0175
Which command is used while finding out the type of file based on the contents of the file?
Select an answer
A. find
B. chmod
C. File-D. None of the options are correct
Question: 44 of 60
lt043979enQ0190
UNIX is a:
Select an answer
A. Multiuser, multitasking OS--B. Multiuser, single tasking OS
C. Single user, multitasking OS
D. Single user, single tasking OS
Question: 45 of 60
lt043979enQ0119
Which of the following special shell variables is used to process number of the last background job?
Select an answer
A. $!--B. $#
C. 0
D. $*
Question: 46 of 60
lt043979enQ0096
Which of the following commands is used to display your working directory?
Select an answer
A. Dir
B. prompt $p$g
C. pwd
D. path--Question: 47 of 60
lt043979enQ0128
To Save and exit the vi editor, colon command used is:
Select an answer
A. :wq--B. :sq
C. :se
D. :q!
Question: 48 of 60

lt043979enQ0117
Which of the following commands is used to list contents of directories?
Select an answer
A. Ls--B. Lp
C. Dir
D. Tar
Question: 49 of 60
lt043979enQ0220
Wild card will extract of the requested information as per the input details like:
Select an answer
A. Reading
B. Adding
C. Deleting
D. All the options are correct---Question: 50 of 60
lt043979enQ0215
In the output of ls -l if the first character is an s the file type is:
Select an answer
A. Symbolic link
B. Socket special file--C. Block special file
D. Character special file
Question: 51 of 60
lt043979enQ0224
The features of UNIX are:
Select an answer
A. Multitasking
B. Interactive
C. Portable
D. All the options are correct--Question: 52 of 60
lt043979enQ0217
Only a few system calls are needed to implement process control in UNIX. They are:
Select an answer
A. Ls
B. intgetpid
C. Ls only
D. intgetpid only
E. Both Ls and intgetpid--F. None of options are correct
Question: 53 of 60
lt043979enQ0211
How do we display the last second line of a file?
Select an answer
A. tail -2 filename | head 1
B. cat filename | tail -3 | head -1---C. tail +2 filename | head -1 | tail 1
D. None of the options are correct
Question: 54 of 60
lt043979enQ0221
A program that places program into memory and also prepares them for execution is called:

Select an answer
A. Loader=--B. Compiler
C. Interpreter
D. None of the options are correct
Question: 55 of 60
lt043979enQ0229
The process table is located in kernel memory and cannot be swapped out. Each entry contains:
Select an answer
A. PID
B. User ID
C. State---D. All the options are correct
Question: 56 of 60
lt043979enQ0225
Types of file access rights are:
Select an answer
A. Read access (r)
B. Write access (w)
C. Execute access (x)
D. All the options are correct---Question: 57 of 60
lt043979enQ0216
The group of the file and the group of the directory is always the same for all new files created
when:
Select an answer
A. The set userid is set on the directory
B. The set group id is set
C. The sticky bit is set on the directory---D. The user belongs to a different group as that of the file
Question: 58 of 60
lt043979enQ0207
Which is the valid command to copy a file from /root directory to current directory?
Select an answer
A. cp / root / filename
B. cp / root / filename $HOME
C. cp / root.filename / usr /username /current--D. None of the options are correct
cat one.txt two.txt>>three.txt
what is the output of the command?
Select an answer
A. Appends three.txt contents with one.txt and two.txt--B. Displays one.txt two.txt and three.txt
C. Error in Redirection
D. None of the options are correct
Question: 60 of 60
lt043979enQ0214
Choose a valid Logical Test expression to check a non-numeric value with another value.
Select an answer
A. if test $v1 eq $ v2----B. if $v1 = $v2
C. if test $v1 = $v2

D. if test $v1 == $v2


DI.

set 4 :
Question: 1 of 60
lt043979enQ0015
How many types of links are there?
Select an answer
A. 1
B. 2
C. 3
D. 4
Question: 2 of 60
lt043979enQ0042
ls and find are:
Select an answer
A. Directories
B. Commands
C. Both Directories and Commands
D. None of the options are correct
Question: 3 of 60
lt043979enQ0007
We can redirect the error messages to alternate location using the error redirection operator.
Select an answer
A. TRUE
B. FALSE
Question: 4 of 60
lt043979enQ0010
How many types of commands is mainly used in UNIX?
Select an answer
A. 2
B. 3
C. 4
D. 5
Question: 5 of 60
lt043979enQ0003
File name is case sensitive.
Select an answer
A. TRUE
B. FALSE
Question: 6 of 60
lt043979enQ0023
Command for System Load Average is:
Select an answer
A. Time
B. Prof
C. Uptime
D. Top
Question: 7 of 60
lt043979enQ0019
Open() is a:
Select an answer
A. Specific class
B. General Class
C. System call

D. None of the options are correct


Question: 8 of 60
lt043979enQ0047
Which of the following is used for matching patterns in regular expression?
Select an answer
A. ^
B. >
C. <
D. $
Question: 9 of 60
lt043979enQ0027
fork() does not creates a new copy of the signal table for the new process.
Select an answer
A. TRUE
B. FALSE
Question: 10 of 60
lt043979enQ0032
Which of the following commands is used to obtain a list of all files by modification time?
Select an answer
A. ls -1
B. ls-t
C. ls-i
D. ls-R
Question: 11 of 60
lt043979enQ0037
Which is communicating between kernel and user interface?
Select an answer
A. The Shell
B. Operating System
C. Commands
D. None of the options are correct
Question: 12 of 60
lt043979enQ0017
Which command is used to remove a directory?
Select an answer
A. Rd
B. Rmdir
C. Dldir
D. RdirQuestion: 13 of 60
lt043979enQ0014
Which command list hidden files?
Select an answer
A. ls-l
B. ls-a
C. ls-h
D. ls-If
Question: 14 of 60
lt043979enQ0008
Which symbol is used for output redirection operator?
Select an answer
A. >
B. <

C. >>
D. <<
Question: 15 of 60
lt043979enQ0012
Which of the following is not involved with system programming?
Select an answer
A. I/o Processors
B. CPU
C. Printer
D. All the options are correct
Question: 16 of 60
lt043979enQ0038
A file is a collection of data.
Select an answer
A. TRUE
B. FALSE
Question: 17 of 60
lt043979enQ0043
What does date command print?
Select an answer
A. Login date
B. Log out date
C. System date
D. None of the options are correct
Question: 18 of 60
lt043979enQ0018
creat() stands for:
Select an answer
A. Open
B. Input
C. Output
D. Create
Question: 19 of 60
lt043979enQ0024
The UNIX system provides several system calls to create and end program, to send and receive
software interrupts, to allocate memory, and to do other useful jobs for a process.
Select an answer
A. TRUE
B. FALSE
Question: 20 of 60
lt043979enQ0004
The file limit for UNIX, LINUX is up to 255 characters.
Select an answer
A. TRUE
B. FALSE
Question: 21 of 60
lt043979enQ0031
Which option is used with rm command to make the command prompt the user with each filename
and a ?, before acting on it?
Select an answer
A. -r
B. -x

C. -i
D. -1
Question: 22 of 60
lt043979enQ0013
The role of assemblers is a basic machine that passes through a program.
Select an answer
A. TRUE
B. FALSE
Question: 23 of 60
lt043979enQ0049
A "." matches multiple characters.
Select an answer
A. TRUE
B. FALSE
Question: 24 of 60
lt043979enQ0006
We can redirect the error messages to alternate location using the error redirection operator.
Select an answer
A. TRUE
B. FALSE
Question: 25 of 60
lt043979enQ0029
Which command will be used with vi editor to insert text to left of cursor?
Select an answer
A. S
B. S
C. A
D. I
Question: 26 of 60
lt043979enQ0009
The default integer value of standard error file is:
Select an answer
A. 1
B. 2
C. 4
D. 0
Question: 27 of 60
lt043979enQ0020
unlink and rm does the same to a file.
Select an answer
A. TRUE
B. FALSE
Question: 28 of 60
lt043979enQ0011
Every Command does not have all sections.
Select an answer
A. TRUE
B. FALSE
Question: 29 of 60
lt043979enQ0036
The engine of UNIX is:
Select an answer

A. The Shell
B. Command
C. The kernel
D. None of the options are correct
Question: 30 of 60
lt043979enQ0035
Kernel is loaded into memory when the system boots.
Select an answer
A. TRUE
B. FALSE
Question: 31 of 60
lt043979enQ0182
What does the Pipe ( | ) do?
Select an answer
A. Takes the output of a command and logs it
B. Take the output of one command and displays it to the screen
C. Takes the output of one command and passes it as the input into a following
command
D. Takes the output & sends to user
Question: 32 of 60
lt043979enQ0179
What is a File system?
Select an answer
A. A hierarchy of directories and subdirectories
B. The core of the operating system
C. A hierarchy of directories, subdirectories, and files
D. Group of files
Which command is used to set the positional parameters?
Select an answer
A. Set
B. Env
C. Is
D. Echo
Question: 34 of 60
lt043979enQ0077
Choose a valid Logical Test expression to check a non-numeric value with another value.
Select an answer
A. if test $v1 eq $ v2
B. if $v1 = $v2
C. if test $v1 = $v2
D. if test $v1 == $v2
Question: 35 of 60
lt043979enQ0192
Which command will display what users are currently logged into the system?
Select an answer
A. id -a
B. last
C. whodo
D. who
Question: 36 of 60
lt043979enQ0110
Which are the types of storage for file format?

Select an answer
A. Directories
B. Data
C. Program
D. All the options are correct
Question: 37 of 60
lt043979enQ0173
The files which are open by default for each and every process are:
Select an answer
A. Stdin
B. Stdout
C. Stderr
D. All the options are correct
E. None of the options are correct
Question: 37 of 60
lt043979enQ0173
The files which are open by default for each and every process are:
Select an answer
A. Stdin
B. Stdout
C. Stderr
D. All the options are correct
E. None of the options are correct
Question: 38 of 60
lt043979enQ0073
Choose the valid command to a add user.
Select an answer
A. adduser username
B. add username
C. user username
D. None of the options are correct
Question: 39 of 60
lt043979enQ0201
Choose the valid command to a add user.
Select an answer
A. adduser username
B. add username
C. user username
D. None of the options are correct
Question: 40 of 60
lt043979enQ0200
What is the echo command used for?
Select an answer
A. Display text or variables
B. Used to repeat a command more than once
C. Displays text twice
D. To echo the input
Question: 41 of 60
lt043979enQ0056
Which command is used to display the characteristics of a process?
Select an answer
A. Pid

B. Du
C. Ps
D. Au
Question: 42 of 60
lt043979enQ0129
A directory contains .c files which have to be compressed. Which is the valid command to compress
them?
Select an answer
A. gzip *.c
B. gzip -d *.c
C. compress *.c cporg.gz
D. None of the options are correct
Question: 43 of 60
lt043979enQ0175
Which command is used while finding out the type of file based on the contents of the file?
Select an answer
A. find
B. chmod
C. File
D. None of the options are correct
Question: 44 of 60
lt043979enQ0190
UNIX is a:
Select an answer
A. Multiuser, multitasking OS
B. Multiuser, single tasking OS
C. Single user, multitasking OS
D. Single user, single tasking OS
Question: 45 of 60
lt043979enQ0119
Which of the following special shell variables is used to process number of the last background job?
Select an answer
A. $!
B. $#
C. 0
D. $*
Question: 46 of 60
lt043979enQ0096
Which of the following commands is used to display your working directory?
Select an answer
A. Dir
B. prompt $p$g
C. pwd
D. path
Question: 47 of 60
lt043979enQ0128
To Save and exit the vi editor, colon command used is:
Select an answer
A. :wq
B. :sq
C. :se
D. :q!

Question: 48 of 60
lt043979enQ0117
Which of the following commands is used to list contents of directories?
Select an answer
A. Ls
B. Lp
C. Dir
D. Tar
Question: 49 of 60
lt043979enQ0220
Wild card will extract of the requested information as per the input details like:
Select an answer
A. Reading
B. Adding
C. Deleting
D. All the options are correct
Question: 50 of 60
lt043979enQ0215
In the output of ls -l if the first character is an s the file type is:
Select an answer
A. Symbolic link
B. Socket special file
C. Block special file
D. Character special file
Question: 51 of 60
lt043979enQ0224
The features of UNIX are:
Select an answer
A. Multitasking
B. Interactive
C. Portable
D. All the options are correct
Question: 52 of 60
lt043979enQ0217
Only a few system calls are needed to implement process control in UNIX. They are:
Select an answer
A. Ls
B. intgetpid
C. Ls only
D. intgetpid only
E. Both Ls and intgetpid
F. None of options are correct
Question: 53 of 60
lt043979enQ0211
How do we display the last second line of a file?
Select an answer
A. tail -2 filename | head 1
B. cat filename | tail -3 | head -1
C. tail +2 filename | head -1 | tail 1
D. None of the options are correct
Question: 54 of 60
lt043979enQ0221

A program that places program into memory and also prepares them for execution is called:
Select an answer
A. Loader
B. Compiler
C. Interpreter
D. None of the options are correct
Question: 55 of 60
lt043979enQ0229
The process table is located in kernel memory and cannot be swapped out. Each entry contains:
Select an answer
A. PID
B. User ID
C. State
D. All the options are correct
Question: 56 of 60
lt043979enQ0225
Types of file access rights are:
Select an answer
A. Read access (r)
B. Write access (w)
C. Execute access (x)
D. All the options are correct
Question: 57 of 60
lt043979enQ0216
The group of the file and the group of the directory is always the same for all new files created
when:
Select an answer
A. The set userid is set on the directory
B. The set group id is set
C. The sticky bit is set on the directory
D. The user belongs to a different group as that of the file
Question: 58 of 60
lt043979enQ0207
Which is the valid command to copy a file from /root directory to current directory?
Select an answer
A. cp / root / filename
B. cp / root / filename $HOME
C. cp / root.filename / usr /username /current
D. None of the options are correct
cat one.txt two.txt>>three.txt
what is the output of the command?
Select an answer
A. Appends three.txt contents with one.txt and two.txt
B. Displays one.txt two.txt and three.txt
C. Error in Redirection
D. None of the options are correct
Question: 60 of 60
lt043979enQ0214
Choose a valid Logical Test expression to check a non-numeric value with another value.
Select an answer
A. if test $v1 eq $ v2
B. if $v1 = $v2

C. if test $v1 = $v2


D. if test $v1 == $v2

set 5 :
-mtime n operator is used for search files which were modified 24 hours ago.
Select an answer
A. TRUE -------B. FALSE
Regular expressions allow matching and manipulation of textual data.
Select an answer
A. TRUE -------B. FALSE
More command is used to display text in the terminal screen.
Select an answer
A. TRUE ----------B. FALSE
int alphasort (const void *a, const void *b) is a valid function.
Select an answer
A. TRUE ---------B. FALSE
Question: 5 of 60
Which is communicating between kernel and user interface?
Select an answer
A. The Shell ---------B. Operating System
C. Commands
D. None of the options are correc
Question: 6 of 60
In UNIX, fork is a system call that creates a new pcb.
Select an answer
A. TRUE ----------B. FALSE
Question: 7 of 60
The role of assemblers is a basic machine that passes through a program.
Select an answer
A. TRUE
B. FALSE -----------Question: 8 of 60
lt043979enQ0026
ps command shows a combination of information from the process table and the user area.
Select an answer
A. TRUE ---------B. FALSE
Question: 9 of 60
Open() is a:
Select an answer
A. Specific class
B. General Class
C. System call --------D. None of the options are correct
Question: 10 of 60
lt043979enQ0028
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
Question: 11 of 60
Which of the following commands is used to obtain a list of all files by modification time?
Select an answer
A. ls -1
B. ls-t ----------C. ls-i
D. ls-R
Question: 12 of 60
Kernel is loaded into memory when the system boots.
Select an answer
A. TRUE ------------B. FALSE
Question: 13 of 60
fork() does not creates a new copy of the signal table for the new process.
Select an answer
A. TRUE
B. FALSE --------Question: 14 of 60
Which option is used with rm command to make the command prompt the user with each filename
and a ?, before acting on it?
Select an answer
A. -r
B. -x
C. -i-----------D. -1
Question: 15 of 60
Which of the following options will be used to display number of blocks used by a file?
Select an answer
A. -c
B. -i
C. -d
D. -s ----------Question: 16 of 60
unlink and rm does the same to a file.
Select an answer
A. TRUE --------B. FALSE
Question: 17 of 60
The Kernel communicates with the hardware in machine language.
Select an answer
A. TRUE ---------B. FALSE
Question: 18 of 60
Which of the following command addresses all users who are currently hooked on?
Select an answer
A. Write
B. Mail
C. Wall -----------D. Mesg

Question: 19 of 60
lt043979enQ0009
The default integer value of standard error file is:
Select an answer
A. 1
B. 2 -------C. 4
D. 0
Question: 20 of 60
Which of the following is used for matching patterns in regular expression?
Select an answer
A. ^ ----------B. >
C. <
D. $
Question: 21 of 60
lt043979enQ0017
Which command is used to remove a directory?
Select an answer
A. Rd
B. Rmdir -----------C. Dldir
D. Rdir
Question: 22 of 60
lt043979enQ0018
creat() stands for:
Select an answer
A. Open
B. Input
C. Output
D. Create ----------Question: 23 of 60
lt043979enQ0005
Command for changing permissions is:
Select an answer
A. Chmod --------B. Chgrp
C. Cat
D. Cd
Question: 24 of 60
lt043979enQ0049
A "." matches multiple characters.
Select an answer
A. TRUE
B. FALSE -----------Question: 25 of 60
lt043979enQ0036
The engine of UNIX is:
Select an an
A. The Shell
B. Command
C. The kernel ------------

D. None of the options are correct


Question: 26 of 60
lt043979enQ0008
Which symbol is used for output redirection operator?
Select an answer
A. > ---------B. <
C. >>
D. <<
Question: 27 of 60
lt043979enQ0046
Which symbol is used to specify a group of character?
Select an answer
A. ()
B. {}
C. [] ----------------D. <>
Question: 28 of 60
lt043979enQ0044
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
Question: 29 of 60
lt043979enQ0039
A link is a pointer reference to another file.
Select an answer
A. TRUE -------------B. FALSE
Question: 30 of 60
lt043979enQ0004
The file limit for UNIX, LINUX is up to 255 characters.
Select an answer
A. TRUE ---------B. FALSE
Question: 31 of 60
lt043979enQ0053
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
Question: 32 of 60
lt043979enQ0165
Which of the mentioned below is / are the resource type for UNIX?
Select an answer
A. CPU

B. Memory
C. I / O time
D. All the options are correct ------------Question: 33 of 60
lt043979enQ0131
What is the primary job of the shell?
Select an answer
A. A command interpreter
B. The core of the operating system
C. Interpreter between applications and the OS ---------------D. Shell programming
Question: 34 of 60
lt043979enQ0156
_____________ are not the components of the programming systems.
Select an answer
A. Assembler
B. Macros ------------C. Compilers
D. Hard disk
Question: 35 of 60
lt043979enQ0144
Which of the following files will displayed by this command?
Select an answer
A. Patch
B. Catch
C. .ch
D. All the options are correct ------Question: 36 of 60
lt043979enQ0186
What will rm -rf * do?
Select an answer
A. Removes all files
B. Removes all directories
C. Removes all files and directories in a directory -------D. Gives error
Question: 37 of 60
lt043979enQ0129
A directory contains .c files which have to be compressed. Which is the valid command to compress
them?
Select an answer
A. gzip *.c
B. gzip -d *.c
C. compress *.c cporg.gz ----------D. None of the options are correct
Question: 38 of 60
lt043979enQ0199
What does the cat command do?
Select an answer
A. Gives a listing of all files in a directory
B. Creates and displays file's content
C. Displays your current working directory
D. All the options are correct --------------

Question: 39 of 60
Choose the valid command to a add user.
Select an answer
A. adduser username
B. add username
C. user username
D. None of the options are correct ---------Question: 40 of 60
UNIX is a:
Select an answer
A. 64-bit OS
B. 32-bit OS
C. 16-bit OS
D. None of the options are correct ---------Question: 41 of 60
The kill command with the -20 option is used to:
Select an answer
A. Terminate a process
B. Stop a process
C. Kill a process --------------D. Interrupt a process
Question: 42 of 60
Which command is used to save current file in vi editor?
Select an answer
A. h
B. n
C. :w ---------D. w:
Question: 43 of 60
lt043979enQ0169
Command to list all the files available in the current directory of remote machine is:
Select an answer
A. prompt on -----------B. CD dirname
C. Dir
D. Lcddirname
Question: 44 of 60
lt043979enQ0086
The modes of Vi editor is:
Select an answer
A. Command mode
B. Input mode
C. Both Command mode and Input mode --------D. Executive mode
Question: 45 of 60
lt043979enQ0126
How do we kill a process forcefully?
Select an answer
A. kill 9 PID ----------B. kill PID
C. kill 9 PPID
D. None of the options are correct

Question: 46 of 60
lt043979enQ0051
Which of the following keys is used to replace a single character with new text?
Select an answer
A. s
B. s -------C. r
D. c
Question: 47 of 60
lt043979enQ0182
What does the Pipe ( | ) do?
Select an answer
A. Takes the output of a command and logs it
B. Take the output of one command and displays it to the screen
C. Takes the output of one command and passes it as the input into a following
command -------------D. Takes the output & sends to user
Question: 48 of 60
What is the echo command used for?
Select an answer
A. Display text or variables --------B. Used to repeat a command more than once
C. Displays text twice
D. To echo the input
Question: 49 of 60
Which are types of storage for file format?
Select an answer
A. Directories
B. Data
C. Program
D. All the options are correct ----------Question: 50 of 60
lt043979enQ0208
cat< file1 >file2 2> err.log
what is the output of the command?
Select an answer
A. Concates file1 and file2 , if any error stored to "err.log" file
B. Concates file1 and file2 , if any error displayed on console
C. Contents of file1 is stored under file2, if any error stored to "err.log" file -----------D. None of the options are correct
Question: 51 of 60
Which of the following is not involved with system programming?
Select an answer
A. I/O Processors
B. CPU
C. Printer -----------D. All the options are correct
Question: 52 of 60
Types of file access rights are:
Select an answer
A. Read access (r)
B. Write access (w)

C. Execute access (x)


D. All the options are correct -------------Question: 53 of 60
In the output of ls -l if the first character is an s the file type is:
Select an answer
A. Symbolic link
B. Socket special file -----------C. Block special file
D. Character special file
Question: 54 of 60
Which is the valid command to display all the files with size 100 to 399 bytes occupied?
Select an answer
A. 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 correct
Question: 55 of 60
The Octal number to be given along with chmod command to make a file readable, writable, and
executable to the owner, readable and executable to group and others is:
Select an answer
A. 0
B. 755 -----------C. 744
D. 555
Question: 56 of 60
A file contains, employee information like code name, department, salary in this format, with
colon(:) as delimiter. How do we display the highest salary drawing 2 people all the details?
Select an answer
A. cat emp.dat | tr ":" " " |sort +2 | head -2
B. sort emp.dat | head -2
C. sort -t":" +2 emp.dat | tr ":" " " | cut -d":" -f1,3
D. None of the options are correct
Question: 57 of 60
Which is the valid command to copy a file from /root directory to current directory?
Select an answer
A. cp / root / filename
B. cp / root / filename $HOME
C. cp / root.filename / usr /username /current
D. None of the options are correct ----------Question: 58 of 60
Command used to display output of a command line by line is:
Select an answer
A. More file name
B. Less file name
C. Both more and less file name ----------D. None of the options are correct
Question: 59 of 60
catemp.lst | sort | tee temp | uniq | cut d " " f2
What is the output of the file temp?
Select an answer
A. Unsorted contents of emp.lst
B. Error in piping

C. Sorted contents of emp.lst --------------D. None of the options are correct


Question: 60 of 60
lt043979enQ0211
How do we display the last second line of a file?
Select an answer
A. tail -2 filename | head 1
B. cat filename | tail -3 | head -1 --------------------C. tail +2 filename | head -1 | tail 1
D. None of the options are correct

You might also like