Home / 11th(ENG) - GSEB Board / Reading Mode

📖 Reading Mode: 11th(ENG) - GSEB Board

Chapter: Advanced Scripting • Total: 10 MCQs

MCQ 1 Finding Process Id

Which of the following command is used to set the file permission as executable?

A grep
B chmod
C ls
D x
MCQ 2 Finding Process Id

Which of the following symbol is used to break the flow of control in the case statement?

A **
B ;;
C ++
D >>
MCQ 3 Finding Process Id

Which of the following keyword specifies the end of the case statement?

A end-case
B end case
C esac
D stop-case
MCQ 4 Finding Process Id

Which loop Literates till the condition evaluates to true?

A while
B until
C for
D case
MCQ 5 Finding Process Id

Which of the following allows us to specify a list of values in its statement?

A while
B until
C for
D if
MCQ 6 Finding Process Id

In case structure, which of the following character denotes default case?

A *
B +
C d
D All of the above
MCQ 7 Finding Process Id

Which of the following statement is true for testing whether the file is read only or not?

A test -read filename
B check -read filename
C test -r filename
D check -r filename
MCQ 8 Finding Process Id

Which of the following indicate the end of if condition in shell script?

A end-if
B fi
C } (closing curly bracket)
D It does not have any end statement
MCQ 9 Finding Process Id

Which of the following operator is used for less than comparison in Linux?

A <
B lessthan
C lt
D -lt
MCQ 10 Finding Process Id

Which of the following can be used in place of square brackets used in if condition?

A Curly braces
B test command
C check command
D All of the above