Sail E0 Webinar

MCQs

Total Questions : 149 | Page 1 of 15 pages
Question 1. What are positional parameters?
  1.    special variables for assigning arguments from the command line
  2.    pattern matching parameters
  3.    special variables for reading user input
  4.    special variables and patterns
 Discuss Question
Answer: Option A. -> special variables for assigning arguments from the command line




Question 2. Which command can be used to query for terminal type being in use?
  1.    ps
  2.    ls
  3.    whoami
  4.    tty
 Discuss Question
Answer: Option D. -> tty




Question 3. Which command is used to display the top of the file?
  1.    cat
  2.    head
  3.    more
  4.    grep
 Discuss Question
Answer: Option B. -> head




Question 4. To run the script, we should make it executable first by using _____
  1.    chmod +x
  2.    chmod +r
  3.    chmod +w
  4.    chmod +rwx
 Discuss Question
Answer: Option A. -> chmod +x




Question 5. Unix is a
  1.    Single User, Single tasking OS
  2.    Single User, Multi-tasking OS
  3.    Multi-User, Multi- tasking OS
  4.    None
 Discuss Question
Answer: Option C. -> Multi-User, Multi- tasking OS




Question 6. Which of the following flags are set when 'JMP' instruction is executed?
  1.    SF and CF
  2.    AF and CF
  3.    All flags
  4.    No flag is set
 Discuss Question
Answer: Option D. -> No flag is set




Question 7. The directory structure used in Unix file system is called
  1.    Hierarchical directory
  2.    Tree structured directory
  3.    Directed acyclic graph
  4.    Graph structured directory
 Discuss Question
Answer: Option A. -> Hierarchical directory




Question 8. How will you assign the value of variable var2 to var1?
  1.    Var1=var2
  2.    $var1=$var2
  3.    Var1=$var2
  4.    $var1=var2
 Discuss Question
Answer: Option C. -> Var1=$var2




Question 9. The advantage of binary files over text files is that
  1.    It is compact
  2.    It can be accessed faster
  3.    They are more reliable
  4.    All of these
 Discuss Question
Answer: Option D. -> All of these




Question 10. What are the main features of UNIX?
  1.    Machine independent
  2.    Portability
  3.    Multi-user operations
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above




Latest Videos

Latest Test Papers