Languages [3i Infotech Placement]: Sample Questions 439 - 440 of 546

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

Question 439

Question

MCQ▾

Frequency at which VOICE is sampled

Choices

Choice (4)

a.

Khz

b.

Khz

c.

Khz

d.

Khz

Answer

b.

Explanation

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 approximately to .
  • 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 440

Edit

Write in Short

Short Answer▾

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.

Developed by: