3i Infotech Placement: Sample Questions 231 - 233 of 1245

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

Question 231

Edit

Write in Short

Short Answer▾

Which one is equivalent is multiplying by 2: left shifting a number by 1 or left shifting an unsigned int or char by 1?

Explanation

  • Left shifting by 1 is multiplying by 2.
  • Right shifting by 1 is dividing by 2.

Question 232

Question

MCQ▾

Can a DIALOG WINDOW have scroll bar attached to it?

Choices

Choice (4)

a.

No

b.

Yes

c.

None of the above

d.

Question does not provide sufficient data or is vague

Answer

a.

Explanation

Custom Dialog Window Demo

No, a DIALOG WINDOW cannot have scroll bar attached to it. DIALOG WINDOW:

  • Is an independent sub window that is a part of the main swing application window.
  • Indicates the error message or warning to a user.
  • Can be modal- when a modal dialog is visible, user input to all other windows in the program is disabled.
  • Used for creating and editing database connections and object in the database.
  • Sometime have multiple tab, each reflect a logical grouping.
  • Each dialog is dependent on a Frame component.

Question 233

Question

MCQ▾

What action is taken when the processor under execution is interrupted by a non-maskable interrupt?

Choices

Choice (4)

a.

Processor serves the interrupt request after completing the execution of the current instruction.

b.

Processor serving the interrupt request depends upon the priority of the current task under execution.

c.

Processor serves the interrupt request immediately.

d.

Processor serves the interrupt request after completing the current task.

Answer

c.

Explanation

All the regular interrupts are called maskable interrupts. The processor is able to mask, or temporarily ignore, any interrupt if it needs to, in order to finish something else that it is doing. In addition, however, the PC has a non-maskable interrupt (NMI) that can be used for serious conditions that demand the processor՚s immediate attention. The Non-Maskable Interrupt cannot be ignored by the system unless it is shut off specifically.

Developed by: