Вы находитесь на странице: 1из 10

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

The default integer value of standard error file is:


Select an answer
A.
1
*B.
2
C.
4
D.
0

Every Command does not have all sections.


Select an answer
A.
TRUE
*B.
FALSE
We can redirect the error messages to alternate location using the error redirec
tion operator.
Select an answer
*A.
TRUE
B.
FALSE
Which option is used with rm command to make the command prompt the user with ea
ch filename and a ?, before acting on it?
Select an answer
A.
-r
B.
-x
*C.
-i
D.
-1
Which of the following commands is used to obtain a list of all files by modific
ation time?
Select an answer
A.
ls -1
*B.
ls-t
C.
ls-i
D.
ls-R

ps command shows a combination of information from the process table and the use
r area.

Select an answer
A.
TRUE
B.
FALSE*
Regular expressions allow matching and manipulation of textual data.
Select an answer
*A.
TRUE
B.
FALSE
The engine of UNIX is:
Select an answer
A.
The Shell
B.
Command
*C.
The kernel
D.
None of the options are correct

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

Command for changing permissions is:


Select an answer
*A.
Chmod
B.
Chgrp
C.
Cat
D.
Cd

alphasort() and versionsort() functions are used as the comparison function.


Select an answer
*A.
TRUE
B.
FALSE

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

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
fork() does not creates a new copy of the signal table for the new process.
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
The role of assemblers is a basic machine that passes through a program.
Select an answer
*A.
TRUE
B.
FALSE

Which symbol is used to specify a group of character?


Select an answer
A.
()
B.
{}
C.
[]
*D.
<>
Which of the following is used for matching patterns in regular expression?
Select an answer
*A.
^
B.
>
C.
<
*D.
$

-mtime n operator is used for search files which were modified 24 hours ago.
Select an answer
*A.
TRUE
B.
FALSE
How many types of links are there?
Select an answer
A.
1
*B.
2

C.
D.

3
4

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
File name is case sensitive.
Select an answer
*A.
TRUE
B.
FALSE

unlink and rm does the same to a file.


Select an answer
*A.
TRUE
B.
FALSE

In UNIX, fork is a system call that creates a new pcb.


Select an answer
*A.
TRUE
B.
FALSE
Which command is used to remove a directory?
Select an answer
A.
Rd
*B.
Rmdir
C.
Dldir
D.
Rdir
Which command list hidden files?
Select an answer
A.
ls-l
*B.
ls-a
C.
ls-h
D.
ls-If
Kernel is loaded into memory when the system boots.
Select an answer
*A.
TRUE
B.
FALSE

We can redirect the error messages to alternate location using the error redirec
tion operator.
Select an answer
A.
TRUE
*B.
FALSE

Which of the following is not a communication command?


Select an answer
A.
write
B.
mesg
C.
mail
*D.
grep
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

Command for Run a program with modified scheduling priority:


Select an answer
*A.
nice/renice
B.
netstat
C.
ps
D.
vmstat
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

A directory contains .c files which have to be compressed. Which is the valid co


mmand 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

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

How do we get date information into day variable in Bourne shell?


Select an answer
A.
day='date'
*B.
day='date'
C.
day="date"
D.
day=date
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
The > operator is used for:
Select an answer
A.
Comparison of two numbers
B.
Input Redirection
*C.
Output Redirection
D.
Piping
Memory allocation by which the program is subdivided into equal portions is call
ed _____.
Select an answer
*A.
Paging
B.
Partitioning
C.
Fetching
D.
Blocking
A new file is created, when we create a link that is:
Select an answer
A.
Hard
B.
Symbolic
*C.
All the options are correct
D.
None of the options are correct
Which command is used to print the number of characters in a file?

Select an answer
A.
-l
B.
-w
*C.
-c
D.
-b

Which command is used to count just the number of characters in a file?


Select an answer
A.
wc- 1
*B.
wc-c
C.
wc-w
D.
wc-r

How do we switch from one mode to another mode in vi editor?


Select an answer
A.
Command Mode
*B.
Insert Mode
C.
Colon / Slash Mode
D.
Replace Mode

The task of adjusting programs so they may be placed in arbitrary core locations
is called:
Select an answer
*A.
Loader
B.
Allocation
C.
Relocation
D.
Macros
Which command is used to upload filename from local machine to remote machine?
Select an answer
A.
Mput
*B.
get filename
C.
put filename
D.
mput file list

How to remove blank lines from a file in an editor?


Select an answer
A.
Esc
*B.
Esc
C.
Esc
D.
Esc

del
dd
:dd
d

Wild card will extract of the requested information as per the input details lik
e:

Select an answer
A.
Reading
B.
Adding
C.
Deleting
*D.
All the options are correct

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

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

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
Which is the valid command to display all the files with size 100 to 399 bytes o
ccupied?
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
Which command is used to remove the read permission of the file note from both t
he group and others?
Select an answer
A.
chmodgo+r note
B.
chmodgo+rw note

C.
*D.

chmod go-x note


chmod go-r, 4-x note

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
A program that places program into memory and also prepares them for execution i
s called:
Select an answer
*A.
Loader
B.
Compiler
C.
Interpreter
D.
None of the options are correct
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
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

Which is the valid command to copy a file from /root directory to current direct
ory?
Select an answer
A.
cp /
*B.
cp /
C.
cp /
D.
None

root / filename
root / filename $HOME
root.filename / usr /username /current
of the options are correct