3i Infotech Papers: Sample Questions 1152 - 1153 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1152

» Basic CS » Data Structures

Short Answer Question▾

Write in Short

What are the difference between malloc () and calloc ()

Explanation

Difference between malloc () and calloc ()

Difference between malloc () and calloc ()

Malloc ()

Calloc ()

Allocates only single block of requested memory

Allocate multiple block or requested memory.

Doesn’t initialize the allocated memory.

Initialize the allocated memory to zero.

Contains garbage value

Does not contain garbage value.

Faster than calloc

Longer than malloc

Takes one argument that is number of bytes.

Take two arguments those are number of blocks and size of each block.

Question number: 1153

» Aptitude

MCQ▾

Question

If then ABC is a

Choices

Choice (4) Response

a.

All the angles are acute

b.

Equilateral triangle

c.

Right angle triangle

d.

Question does not provide sufficient data or is vague

Answer

c.

Explanation

or or

or or

So, It is a right angled triangle.