Basic CS [3i Infotech Placement]: Sample Questions 187 - 188 of 243

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 187

Edit

Write in Short

Short Answer▾

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

Explanation

Difference between Malloc () and Calloc ()
Malloc ()Calloc ()
Allocates only single block of requested memoryAllocate multiple block or requested memory.
doesn՚t initialize the allocated memory.Initialize the allocated memory to zero.
Contains garbage valueDoes not contain garbage value.
Faster than callocLonger than malloc
Takes one argument that is number of bytes.Take two arguments those are number of blocks and size of each block.

Question 188

Basic CS
Edit

Write in Short

Short Answer▾

Describe at a high level how two devices communicate over network.

Explanation

  • Data communications is transmission of digital data between two computers.
  • Computer or data network is telecommunications network allowing computers to exchange data.
  • Physical connection between networked computing devices established through cable or wireless media.
  • The best example of a computer network is the Internet.
  • Communication hardware is capable of transmitting an analogue or digital signal- for example, computer modem, network interface card (NIC) , Wi-Fi devices, and access points.

Developed by: