Friday 6 February 2015

Latest Technical shell scripting interview questions and answers (Page 5)

Below are some important Shell Scripting interview questions which are asked in most MNC company interviews for beginners or professionals.

41. What is “Infinite Loops”?
Loops that execute forever without terminating.

42. What is “File Descriptor”?
An integer that is associated with a file. Enables you to read and write from a file using the integer instead of the file's name.

43. Explain “STDIN”?
STDIN Standard Input. User input is read from STDIN. The file descriptor for STDIN is 0.

44. Explain “STDOUT”?
STDOUT Standard Output. The output of scripts is usually to STDOUT. The file descriptor for STDOUT is 1.

45. Explain “STDERR”?
STDERR Standard Error. A special type of output used for error messages. The file descriptor for STDERR is 2.

46. Explain “Escape Sequence”?
An escape sequence is special sequence of characters that represents another character.

47. Explain “Output Redirection” in shell scripting?
In UNIX or Linux, the process of capturing the output of a command and storing it in a file is called output redirection because it redirects the output of a command into a file instead of the screen.

48. Explain “Input Redirection” in shell scripting?
In UNIX or Linux the process of sending input to a command from a file is called input redirection.

49. What is “Field separator”?
The field separator controls the manner in which an input line is broken into fields. In the shell, the field separator is stored in the variable IFS. In awk, the field separator is stored in the awk variable FS.

50. What is “Library”?
A file that contains only functions is called a library. Usually libraries contain no main code.
More Questions & Answers :-
Part1  Part2  Part3  Part4  Part5

No comments:

Post a Comment