June 2015 - Paper 3

71:  

Match the following for Unix system calls:

List – I

List – II

(a) exec

(i) Creates a new process

(b) brk

(ii) Invokes another program overlaying memory space with a copy of an executable file

(c) wait

(iii) To increase or decrease the size of data region

(d) fork

(iv) A process synchronizes with termination of child process

Codes:

 

 

A.

(ii) (iii) (iv) (i)

B.

(iii) (ii) (iv) (i)

C.

(iv) (iii) (ii) (i)

D.

(iv) (iii) (i) (ii)

 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



72:  

WOW32 is a :

A.

Win 32 API library for creating processes and threads.

B.

Special kind of file system to the NT name space.

C.

Kernel - mode objects accessible through Win 32 API

D.

Special execution environment used to run 16 bit Windows applications on 32 - bit machines.

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



73:  

The Unix command :

$ vi file1 file2

A.

Edits file1 and stores the contents of file1 in file2

B.

Both files i.e. file1 and file2 can be edited using 'ex' command to travel between the files

C.

Both files can be edited using 'mv' command to move between the files

D.

Edits file1 first, saves it and then edits file2

 
 

Option: B

Explanation :

When you first invoke vi, you can name more than one file to edit, and then use ex commands to travel between the files.
$ vi file1 file2
invokes file1 first. After you have finished editing the first file, the ex command :w writes (saves) file1 and :n calls in the next file (file2).

Click on Discuss to view users comments.

Write your comments here:



74:  

Given the following grammars :

G1: S → AB|aaB

A → aA | ∈

B → bB | ∈

G2: S → A | B

A → a A b | ab

B → a b B | ∈

Which of the following is correct?

A.

G1 is ambiguous and G2 is unambiguous grammars

B.

G1 is unambiguous and G2 is ambiguous grammars

C.

both G1 and G2 are ambiguous grammars

D.

both G1 and G2 are unambiguous grammars

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



Related MCQ