JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 46
Unix interview questions part 46
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following is a built-in function for awk?
A. length
B. index
C. size
D. length and index
Show Correct Answer
Correct Answer is :
length
2. The _____ function extracts a substring from a string.
A. length
B. index
C. size
D. substr
Show Correct Answer
Correct Answer is :
substr
3. awk makes a distinction between numeric and string variables.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
4. Which editor is used by the UNIX system to edit files?
A. vi
B. notepad
C. word
D. notepad++
Show Correct Answer
Correct Answer is :
vi
5. What does the following command do? $ vi file001
A. open file named file001
B. edit file named file001
C. delete a file named file001
D. open file if it exists else creates a new file
Show Correct Answer
Correct Answer is :
open file if it exists else creates a new file
6. Which option is used by vi editor to open a file in read mode only?
A. -r
B. -R
C. -d
D. -f
Show Correct Answer
Correct Answer is :
-R
7. How many types of modes are used by vi editor?
A. 2
B. 4
C. 3
D. 1
Show Correct Answer
Correct Answer is :
3
8. What is the default mode of vi editor?
A. Command mode
B. Input mode
C. Ex mode
D. Insert mode
Show Correct Answer
Correct Answer is :
Command mode
9. To insert text into a file, _____ mode is used.
A. Command mode
B. Input mode
C. Ex mode
D. def mode
Show Correct Answer
Correct Answer is :
Input mode
10. ex mode is used for what purpose?
A. file handling
B. substitution
C. file handling and substitution
D. Inputting text in files
Show Correct Answer
Correct Answer is :
file handling and substitution
11. Which one of the following key is used to switch from command mode to input mode?
A. i
B. :
C. esc
D. ;
Show Correct Answer
Correct Answer is :
i
12. ____ key is used for switching to command mode from input mode.
A. i
B. A
C. :
D. esc
Show Correct Answer
Correct Answer is :
esc
13. Which of the following key is used to enter in ex-mode?
A. ESC
B. i
C. :
D. ;
Show Correct Answer
Correct Answer is :
:
14. ex-mode is used to save our work.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
15. Commands inputted in command mode don’t appear on the terminal.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. To clear the screen in vi editor, _____ is used.
A. ctrl-h
B. ctrl-l
C. ctrl-p
D. ctrl-v
Show Correct Answer
Correct Answer is :
ctrl-l
17. vi commands are not case sensitive.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
18. While entering text in input mode the data is saved in _____
A. buffer
B. disk
C. RAM
D. cache
Show Correct Answer
Correct Answer is :
buffer
19. To quit vi editor without saving the buffer we can use
A. :q
B. :c
C. :w
D. :q!
Show Correct Answer
Correct Answer is :
:q!
20. The first UNIX editor was ____
A. emacs
B. ex
C. ed
D. vi
Show Correct Answer
Correct Answer is :
ed
Similar Interview Questions
Search for latest jobs
Find Jobs