JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 41
Unix interview questions part 41
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The sort order can be reversed using ___ option.
A. -t
B. -k
C. -r
D. -n
Show Correct Answer
Correct Answer is :
-r
2. We can perform sorting on secondary key also using sort command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. We cannot perform sorting on columns using sort command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
4. Which option is used when we’ve to sort files containing only numbers?
A. -n
B. -a
C. -d
D. -u
Show Correct Answer
Correct Answer is :
-n
5. _____ option is used with sort command for removing repeated lines.
A. -n
B. -u
C. -t
D. -a
Show Correct Answer
Correct Answer is :
-u
6. Which option is used by the sort command to redirect the output to a specified file?
A. -n
B. -t
C. -o
D. -u
Show Correct Answer
Correct Answer is :
-o
7. The name of the input and output files cannot be same while using sort command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
8. To check whether the file has actually been stored in the default order, we can use ____ option.
A. -n
B. -a
C. -d
D. -c
Show Correct Answer
Correct Answer is :
-c
9. Which option is used with sort command to sort multiple files collectively?
A. -m
B. -n
C. -c
D. -o
Show Correct Answer
Correct Answer is :
-m
10. A system call is a routine built into the kernel and performs a basic function.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
11. When we execute a C program, CPU runs in ____ mode.
A. user
B. kernel
C. supervisory
D. system
Show Correct Answer
Correct Answer is :
user
12. In ____ mode, the kernel runs on behalf of the user.
A. user
B. kernel
C. real
D. all
Show Correct Answer
Correct Answer is :
kernel
13. All UNIX and LINUX systems have one thing in common which is ____
A. set of system calls
B. set of commands
C. set of instructions
D. set of text editors
Show Correct Answer
Correct Answer is :
set of system calls
14. The chmod command invokes the ____ system call.
A. chmod
B. ch
C. read
D. change
Show Correct Answer
Correct Answer is :
chmod
15. For reading input, which of the following system call is used?
A. write
B. rd
C. read
D. change
Show Correct Answer
Correct Answer is :
read
16. Which of the following system call is used for opening or creating a file?
A. read
B. write
C. open
D. close
Show Correct Answer
Correct Answer is :
open
17. There are ___ modes of opening a file.
A. 4
B. 3
C. 2
D. 1
Show Correct Answer
Correct Answer is :
3
18. Which of the following mode is used for opening a file in both reading and writing?
A. O_RDONLY
B. O_WRONLY
C. O_RDWR
D. O_WDR
Show Correct Answer
Correct Answer is :
O_RDWR
19. open system call returns the file descriptor as ___
A. int
B. float
C. char
D. double
Show Correct Answer
Correct Answer is :
char
20. Which of the following system call is used for closing a file?
A. open
B. lseek
C. close
D. write
Show Correct Answer
Correct Answer is :
close
Similar Interview Questions
Search for latest jobs
Find Jobs