Database-MySQL [Honeywell Placement]: Sample Questions 1 - 2 of 4

Get top class preparation for competitive exams right from your home: get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 1

Edit

Write in Short

Short Answer▾

What is difference in RISC and CISC processors?

Explanation

Difference between RISC (Reduced Instruction Set Computing) and CISC (Complex Instruction Set Computing) can be summarized as follows:

  • CISC instructions utilize more cycles than RISC
  • CISC has way more complex instructions than RISC
  • CISC typically has fewer instructions than RISC
  • CISC implementations tend to be slower than RISC implementations
  • Computers typically use CISC while tablets, smartphones and other devices use RISC

Question 2

Edit

Write in Short

Short Answer▾

How to free the allocated memory in C?

Explanation

Malloc () and Calloc () Functions Are Used to Allocate Required Size of Bytes in Memory. Free () Function is Used to Dellocate Previously Occupied Memory. Realloc () Function is Used to Change the Size of Previously Allocated Size of Memory
FunctionUse of Function
malloc ()Allocates requested size of bytes and returns a pointer first byte of allocated space
calloc ()Allocates space for an array elements, initializes to zero and then returns a pointer to memory
free ()dellocate the previously allocated space
realloc ()Change the size of previously allocated space

Dynamically allocated memory with either calloc () or malloc () does not get return on its own. The programmer must use free () explicitly to release space.

free (ptr) ;

This statement will cause space in memory pointer by ptr to be deallocated.

Developed by: