0% found this document useful (0 votes)
9 views

Questions PDNA Sequence Lec 5

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Questions PDNA Sequence Lec 5

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Multiple-Choice Questions:

1. UNIX is an Operating System (OS) initially developed in:

a) 1970

b) 1985

c) 1960

d) 1995

2. Which of the following are popular varieties of UNIX?

a) Windows, Linux, and MacOS

b) Solaris, Linux, and MacOS

c) Windows, Ubuntu, and MacOS

d) Solaris, Ubuntu, and Windows

4. Linux is considered a "clone" of the original Unix because:

a) It contains the exact same code as Unix.

b) It was developed by the same team that created Unix.

c) It shares similar features and design principles with Unix.

d) It is a modified version of Unix.

5. Which of the following statements is true about Linux and Unix?

a) Both are free and open source.

b) Only Linux is free and open source.

c) Only Unix is free and open source.

d) All command lines work the same on both

6. The most popular distributions of Linux include:

a) Ubuntu, Fedora, and Mandriva

b) Windows, macOS, and Ubuntu

c) CentOS, Debian, and Red Hat

d) Solaris, SUSE, and Arch Linux

7. Which operating system is known for its stability and low cost?

a) Windows
b) macOS

c) Linux

d) Solaris

8. Which operating system is considered the most secure?

a) Windows

b) macOS

c) Linux

d) Solaris

9. Which operating system is known for its multi-user and multi-tasking capabilities?

a) Windows

b) macOS

c) Linux

d) Solaris

10. The world's fastest supercomputers predominantly run on:

a) Windows

b) macOS

c) Linux

d) Solaris

11. Linux is favored by developers because:

a) It is the only operating system that supports coding.

b) It provides a user-friendly interface for programming.

c) It has a large community of developers and open-source tools.

d) It has built-in code editors and development environments.

12. Which part of the Unix system is accessible via the Terminal?

a) Graphical user interface (GUI)

b) Shell

c) Programs and software

d) File system hierarchy


13. What is a terminal in the context of Unix?

a) A program that runs a shell

b) A command-line interpreter

c) A file management tool

d) A graphical user interface

14. Which shell is the default on most Linux installations?

a) Bash

b) C Shell

c) Korn Shell

d) Zsh

15. What does the command "pwd" do in Unix?

a) Displays the absolute path of the current working directory

b) Lists the content of the current directory

c) Changes the working directory

d) Creates a new directory

16. The command "ls" in Unix is used to:

a) Print the working directory

b) Remove a directory

c) List the content of the current directory

d) Change the working directory

17. Which command is used to create a new directory in Unix?

a) mkdir

b) rmdir

c) cd

d) ls

18. What is the purpose of the "cd" command in Unix?

a) To create a directory

b) To remove a directory

c) To change the working directory


d) To list the content of a directory

19. What does the command "ls -l" do in Unix?

a) Lists all files including hidden files

b) Shows sizes, modified date and time, and permissions of files

c) Recursively lists subdirectories

d) Sorts files by file sizes

20. The "~" character in Unix refers to:

a) The root directory

b) The current working directory

c) The parent directory

d) The home director

21. What does the command "mkdir Test1" do in Unix?

a) Removes the directory "Test1"

b) Changes the working directory to "Test1"

c) Creates a new directory named "Test1"

d) Lists the content of the directory "Test1"

22. Which statement is true about file names in Linux?

a) There is real distinction between ordinary files and directories.

b) Two files in the same directory can have the same name.

c) Linux is case sensitive when it comes to file names.

d) File extensions are mandatory for all files.

23. Which command is used to remove a directory in Unix?

a) mkdir

b) rmdir

c) cd

d) ls

24. The command "rmdir" works if the directory is not empty.

a) True

b) False
25. How can you get help for a command from the terminal in Unix?

a) man commandname

b) help commandname

c) info commandname

d) --help commandname

26. What does the command "cd ~user_name" do in Unix?

a) Moves to the specified user's home directory

b) Creates a new user with the specified name

c) Lists all users with the specified name

d) Changes the working directory to the root directory

27. Which key combination is used to move the cursor to the beginning of the command line in Unix?

a) Ctrl+A

b) Ctrl+C

c) Ctrl+D

d) Tab

28. Which key combination is used to clear the terminal in Unix?

a) Ctrl+A

b) Ctrl+C

c) Ctrl+D

d) Ctrl+L

29. The command "cd" followed by nothing in Unix changes the working directory to:

a) The root directory

b) The home directory

c) The previous directory

d) The current directory

30. Which command is used to list the content of a directory in Unix?

a) ls

b) pwd

c) cd
d) mkdir

31. Which command is used to change the working directory in Unix?

a) ls

b) pwd

c) cd

d) mkdir

32. What is the purpose of the command "rmdir" in Unix?

a) To remove a directory

b) To create a directory

c) To list the content of a directory

d) To change the working directory

33. What happens if you try to remove a directory using the "rmdir" command, but the directory is not
empty?

a) The directory is removed along with its contents.

b) The command fails, and an error message is displayed.

c) The directory is moved to the trash bin.

d) The directory is archived for future use.

34. Which file system hierarchy represents the path to the root directory in Unix?

a) Absolute path

b) Relative path

c) Home directory

d) Working directory

35. What is an absolute path in Unix?

a) A path that describes the path to the file starting from the current working directory

b) A path that locates a given file in the system hierarchy from the root directory

c) A path that represents the path to the home directory

d) A path that describes the path to the parent directory

36. Which special subdirectories exist in every directory in Unix?

a) . (dot) and .. (dot-dot)


b) / (slash) and \ (backslash)

c) _ (underscore) and ~ (tilde)

d) + (plus) and - (minus)

37. Which command is used to display the absolute path of the current working directory in Unix?

a) ls

b) pwd

c) cd

d) mkdir

38. The command "ls -a" in Unix lists:

a) All files including hidden files

b) Only hidden files

c) Only directories

d) Only regular files

39. What does the command "ls -R" do in Unix?

a) Lists the content of the current directory recursively

b) Lists the content of the home directory recursively

c) Lists all files including hidden files recursively

d) Lists all directories recursively

40. What does the command "ls -lh" do in Unix?

a) Lists the content with sizes in a more readable format

b) Lists the content with permissions and owners of files

c) Lists the content sorted by file sizes

d) Lists the content with sizes in a less readable format

True or False Questions:


1. True or False: UNIX is an operating system initially developed in the 1960s.

Answer: True

2. True or False: There are many different versions of UNIX that share common similarities.

Answer: True
3. True or False: The most popular varieties of UNIX are Solaris, Linux, and MacOS.

Answer: True

4. True or False: UNIX systems have a graphical user interface (GUI) making them easier to use.

Answer:True

5. True or False: Linux is a clone of the original Unix and contains its code.

Answer: False

6. True or False: Linux is free and open source, while the original Unix is not.

Answer: True

7. True or False: All command lines work the same on both Linux and Unix.

Answer:True

8. True or False: Linux is free, and the most popular distributions are Ubuntu, Fedora/Red Hat,
Mandriva, etc.

Answer: True

9. True or False: Linux is the most secure operating system.

Answer: True

10. True or False: Linux is the best multi-user and multitasking operating system.

Answer: True

11. True or False: The world's fastest supercomputers run Linux.

Answer: True

12. True or False: Linux is a fast-developing OS with many developers.

Answer: True

13. True or False: Linux is very popular as a server operating system.

Answer: True

14. True or False: A terminal in Unix refers to a wrapper program that runs a shell.

Answer: True

15. True or False: The most popular shell for interactive use in Unix is Bash.

Answer: True

16. True or False: The command "pwd" gives the absolute path of the working directory in Unix.

Answer: True
17. True or False: Every directory in Unix has two special subdirectories: "." (dot) and ".." (dot-dot).

Answer: True

18. True or False: The command "rmdir" removes a directory in Unix, even if it contains files or
subdirectories.

Answer: False

19. True or False: The command "ls -lh" in Unix lists the content of the current directory with sizes in a
more readable format.

Answer: True

You might also like