JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Unix interview questions part 3
Unix interview questions part 3
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following is performed by expr string handling’s function?
A. determine the length of string
B. extract a substring
C. locate the position of a character in a string
D. determine the length of string, extract and locate the position of the string
Show Correct Answer
Correct Answer is :
determine the length of string, extract and locate the position of the string
2. The string to be worked upon is placed on the left of the colon when using expr string handling function.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
3. Which symbol is used for finding the length of the string?
A. .
B. *
C. .*
D. .*.
Show Correct Answer
Correct Answer is :
.*
4. Which of the following pattern is used for extracting a substring using expr?
A. /( )
B. \(. .\)
C. . .\)
D. \\(
Show Correct Answer
Correct Answer is :
\(. .\)
5. For locating the first position of a character in a string we can use expr command.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
6. expr is a _____ command
A. internal
B. external
C. shell
D. derived
Show Correct Answer
Correct Answer is :
external
7. A file is a container for storing information.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
8. In how many broad categories, files are divided into UNIX?
A. 2
B. 4
C. 5
D. 3
Show Correct Answer
Correct Answer is :
3
9. In UNIX, the file name and file size are stored in the file itself.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
10. The most common file type is ___
A. ordinary file
B. directory file
C. device file
D. ordinary file and directory file
Show Correct Answer
Correct Answer is :
ordinary file
11. What is a directory file?
A. a directory containing data
B. a directory containing details of the files and subdirectories it contains
C. a directory contains files
D. a directory containing data and files
Show Correct Answer
Correct Answer is :
a directory containing details of the files and subdirectories it contains
12. Each entry of directory file has component(s) namely _____
A. filename
B. inode number
C. filename and inode number
D. file size
Show Correct Answer
Correct Answer is :
filename and inode number
13. Device files are used by the kernel for operating the device.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
14. When we log in, the UNIX places us in a directory, called ______ directory
A. home
B. main
C. parent
D. current
Show Correct Answer
Correct Answer is :
home
15. UNIX treats everything as a file.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
16. The root directory is represented by ___
A. \
B. /
C. *
D. $
Show Correct Answer
Correct Answer is :
/
17. UNIX imposes no rule for framing filename extensions.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
18. _____ and _____ cannot be used in a filename.
A. /, NULL
B. $,^
C. ., %
D. NULL, $
Show Correct Answer
Correct Answer is :
/, NULL
19. Filenames in UNIX are not case-sensitive.
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
FALSE
20. We should avoid filenames starting with a – (hyphen).
A. TRUE
B. FALSE
C.
D.
Show Correct Answer
Correct Answer is :
TRUE
Similar Interview Questions
Search for latest jobs
Find Jobs