Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
369 views
8 pages
Unix MCQ For Makaut Students
unix mcq for makaut students
Uploaded by
Dutta Computer Academy
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save unix mcq for makaut students For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
369 views
8 pages
Unix MCQ For Makaut Students
unix mcq for makaut students
Uploaded by
Dutta Computer Academy
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save unix mcq for makaut students For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 8
Search
Fullscreen
Chapter 2 lL 2. - “1, UNIX UNIX was developed by (a) Bell Labs (b) Berkley Software Group (c) California University (d) American Defence Academy Chocolate Chip is (a) a latest Intel product (b) another name for BSD 4.2 Version {c) another name for System V (4) another name for System III Which of the following features of UNIX may be used for inter process communication? (a) Signals (b) Pipes {c) Semaphore (d) Message Queues . Pick the incorrect statements. (a) Shell is a command interpreter. (b) Shell is the interface between user and kernel. (c) System can't work without a shell (d) Shell is a program. . UNIX is (a) 2 multi-user system (b) a real-time system (c) @ multi-task system (d) name of a file in the root directory . Which of the following statements best explains a process? (a) Itis a program, (b) It is a program in execution. (e) Itis an instance of a program in execution (d) It is a program that uses system calls. In & system, if 5 people are currently using the vi editor, then the number of corresponding processes will be (al tb) 5 fc) 2 id) O44 %, "10. 12, “13. 14, 415, MCQs in Computer Science Kemel is not involved (a) when a read operation is done (b) when a pressed key is echoed on to the screen (c) in resource allocation (d) none of the above ‘The command echo wele y (a) echoes welcome in all the terminals that are (b) echoes welcome in all the ter (c) echoes welcome only in the terminal in which it is run, (d) signals the error message - Terminal number not specified. rai > fa dev/null fa) isa file (b) has write permission for all (c) is the UNIX built-in dustbin (d) none of the above The advantage of binary files over text files is that @) (b) it can be accessed faster (c) many commands (like cat) assume the named file to be a binary file. (d) they are more reliable The permission bits of a file noname, ean be setto _rws_ _x_ _x by the command. (a) chmod 711 noname (b) chmod go-rw noname (c) chmod 2711 noname (d) none of the above bin/passwd has the user execution permission set to ‘ss’ because (a) it is not executable (b) it should allow users who don’t have write permission to /etc/passwd to write to it (c) etc/passwd is write protected (d) this facility assigns to the user, permissions of the program owner, temporarily. If one doesn’t want anyone else to read or write to a file named dat £ile, except through a program in file £ilex, then he may use (a) chmod u+s filex ; chmod go-rw datfile (b) ¢ {c) oh @d) & Writing a C program that accepts input from keyboard, rather than from a file is advanta- geous because (a) keyboard is a file that is already open (b) it facilitates batch processing (e) it-can be used ina pipe, if it writes to stdout (d) none of the above od u+s datfile ; chmod ga-rw filex 4711 darfile ; chmod go-rw filex 4711 filex ; chmod go-rw datfile#17, “18. 19, 20, “21, 22. 23. 44. UMX 45 . Consider the following command that invokes the executable file a.our, with the following command line arguments a.out God loves you argy[1][2] corresponds to the character (aye who (eh. wa In the previous question after the operation argv++, the value of argv [1][2] will be fae (b) a ()v (4) undefined Which of the following string functions can be used to find the last occurrence of a given character in a given string? (a) strnemp (b) strncpy (c) strchr (d) None of the above Choose the correct statements (a) The function stat refers a file by its name. (b) The fanetion stat refers a file by its file descriptor. (c) The function fstat refers a file by its file descriptor. (d) The function fetat refers a file by its name. Which of the following fields in the structure stat, has information about the permission setting of a file? (a) st_gid (b) st_mode (c) st_ino (a) st_uid To simulate the command “system*, which of the system calls - fork, wait, and excel is/are to be used? (a) fork and wait (b) all three (c) fork and excel (d) wait and excel Consider the program main() { printf ("He arose a victor from\n"); system (*“date*); printf ("the dark domain"); } If a.out is the executable code corresponding to the above source code, then the command aout > outé (a) redirects the output of date to file out £ (b) displays the output of date on the screen (¢) prints everything on the screen (4) prints the two messages on the screen ‘The default permission bits of a file when it is created for the first time, is contralled by {a) chmod value (by) mask walue (c) umask value’ (d) none of the above Let x.c be a C source code. The command ce x.c > y (3) is equivalent to the command cc x.c ; mv aout y (b) is equivalent to the command ec -o y x.25. 27. 28. 29. “31. . If path is set to. :/u MCQs in Computer Science (c) serves no purpose (d) none of the above Which of the following sections in the manual covers system calls? (a) 1 (b) 2 te) 3 (a) 4 . Which of the following are not system calls? (a) chmod (b) open cme Choose the correct statements. (d) gete (a) C programs can directly make system calls. (b) System calls are functions used by the shell (c) Library functions use system calls. (d) Library functions don't use system calls Which of the following remarks about system calls, library functions and UNIX ebmmands are true? (a) System call is a part of kernel, while the other two are not a part of kemel (b) Unlike library functions, system calls and Unix commands are stand-alone programs (c} Library fiunctions and UNIX commands use system calls (4) Unlike system calls, library functions and UNIX commands are stand-alone programs The 2 in the manual entry access (2) (a) implies access is a system call (b) implies access is a library function {c) refers to the seetion number (d) none of the above sx/bin, then (a) the command one types will be first checked in the current directory, then /usr /x and fusr/bin. (b) if a command is found in both /use/x and /usr/bin, then the one in /usr/x will be executed. {c) in the previous choice, what happens is unpredictable. (d) if a command is found in both /usr/x and /usr/bin, then the one in /usr/bin will be executed. A file is created with the following contents echo today is: date If you type +, then fa) it echoes the message, followed by date (b) it gives the desired output only if the execute permission of file x is set. (©) the desired output can be got by the command sh x, whieh works even if x has its execute permission not set. (d) none of the above. ix2 33. 34. 35. 36. 37. 38. 39. “40. 4. a2. UNIX 47 ‘Shell script is preferable to other forms of programming because it (a) executes faster (b) enhances portability {c) occupies less space (d) makes programming task easier Choose the incorrect statements. (a) Shell scripts can accept arguments (b) Shell scripts are interpreted {c} Shell is a programming language (d) Shell scripts are compiled Files that store data in the same format as used in program are called (a) binary files «b) source file (c) text file (a) core To allow only one user to work with a particular file at @ particular time, one has to use (a) semaphore (b) critical region (ec) locking {d) dedicated mode ‘Which of the following remarks about realloc are true? {a) It allocates memory of required size that need not be contiguous (b) It never shifts the existing block {c} It can work only with an existing block of memory (4) It may shift the existing block The differences between malloci) and calloc() are: (8) malloc is used for dynamic allocation of memory, while calloc can’t be used for that purpose. (b) malloc needs only one argument, while cal loc needs two {c} unlike malloc, calloc allocates memory and initializes it to 0. (d) malloc needs two arguments and calloc only one. ‘The file that stores an integer as a sequence of characters is a {a} text file tb) data file (©) binary file (d) core Ifcat x, prints garbage, then x is probably a (a) data file {b) binary file (c) text file (4) souree file Which of the following file names can be found in more than one directory? (a) pasewd (b) bin (e) dae (d) none of the above bin a bucket for storing information (b) has files in binary code a directory (d) none of the above The main reasons for the success of pipes are (a) the availability of many filter programs (b) UNIX treats devices as files (6) it provides a 2-way communi (d) all of the above tion channel . Which of the following are not filter programs? (a) date (b) sort (©) cat (d) grepMCQs in Computer Science 44, Redirection in pipes can be achieved by using #46. +47. 49. “51. 52. “53. (a) = {b) >> (ce) tee (d) lpr . Choose the correct statements. (a) The symbols > and { are both processed by shel! (b) = can be used to direct output to 2 named file (ce) | can be used to direct output to programs (d) Filter programs cun be piped The command who | sort - filel> filez (a) results in an error (b) sorts the contents of fi lel and puts it in £ile2 {c) puts in £i1e2, the sorted output of who, followed by sorted contents of fi lel (d) none of the above If the command cat x, is executed after successfully executing the command time sort filename > x, then (a) only the time details will be displayed {b) only the sorted contents of the file £i lename will be displayed (ce) an error message will be displayed (d) the sorted contents of the file filename, along with the time information will be displayed Which of the following information is not present in an i-node? (a) Contents of the file (b) Size of the file (ch) Name of the file (d) Permission setting of the file ‘The system identifies a file by its (a) name (b) absolute path (c) file owner () inode number The system identifies the end of a file by the (a) BOP character (b) file size ic) i-node number — (d) none of the above The command line argument a.cut x ‘a bt tc d" (a) is acceptable (b) is acceptable if the double quotes are replaced by single quotes (c) is acceptable if the single quotes are replaced by double quotes 4d) none of the above Which of the following metacharacters will be recognized by the shell, even if it comes within double quotes? (a) § (b) * () ? (d) None of these Lint should be used (a) before compilation . (b} after compilation (ch to analyze a C code {d) none of the aboveUNIX 49 $4, Environment variables can be accessed by (a) system programs (b) C programs (©) shell scripts (d} none of the above 55. Which of the following are character special files? (a) Terminal (b} Printer (c) Modem (d) Tape Drive $6. If one exports a variable (a) variables placed in the environment by a child process are not inherited by the parent process. (b) it is passed to all its descendant processes {¢) itdies when the shell that created it dies (d) only the first two choices are correct 57. Profilers are (a) tools that analyze the run time behaviour of a program (b) tools that check a C code for cross file consistency (c) tools that keep track of evolving versions of a file (d) none of the above 58. The shell command : (a) does nothing (b) can be used to cause infinite looping (c) can take arguments but it cannot act on them {d) can be used to indicate a comment 859, Which of the following tools can be used to keep track of evolving versions of a f fa) make (b) yace (c) secs (@) av *60, The . (dot) shell command fa) can take command line argument {b) will fork a child shell to execute the named shell script (c) can be used to change the environment of the current shel! (d) all of the above 761. mt (a) is a macro processor (b) can be used to preprocess C code (c) can be used to preprocess assembly language program {d) mone of the above *62. The first thing that is searched when a command references a file is its fa) i-node (b) i-node number {c) permission setting (d) none of the above50 MCQs in Computer Science 63. co command sequentially invokes. (a) preprocessor, compiler and link editor (b) compiler and link editor (e) preprocessor, compiler, assembler and link editor (d) compiler, assembler and link editor *64, Among the directory entries, i-node and the file contents, which will be changed when a file is updated? (a) Only directory entry and file contents —_(b) Only i-node and file contents (©) All the three (d) None of the above 68. The cc command (a) can take more than one argument (b) can act on files with .¢ or .o extension (6) creates .o files by default when more than one argument with .c extension is present (d) if provided with more than one argument, immediately terminates if the first argument fails to compile successfully "66, The my command changes (a) only the directory entry (b) only the directory entry and ienode (©) only the i-node number (d) none of the above 67. If 7 terminals are currently logged on, then the command date ; who | we -1, displays {a) date followed by 7 (b) date followed by 8 (c) date followed by 1 (d) an error message *68. Choose the correct answers if the command ls -1 /dev/mt0 displays root 3, 0 jan 16 11:05 mto a special file a tape drive (c) mt0 indicates that it is a mounted tape (d) The ‘* indicates that data transfer is done in blocks 69. Choose the correct statements. (a) 1d x. is a valid command (assume x. 0 exists) (b) 14 x.0 issameasce x.0 (c) cc x. isa valid command (assume x. exists) (d) All of the above & /dev/tty (a) throws garbage onto the terminal tty 70. (b) just echoes what you type, line by line (c) terminates if one types control a, at the beginning of a line (d) terminates if one types control 4, anywhere in a line
You might also like
Page 1 of 18 UNIX Programming
PDF
100% (1)
Page 1 of 18 UNIX Programming
18 pages
Unix and Windows
PDF
No ratings yet
Unix and Windows
14 pages
LDD Dumps
PDF
100% (3)
LDD Dumps
22 pages
Linux System Administration Quiz 1
PDF
100% (1)
Linux System Administration Quiz 1
5 pages
Unix 241117081049 9859c384
PDF
No ratings yet
Unix 241117081049 9859c384
10 pages
UNIX MCQ PDF Part 2 MCQ
PDF
No ratings yet
UNIX MCQ PDF Part 2 MCQ
12 pages
Unix and Shell Programming
PDF
100% (1)
Unix and Shell Programming
50 pages
1 UNIX System Calls
PDF
No ratings yet
1 UNIX System Calls
12 pages
Unit 3 Objective Questions
PDF
No ratings yet
Unit 3 Objective Questions
10 pages
Operating System Concept
PDF
100% (1)
Operating System Concept
20 pages
BT0036 OPERATING SYSTEM PAPER 2 (BSciIT SEM 2)
PDF
No ratings yet
BT0036 OPERATING SYSTEM PAPER 2 (BSciIT SEM 2)
11 pages
CN 50
PDF
No ratings yet
CN 50
110 pages
1000 MEQs - Software Engineering 100
PDF
No ratings yet
1000 MEQs - Software Engineering 100
227 pages
1000 MEQs - Software Engineering 100
PDF
No ratings yet
1000 MEQs - Software Engineering 100
227 pages
Unix Sample Paper1
PDF
No ratings yet
Unix Sample Paper1
5 pages
C With Linux MCQs
PDF
No ratings yet
C With Linux MCQs
50 pages
Unix MCQs PDF
PDF
No ratings yet
Unix MCQs PDF
33 pages
Master - Linux - Monthly Assignemnts, Question Answers, Commands, 64 Interview Q-A
PDF
No ratings yet
Master - Linux - Monthly Assignemnts, Question Answers, Commands, 64 Interview Q-A
42 pages
BC0042 Operating Systems
PDF
No ratings yet
BC0042 Operating Systems
11 pages
6 TH Chapter
PDF
No ratings yet
6 TH Chapter
170 pages
MCQ - LPS Linux Questions
PDF
No ratings yet
MCQ - LPS Linux Questions
25 pages
OS Praticals IMP Notes by Ansar Shaikh
PDF
No ratings yet
OS Praticals IMP Notes by Ansar Shaikh
9 pages
1000 MEQs - Discrete Structures and Optimization 100
PDF
No ratings yet
1000 MEQs - Discrete Structures and Optimization 100
203 pages
UNIX
PDF
No ratings yet
UNIX
48 pages
QUIZ Answer Merged
PDF
No ratings yet
QUIZ Answer Merged
31 pages
Chap 8
PDF
No ratings yet
Chap 8
8 pages
Unix MCQs PDF
PDF
No ratings yet
Unix MCQs PDF
33 pages
Uuuuuuyyy
PDF
No ratings yet
Uuuuuuyyy
8 pages
Systems Programming Midterm Fall 2017 Answers
PDF
No ratings yet
Systems Programming Midterm Fall 2017 Answers
10 pages
MCQ Unix
PDF
No ratings yet
MCQ Unix
39 pages
1000 MEQs - Artificial Inteligence 100
PDF
No ratings yet
1000 MEQs - Artificial Inteligence 100
209 pages
1000 MEQs - PDF 2 Operating Systems
PDF
No ratings yet
1000 MEQs - PDF 2 Operating Systems
218 pages
Chapter-1 (Accessing The Command Line)
PDF
No ratings yet
Chapter-1 (Accessing The Command Line)
7 pages
Unix MCQ
PDF
No ratings yet
Unix MCQ
12 pages
Unix Important Questions
PDF
No ratings yet
Unix Important Questions
6 pages
Introduction To Artificial Intelligence
PDF
No ratings yet
Introduction To Artificial Intelligence
10 pages
Placement Test Questions & Answers Unix and Networking
PDF
No ratings yet
Placement Test Questions & Answers Unix and Networking
5 pages
LinuxCS 497C
PDF
No ratings yet
LinuxCS 497C
10 pages
UNIX Systems Questions Exam1
PDF
No ratings yet
UNIX Systems Questions Exam1
12 pages
IT Diploma LINUX-Operating-System-DIT3202 Old
PDF
No ratings yet
IT Diploma LINUX-Operating-System-DIT3202 Old
44 pages
1000 MEQs - COA & DL 100
PDF
No ratings yet
1000 MEQs - COA & DL 100
218 pages
Eos MCQ
PDF
No ratings yet
Eos MCQ
189 pages
1000 MEQs - Programming & Graphics 100
PDF
No ratings yet
1000 MEQs - Programming & Graphics 100
207 pages
Unit I MCQ
PDF
No ratings yet
Unit I MCQ
7 pages
System Programing Questions
PDF
No ratings yet
System Programing Questions
14 pages
040010401/040020202-UNIX Internal & Shell Programming
PDF
No ratings yet
040010401/040020202-UNIX Internal & Shell Programming
11 pages
DR - Nnce MCA NP-QB
PDF
No ratings yet
DR - Nnce MCA NP-QB
23 pages
21CS482 USP Question Paper - Watermark
PDF
No ratings yet
21CS482 USP Question Paper - Watermark
4 pages
System Notes
PDF
No ratings yet
System Notes
33 pages
Unix OS Was First Developed by
PDF
No ratings yet
Unix OS Was First Developed by
5 pages
Data Structures Using C, 2e Jhalak Dutta
PDF
No ratings yet
Data Structures Using C, 2e Jhalak Dutta
16 pages
Working With Functions-2
PDF
No ratings yet
Working With Functions-2
77 pages
Tread Synchronizing
PDF
No ratings yet
Tread Synchronizing
5 pages
In Java, Exception Can Be Checked or Unchecked. They Both Fit Into A Class Hierarchy. The Following Diagram Shows Java Exception Classes Hierarchy
PDF
No ratings yet
In Java, Exception Can Be Checked or Unchecked. They Both Fit Into A Class Hierarchy. The Following Diagram Shows Java Exception Classes Hierarchy
5 pages
IP Address Class PDF
PDF
No ratings yet
IP Address Class PDF
2 pages
Linux-Mcq With Key
PDF
No ratings yet
Linux-Mcq With Key
8 pages
Master of Computer Applications Second Year: Unix Lab
PDF
No ratings yet
Master of Computer Applications Second Year: Unix Lab
15 pages
) Acquire Resources in Same Order
PDF
No ratings yet
) Acquire Resources in Same Order
6 pages
Bezier Curve Online Class
PDF
No ratings yet
Bezier Curve Online Class
4 pages
Computer Architecture and Organization - I-Mid-Sem: Btech3 Semester
PDF
No ratings yet
Computer Architecture and Organization - I-Mid-Sem: Btech3 Semester
3 pages
IP Address Class by JD
PDF
No ratings yet
IP Address Class by JD
2 pages
Linux Questions
PDF
No ratings yet
Linux Questions
5 pages
Part One - 40 Part Two - 60
PDF
No ratings yet
Part One - 40 Part Two - 60
7 pages
Important Question of Chapter Deadlock
PDF
No ratings yet
Important Question of Chapter Deadlock
1 page
Unix MCQ
PDF
No ratings yet
Unix MCQ
9 pages
Unix MCQ
PDF
No ratings yet
Unix MCQ
43 pages
Linux MCQ Fot Interview
PDF
No ratings yet
Linux MCQ Fot Interview
2 pages
OS LAB MCQ Modified
PDF
No ratings yet
OS LAB MCQ Modified
26 pages
System and Network Administration MCQs - ITEC3123
PDF
No ratings yet
System and Network Administration MCQs - ITEC3123
24 pages
Unix - MCQ
PDF
100% (1)
Unix - MCQ
23 pages
Linux MCQ Fot Interview
PDF
No ratings yet
Linux MCQ Fot Interview
2 pages
Sysneww
PDF
No ratings yet
Sysneww
10 pages
Unix Dumps
PDF
No ratings yet
Unix Dumps
21 pages
Unix MCQ
PDF
No ratings yet
Unix MCQ
26 pages
Ilp Pat Test Unix
PDF
No ratings yet
Ilp Pat Test Unix
6 pages
A BasicUnix Final 6
PDF
No ratings yet
A BasicUnix Final 6
6 pages