Question types

Advanced Scripting question types

85 questions across 1 question group — pick any mix to generate a Computer paper with step-by-step answer keys.

85
Questions
1
Question groups
5
Question types
Sample Questions

Advanced Scripting questions

One sample from each question group in this chapter. Select any group above to see the full set with answer keys.

Q 1MCQ1 Mark
Which of the following can be used in place of square brackets used in if condition ?
  • A
    Curly braces
  • Test command
  • C
    Check command
  • D
    All of these above

Answer: B.

View full solution
Q 2MCQ1 Mark
Which of the following operator is used for less than comparison in Linux ?
  • A
    <
  • B
    lessthan
  • C
    It
  • – It

Answer: D.

View full solution
Q 3MCQ1 Mark
Which of the following indicates the end of if condition in shell script ?
  • A
    end – if
  • fi
  • C
    } (closing curly bracket)
  • D
    It does not have any end statement

Answer: B.

View full solution
Q 4MCQ1 Mark
In case structure, which of the following character denotes default case ?
  • $*$
  • B
    $+$
  • C
    $d$
  • D
    All of these

Answer: A.

View full solution
Q 5MCQ1 Mark
Which of the following allows us to specify a list of values in its statement ?
  • A
    while
  • B
    until 
  • for    
  • D
    if

Answer: C.

View full solution

Generate a Advanced Scripting paper free

Pick question groups from the list above, set marks and difficulty, and export a branded PDF with step-by-step answer keys. First 3 chapters free — no signup.

Download App