3i Infotech Papers: Sample Questions 1160 - 1162 of 1245

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

Question number: 1160

» Basic CS » Networks

Short Answer Question▾

Write in Short

In which layer are routers used

Explanation

Router used in network layer.

Router Used in Network Layer.

Router used in network layer.

  • A router is a specialized networking device moving data from one network to another operating at the network layer.

  • Router connects networks together but at the same time keeps broadcast traffic under control.

Question number: 1161

» Languages » Assembly Language

MCQ▾

Question

Frequency at which VOICE is sampled

Choices

Choice (4) Response

a.

Khz

b.

Khz

c.

Khz

d.

Khz

Answer

a.

Explanation

Define signal of VOICE.

Define Signal of VOICE.

Define signal of VOICE.

  • VOICE is sampled at Khz.

  • The bandwidth allocated for a single voice-frequency transmission channel is usually

  • Voice frequency is used for the transmission of speech.

  • Usable voice frequency band ranges from approximatelyto .

  • Thus ultra-low frequency band of the electromagnetic spectrum between is also referred to as voice frequency,

  • This electromagnetic energy represents acoustic energy at baseband.

Question number: 1162

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is placement new?

Explanation

  • Placement new is used to call constructor directly.

  • To initialize raw memory that’s already been allocated

  • Operator new’s special version placement new allows this. class Widget {public: Widget (int widgetsize); … Widget * Construct_widget_int_buffer (void * buffer, int widgetsize) {return new (buffer) Widget (widgetsize); } };

  • This function returns a pointer to a Widget object that’s constructed within the buffer passed to the function.

  • Such a function might be useful for applications using shared memory or memory-mapped I/O, because objects in such applications must be placed at specific addresses or in memory allocated by special routines.