Unix - Filters and Commands


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 :


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 :


 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 :


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



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 :

Suggest an improvement