Classical

Unix - Filters and Commands

21:  

The differences between malloc( ) and calloc() are:

A. Malloc is used for dynamic allocation of memory, while cal:1c 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. Both (b) and (c)
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



22:  

The file that stores an integer as a sequence of characters is a

A. Text file
B. Data file
C. Binary file
D. Core file
 
 

Option: A

Explanation :

Click on Discuss to view users comments.

Write your comments here:



23:  

 If cat x. prints garbage. then x is probably a

A. Data file
B. Binary file
C. Text file
D. Source file
 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



24:  

Which of the following file names can be found in more than one directoy?

A. passwd
B. bin
C. date
D. Both (a) and (b)
 
 

Option: D

Explanation :
passwd - /etc/passwd and /bin/passwd
bin - usr/bin and /bin

Click on Discuss to view users comments.

Write your comments here:



25:  

 /bin

A. Is a bucket for storing information
B. Has files in binary code
C. is a directory
D. Both (b) and (c)
 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:






Suggest an improvement