Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
LINUX MULTIPLE CHOICE QUESTION Check your Knowledge Press to Start www.prolearninghub.com 1) STDOUT & STDERR are used for Point to current terminal device Are closed Point to special files on the system None of above www.prolearninghub.com 2) For login and logout log we used: A) wtmp B) utmp Both A and B None of them www.prolearninghub.com 3) Which is the core of the operating system? shell kernel command script www.prolearninghub.com 4) What hardware architectures are not supported by Red Hat? SPARC IBM-compatipble Alpha Macintosh www.prolearninghub.com 5) How many networks and nodes per network, are allowed by the Class B network 127 networks and 16,777,216 nodes per network 16,384 networks and 65,534 nodes per network 2,097,152 networks and 254 nodes per network All of above www.prolearninghub.com 6) How could you install the file ipchains-1.3.9-5.i386.rpm? rpm -qip ipchains rpm -Uvh ipchains rpm -i ipchains* .i386.rpm None of the above www.prolearninghub.com 7) How do you display your current crontab entry? Crontab -display Crontab -d List --crontab Crontab -l www.prolearninghub.com 8) FSF stands for: Free Software File File Server First First Serve First Free Software Foundation www.prolearninghub.com 9) What command do you use to create Linux file systems? fdisk mkfs fsck None of these www.prolearninghub.com 10) Under UNIX the key board is the default input device and the monitor is the default output device True False www.prolearninghub.com 11) ____ directly communicate with hardware shells commands kernel None of these www.prolearninghub.com 12) Which one of the following is not true about proc filesystem? proc filesystem is a pseudo-filesystem proc filesystem is used as an interface to kernel data structures some files in proc filesystem allow kernel variables to be changed none of the mentioned www.prolearninghub.com 13) Proc filesystem provides the information about processes processer Proxy servers None of these www.prolearninghub.com 14) How do you direct the shell to execute a command in the background? Put an & symbol at the end of the command line. Key in fg followed by the command name. Press Ctrl+c after you have keyed in the command. Press Ctrl+d after you have keyed in the command. www.prolearninghub.com 15) What is the following syntax used forcommand 2> /dev/null Send the output of command to a file called /dev/null Discard standard error entirely. Append the output of command to a file called /dev/null Send error messages from command to a file called /dev/null www.prolearninghub.com 16) Which of the following commands are used to display last 10 line of the file? A) Tail filename B) Tail 10-filename Both A and B None of these www.prolearninghub.com 17) Which of the following file responsible for storing basic information about user like UID , GUI , login shell etc in ? /etc/passwd /etc/users etc/shadows None of these www.prolearninghub.com 18) Suppose I want to achieve above output using command, which of the following command would help me to achieve this? A) date;echo "hii" B) date && echo "hii" Both A and B date,echo "hii" www.prolearninghub.com 19) To feed standard output of one command to standard input of another in a single shell session IO redirection can be used Named pipes can be used The pipe operator provided by the shell can be used It can not be done www.prolearninghub.com 20) Which of the following commands allows definition and assignment of environment variables under bash env enviro export satenviron www.prolearninghub.com 21) While executing a command, the shell Executes it in the same process (as shell) Creates a child shell to execute it Loads a special program to take care of the execution None of the above www.prolearninghub.com 22) Which variable contains current shell process id $* $? $$ $! www.prolearninghub.com 23) How do you create a crontab entry? Crontab - do Crontab -c Crontab -make Crontab - create www.prolearninghub.com 24) What command is used to display the characteristics of a process? au ps du pid www.prolearninghub.com 25) What command is not used to list the files chap01, chap02 and chap04? ls chap* ls chap[124] ls - x chap0[124] ls chap0[124] www.prolearninghub.com 26) What command is used with vi editor to replace text from cursor to right S s R r www.prolearninghub.com 27) What sign is used to back up over typing errors in vi? ! $ @ # www.prolearninghub.com 28) What sign is used to erase or kill an entire line you have typed and start you are on a new line (but not display a new prompt)? ! # @ $ www.prolearninghub.com 29) Which option of grep displays the line number as well? -v -I -n -E www.prolearninghub.com 30) Assuming the files fileA, fileB, fileAB, fileBC and fileABC, exist in a directory, which files match with the pattern file[ABC]? fileA, fileB and fileABC fileABC fileA and fileB fileAB, fileBC and fileABC www.prolearninghub.com 31) What will be printed for the command below? $ grep –c “^echo” abc The count of lines that do not contain the pattern echo in file abc The count of lines which begin with the pattern echo in file abc The count of lines that ends with the pattern echo in file abc None of these www.prolearninghub.com 32) What command is used to save the standard output in a file, as well as display it on the terminal? tee grep cat more www.prolearninghub.com 33) How would you switch to virtual terminal 1? trl+Alt+F1 Alt+F1 Ctrl+F1 Shift+Ctrl+F1 www.prolearninghub.com 34) Which of the following NIS clients returns the name of the NIS server used by the NIS client? ypwhich ypbind ypcat None of above www.prolearninghub.com 35) Operating system kernel must be located in / /boot either in / or in /boot none of the mentioned www.prolearninghub.com 36) Which one of the following is a mount point for a temporarily mounted filesystem? /mnt directory /media directory /dev directory None of the mentioned www.prolearninghub.com 37) What is /root? Root file system home directory of the root user the directory which contains all the directories of the filesystem None of the mentioned www.prolearninghub.com 38) System binaries are stored in /sbin directory /usr/sbin directory /usr/local/sbin directory All of the mentioned www.prolearninghub.com 39) Which one of the following is not true about proc filesystem? proc filesystem is a pseudo-filesystem proc filesystem is used as an interface to kernel data structures some files in proc filesystem allow kernel variables to be changed None of these www.prolearninghub.com 40) What is /proc/[PID]/root? symbolic link that points to the process’s root directory regular file which holds all the PID of the system root directory does not exists in the proc filesystem www.prolearninghub.com 41) “ps” command uses the file _____ to provide the information. /proc/[PID]/stat /proc/[PID]/smaps /proc/[PID]/oom_score_adj /proc/[PID]/oom_score www.prolearninghub.com 42) Which one of the following is not correct? A) proc filesystem does not contain any directory for thread in the process B) in multithread process thread details will not be available if the main thread is already terminated both A and B None of the mentioned www.prolearninghub.com 43) What is context switch? Process switches from user mode to kernel mode Process switches from kernel mode to user mode Kernel switches from one process to another process None of these www.prolearninghub.com 44) Maximum number of processes exist in Linux system ? 32768 1024 2048 16384 www.prolearninghub.com 45) Which of the following command keep a process running even after you logout from your shell? & nohup BG hup www.prolearninghub.com 46) On success fork return ______ to parent process ? 0 1 Parent process id Child process id www.prolearninghub.com 47) How can you navigate around virtual consoles? Alt+Function Key Ctrl+Function Key Ctrl+Alt+Del Alt+a+w+Function Key www.prolearninghub.com 48) What command is used with vi editor to save file and remain in the editing mode? x q! :w :q www.prolearninghub.com 49) Which of the following format of partition tables does Linux use? Linux UnixWare BSD DOS www.prolearninghub.com 50) To increase the response time and throughput, the kernel minimizes the frequency of disk access by keeping a pool of internal data buffer called pooling spooling Buffer cache swapping www.prolearninghub.com The Results