Sei sulla pagina 1di 5

GPL Unix Questions For AMDOCS

http://gpl4you.com/viewquestype.php?type=5...

Like 4.2k

Home
Prole
Explore
G-Test
My Assets
Crypt Hunt
Word List
Login | Register

Search GPL

Search

PSU Papers
Company Papers
Companies Fact
Online Test
Prep Tool
MBA Question
Gate Question
IES QuestionNew
Exam Papers:
L&T Infotech

TCS Infosys Wipro IBM


Capgemini ITC Infotech

Accenture

Patni

CTS

Sapient

Aricent

HCL

Syntel

3i Infotech

Welcome Guest
Unix Questions for AMDOCS

Q. No. :

Question : The command cat > x


A:

is invalid

B:

creates a file x and displays an error message

C:

creates a file x and waits for the user to give input from
keyboard

D:

none

Answer: C
Q. No. :

Question : The shell command cat x y > x


A:

doesn't work

B:

replaces the contents of the file x, by the contents of


file y

C:

does nothing, other than displaying an error message

D:

None

Answer: B
Q. No. :

Question : which command is used to go to end of line in vi editor?


A:

B:

C:

D:

Answer: C
Q. No. :
4
Question : Redirection in pipes can be achieved by using
A:

>

B:

>>

C:

tee

D:

lpr

Answer: C
Q. No. :

Question : In vi editor to delete a single character

1 of 5

Friday 26 August 2016 12:53 PM

GPL Unix Questions For AMDOCS

A:

dd is used

B:

y is used

C:

R is used

D:

x is uded

http://gpl4you.com/viewquestype.php?type=5...

Answer: D
Q. No. :
6
Question : Which of the following UNIX tools receives input only from standard input?
A:

awk

B:

grep

C:

sed

D:

tr

Answer: D
Q. No. :

Question : PID is used by the system to identify


A:

a process

B:

the file name

C:

the i-noed

D:

all of the above

Answer: A
Q. No. :

Question : $$ gives
A:

PID of current shell

B:

PID of last background job

C:

Exit status of last command

D:

All parameters as a single string

Answer: A
Q. No. :

Question : In vi editor to move forward to beginning of word


A:

b is used

B:

e is used

C:

w is used

D:

f is used

Answer: C
Q. No. :

10

Question : Which command is used to display the output of a command as well as store it in a le ?
A:

cat

B:

grep

C:

tee

D:

vi

Answer: C
Q. No. :
11
Question : if le has 000 permission then

2 of 5

A:

root can only read the file

B:

any user can read the file

C:

root can read and write the file

D:

root can read write as well as execute the file

Friday 26 August 2016 12:53 PM

GPL Unix Questions For AMDOCS

http://gpl4you.com/viewquestype.php?type=5...

Answer: C
Q. No. :

12

Question : For killing the last background job


A:

kill $! is used

B:

kill -s is used

C:

kill -9 is used

D:

kill $0 is used

Answer: A
Q. No. :
13
Question : To assign all premissions to the owner, read and write premissions to the group, and only
execute permissions to the others
A:

chmod 711 is used

B:

chmod 761 is used

C:

chmod 621 is used

D:

chmod 614 is used

Answer: B
Q. No. :
14
Question : Which will display only unique lines from foo?
A:

sort -n foo

B:

sort -u foo

C:

unique foo

D:

sed foo

Answer: B
Q. No. :

15

Question : tail +11 emp.txt will


A:

show 11th line from start

B:

11th line onwards from start

C:

11th line onwards from end

D:

start to 11th line

Answer: B
Q. No. :

16

Question : File x.c has 5 lines of code. The command


date | tee abc | sort -x.c | wc -l
displays
A:

B:

C:

D:

an error message

Answer: B
Q. No. :

17

Question : Which of the following results in an error?


A:

expr 4+5

B:

expr 9-3

C:

expr 2*3

D:

expr 7/5

Answer: C
Solution

3 of 5

Friday 26 August 2016 12:53 PM

GPL Unix Questions For AMDOCS

http://gpl4you.com/viewquestype.php?type=5...

Q. No. :
18
Question : The system identies the end of a le by the
A:

EOF cahracter

B:

file size

C:

i-node number

D:

None

Answer: B
Q. No. :

19

Question : Which command would you use to change the priority of a running process?
A:

nice

B:

ps

C:

top

D:

ls

Answer: A
Q. No. :

20

Question : Which will print the rst ve lines of le?


A:

tail +5 foo

B:

head -n 5 foo

C:

cut -f5- foo

D:

sed -n '5' foo

Answer: B
Q. No. :

21

Question : Which is the Shell of UNIX?


A:

bash

B:

dash

C:

Korn

D:

Bourne

Answer: D
Q. No. :

22

Question : What is the command to connecto to remote terminals?


A:

ping

B:

telnet

C:

ftp

D:

mime

Answer: B
Q. No. :
23
Question : Which of the following le names cannot be displayed if ls * is run?
A:

-Xy

B:

#x

C:

.x

D:

hidden

Answer: C

Explore
GPL4you
Home
About
FAQs

4 of 5

Friday 26 August 2016 12:53 PM

GPL Unix Questions For AMDOCS

http://gpl4you.com/viewquestype.php?type=5...

Explore
Surveys
EOT
CHit CHat
Contact
Contact Us
2011 - gpl4you | All Rights Reserved.

5 of 5

Friday 26 August 2016 12:53 PM

Potrebbero piacerti anche