Search

Linux Scripting Quiz - 1

Basic Scripting Quiz

Basic Scripting Quiz

This is quiz covering the basics of shell scripting
  1. #! is called as

  2. shebang
    hebang
    hash prompt
    begin

  3. Which of the following is not a kind of shell

  4. bash
    ksh
    csh
    dsh

  5. [ is eqvivalent to

  6. test
    for
    while
    then

  7. The difference between printf and echo is

  8. Echo adds a new line after printing, printf does not
    printf adds a new line after printing, echo does not
    Both are same
    None of the above.

  9. ". " is used to match

  10. Any one character
    Any number of characters
    Only " . "
    Only special characters

  11. Which of the following symbols is used as prefix to access the value of variables in scripting

  12. #
    $
    ^
    &

  13. The comparison operator " -eq " is used for

  14. Numbers
    Characters
    Strings
    Any kind of data

  15. A comment line in a script begins with

  16. #
    $
    ^
    &

  17. Every line in a shell script ends with

  18. ;
    :
    >
    There is no rule

  19. Scripts are made executable using the command

  20. chown
    chmod
    exe
    run

Answers to the above quiz can be found at : Answers to linux quiz-1

1 comment:

  1. This comment has been removed by a blog administrator.

    ReplyDelete