LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Linux Multiple Choice Questions Short quiz (https://www.linuxquestions.org/questions/linux-general-1/linux-multiple-choice-questions-short-quiz-661184/)

Lazairus 08-07-2008 10:47 AM

Linux Multiple Choice Questions Short quiz
 
Hello , as i have a final exam(Degree) on linux in three weeks time , i thaught it wood be good for a bit of help ,

I love linux , but i hate mcqs
Rules
+ 5 right answer
- 3 wrong answer

Nasty

have a go , i know the answers to some, but im sure u intellegent people can answer theese in a jiffy!
just reply + write the question number
and the answer below
example
_ _ _ _ _ _ _ _ _
Q1
Ans B
brief Description:
_ _ _ _ _ __ _ _ _

just answer the ones that are 100 % certian of, no gambles!
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Question 1

Q: how do you simulate a command as root

A) su root -c
B) su -s root "command"
C)sudo -"command"
D)sudo root -c "command"

Question 2

Q:how do you apply and entry into the sudo log file

A) put #
B) put :
C) put =
D) put %

Question 3

Q: what default permissions do you need to open a directory

A) RWX
B) W
C) R
D) X

Question 4

Q: What does this command do chmod go+rw *

A)Gives the file called go ,read&execute permissions on all files in the current Directory.
B) Gives Groups+others read & execute permissions on all files in the current working Directory
C) Gives read +execute permissions on all files were execute access is already set
D) Gives file named go read + execute permissions on all files in the current working directory only.



Question 5

Q: what does rwx r-x r-- mean in octal

A)754
B)742
C)724
D)624

Question 6

Q: For 700 to exist on credited directorys what u mask would you use?

A) 007
B)077
C)rwx --- ---
D)777

Question 7

Q: how would you print your path

A) path -p
B) uname -p
C) cat /etc/path
D) echo $PATH

Question 8
(for me:This is hard)
Q:the following crontab file entry

00 17 * * 1,2,3,4,5 /usr/sbin/ckbupscd >/dev/console 2>1

The entry above says to run /usr.. at what time

A)17 mins past midnight
B)5pm
C)midnight on the 17 day of each month
D)0n the 17 day of each month at 1 ,2 ,3 ,4 & 5 pm

Question 9

Q: how would you add new user bcd, to the system with the project as the primary default group ,and test it as a secondary group,

A) useradd -p project -s test bcd
B) useradd -G project -s test bcd
C) useradd -g project -G test bcd
D) useradd -P project -S test bcd

Question 10

Q: which of the following statements is false

A) linux & HP-UX use the exportfs command to make a resource avalable to other users
B) NFS data exchange between different machines is caried out using the external data representation(XDR)
C)NFS is stateless
D)NFS is built on top if the network information system interface

Question 11

Q: how do you copy an entire directory structure
eg from task to task.backup

A) cp -r task task.backup
B) cp -e ""
C) cp -d ""
D) cp -s ""

Question 12

Q: how would you see files that are hard linked together

A) hl -l
B) ls -s
C) ls -i
D) link -s

Question 13

Q: some commands interpet the -(minus) sign,inc cat as a shortcut for...

A) /dev/stdin
B) /dev/stdout
C) /dev/stderr
D) /dev/hda1


________________________________________________________

thats all folks for now thats part 1 , part 2 ill post tommorrow

thanks for any assistacnce given ,

Laz>( the man that wont die)

pixellany 08-07-2008 02:23 PM

This is the worst kind of homework question (Cutting and Pasting from the instructor's assignment sheet)

Normally, you can get help with homework by showing that you are making some effort. In extreme cases like this, I'll only report the thread for closure and tell you to do your own work.

XavierP 08-07-2008 05:40 PM

If any of your first few posts are questions like this, it's a pretty certain thing that this is a "please do my homework for me" thread. Good questions and guess what, a search of the net will get you the answers in seconds. Whether you will understand them or be able to apply them in future is another matter.

Anyway, closed.


All times are GMT -5. The time now is 03:01 AM.