JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
Unix interview questions part 34
Unix interview questions part 34
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which system call is used to run a new program?
A. fork
B. wait
C. exec
D. exit
Show Correct Answer
Correct Answer is :
exec
2. Which system call is used by the parent process to wait for the child process to complete?
A. wait
B. exec
C. fork
D. exit
Show Correct Answer
Correct Answer is :
exec
3. Redirection is a process of switching of the standard stream of data.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
4. How many files are used for representing different standard streams?
A. 1
B. 2
C. 4
D. 3
Show Correct Answer
Correct Answer is :
3
5. Which stream is connected to the display?
A. standard input
B. standard output
C. standard error
D. error
Show Correct Answer
Correct Answer is :
standard output
6. Which stream is used for representing error messages?
A. standard input
B. standard output
C. standard error
D. error
Show Correct Answer
Correct Answer is :
standard error
7. The command wc < sample.txt will count data from the file sample.txt.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. Which symbol is used for taking input from standard input?
A. &
B. %
C. –
D. $
Show Correct Answer
Correct Answer is :
–
9. Which of the following symbol(s) can be used to redirect the output to a file or another program?
A. |
B. >
C. >>
D. |, > and >>
Show Correct Answer
Correct Answer is :
|, > and >>
10. The >> symbol is used to overwrite the existing file if it exists.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
11. Which file descriptor is used to represent standard error stream?
A. 0
B. 1
C. 2
D. 3
Show Correct Answer
Correct Answer is :
2
12. We can redirect the error message to file named newfile using __________ command.
A. cat foo errorfile
B. cat foo >errorfile
C. cat errorfile>foo
D. cat foo 2>errorfile
Show Correct Answer
Correct Answer is :
cat foo 2>errorfile
13. The category of commands which uses both standard input and standard output are called ____
A. directory oriented commands
B. standard input commands
C. filters
D. standard output commands
Show Correct Answer
Correct Answer is :
filters
14. The contents of file001 are: 232 25*50 What will be the contents of result.txt? bc < file001 > result.txt
A. undefined
B. erroneous
C. 429467296, 1250
D. 1650
Show Correct Answer
Correct Answer is :
429467296, 1250
15. Which of the following files are known as special files in UNIX?
A. sample.txt
B. /dev/null
C. /dev/tty
D. /dev/null and /dev/tty
Show Correct Answer
Correct Answer is :
/dev/null and /dev/tty
16. The size of /dev/null is always zero.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
17. Which symbol is used to redirect error messages to /dev/null?
A. %
B. $
C. >
D. <
Show Correct Answer
Correct Answer is :
>
18. Which file is used for indicating terminals?
A. /dev/tty
B. /dev/null
C. terminal file
D. device file
Show Correct Answer
Correct Answer is :
/dev/tty
19. Which symbol is used to connect different streams?
A. |
B. >
C. <
D. ~
Show Correct Answer
Correct Answer is :
|
20. We can use the > symbol along with pipe in a command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs