Honeywell Papers: Sample Questions 6 - 8 of 18

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

Question number: 6

» Database » MySQL

Short Answer Question▾

Write in Short

What is difference in RISC and CISC processors?


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 number: 7

» Basic CS » Data Structures

Short Answer Question▾

Write in Short

Why paging is used?


  • Paging is a memory management technique in which the memory is divided into fixed size pages. Paging is used for faster access to data. When a program needs a page, it is available in the main memory as the OS copies a certain number of pages from your storage device to main memory. Paging allows the physical address space of a process to be non-contiguous.
  • OS performs an operation for storing and retrieving data from secondary storage devices for use in main memory. Paging is one of such memory management scheme. Data is retrieved from storage media by OS, in the same sized blocks called as pages. Paging allows the physical address space of the process to be non-contiguous.

Question number: 8

» Database » MySQL

Short Answer Question▾

Write in Short

How to free the allocated memory in C?


Memory allocation functions

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.


Use 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.