Home / CSE MCQs / Unix 2 ::

CSE MCQs :: Unix 2

  1. To run the script, we should make it executable first by using _____
  2. A.
    chmod +x
    B.
    chmod +r
    C.
    chmod +w
    D.
    chmod +rwx

  3. What are positional parameters?
  4. A.
    special variables for assigning arguments from the command line
    B.
    pattern matching parameters
    C.
    special variables for reading user input
    D.
    special variables and patterns

  5. Which command is used to display the top of the file?
  6. A.
    cat
    B.
    head
    C.
    more
    D.
    grep

  7. Which command can be used to query for terminal type being in use?
  8. A.
    ps
    B.
    ls
    C.
    whoami
    D.
    tty

  9. Unix is a
  10. A.
    Single User, Single tasking OS
    B.
    Single User, Multi-tasking OS
    C.
    Multi-User, Multi- tasking OS
    D.
    None

  11. Which of the following flags are set when 'JMP' instruction is executed?
  12. A.
    SF and CF
    B.
    AF and CF
    C.
    All flags
    D.
    No flag is set

  13. The directory structure used in Unix file system is called
  14. A.
    Hierarchical directory
    B.
    Tree structured directory
    C.
    Directed acyclic graph
    D.
    Graph structured directory

  15. How will you assign the value of variable var2 to var1?
  16. A.
    Var1=var2
    B.
    $var1=$var2
    C.
    Var1=$var2
    D.
    $var1=var2

  17. The advantage of binary files over text files is that
  18. A.
    It is compact
    B.
    It can be accessed faster
    C.
    They are more reliable
    D.
    All of these

  19. What are the main features of UNIX?
  20. A.
    Machine independent
    B.
    Portability
    C.
    Multi-user operations
    D.
    All of the above