Classical

Unix - System Calls

1:  

 Choose the correct statements

A.

The function stat refers a file by its name.

B.

The function stat refers a file by its tile descriptor

C.

The function fstat   refers a file by its file descriptor.

D.

The function fstat refers a file by its name.

 
 

Option: C

Explanation :


2:  

 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

D.

st_uid

 
 

Option: B

Explanation :


3:  

To simulate the command "system". which of the system calls - fork, wait, and excel isdare to be used?

A.

fork and wait

B.

all three

C.

fork and excel

D.

wait and excel

 
 

Option: B

Explanation :

When a process executes a system command like system("date"), it forks a child process, waits for it to execute the date command and terminates. This can be implemented by the child making the call exec("/bin/date", "date", (chr *)0)


4:  

Which of the following are not system calls?

A.

chmod

B.

open

C.

lseek

D.

getc

 
 

Option: D

Explanation :


5:  

Choose the correct statements.

A.

C programs can directly make system calls

B.

Library functions use system call

C.

Both (a) and (b)

D.

Library functions don't use system calls.

 
 

Option: C

Explanation :




Suggest an improvement

 


Syllabus covered in this section is-

  • The UNIX System: File system, process management.
  •  Bourne shell, shell variables, command line programming
  •  Filters and Commands: Pr. Head, tail, cut. Paste. Sort. uniq, tr, join, etc, grep, egrep, fgrep, etc, sed, awk, etc.
  • System Calls (like) : Create, open. Close, read, write, iseek, link, unlink, stat, fstat, umask, chmod, exec, fork, wait, system.
  • Unix :Operating System
  •  Structure of Unix Operating System
  • UNIX Commands. Interfacing with Unix
  •  Editors and Compilers for Unix LEX  and YACC
  •  File system, System calls.
  • Filters, Shell programming

This Section covers Unix Questions Answers .These questions can be used for the preparation of various competitive and academic exams like

  • UGC NET Computer Science
  • Pre PhD Entrance Exam
  • DOEACC Exams
  • Kendriya Vidyalaya Sangathan Entrance Exam
  • Undergraduate Computer Science Examinations
  • Post Graduate Computer Science Test
  •  PhD Entrance Exam
  • Computer Engineering
  • National Eligibility Test (NET)
  • State Eligibility Test (SET)

Who can benefit

  • Unix Objective Questions Answers can be used by any student who is preparing for PhD entrance exam, pre PhD entrance exam, entrance exam or any other such exam.
  • Any student who is preparing for DOEACC exams can also use UNIX questions answers for preparation of his exams.
  • Unix  mcq can be useful for the students who are pursuing any undergraduate or post graduate degree in computer science like BE, ME , Btech, Mtech, .BSc, MSc, BCA, MCA, BS, MS  or any other such degree
  • UNIX mcq with answers and explanation can also be useful for the students who are preparing for any competitive exam or recruitment exams like UGC NET Computer Science, Kendriya Vidyalaya Sangathan PGT exam, PSU, IES or any other such exam.
  • Unix Operating System is an Elective subject for UGC NET Computer Science.
  • UNIX multiple choice questions answers can also be used by any candidate who wants to gain credits in UNIX in BS Computer science or MS Computer science.
  • UNIX mcq questions answers can be used for the preparation of National Eligibility Test (NET) and State Eligibility Test (SET).
  • You can download UNIX mcq pdf from this site.
  • You can also get access to UNIX multiple choice questions answers EBook.

Various Search Terms Used For This Section Are

  • Unix Quiz Questions With Answers

  • Unix Exam Questions Answers

  • Unix Mcq Questions Answers

  • Unix Mcq Pdf Download