CH-8: Advanced Scripting (GSEB Computer Textbook Solutions Class 11)

Computer Textbook MCQ Solutions Class 11

CH-8: Advanced Scripting

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

a.       grep

b.      chmod

c.       ls

d.      x

 

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

a.       **

b.      ;;

c.       ++

d.      >> 

 

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

a.       end-case

b.      end case

c.       esac

d.      stop-case

 

4.       Which loop iterates till the condition evaluates to true?

a.       while

b.      until

c.       for

d.      case

 

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

a.       while

b.      until

c.       for

d.      if

 

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

a.       *

b.      +

c.       d

d.      All of the above

 

7.       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

 

8.       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

 

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

a.       <

b.      lessthan

c.       lt

d.      -lt

 

10.   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


Manhar Rakholiya

I dont have tell them who am I, They already know me.

5 comments: