3i Infotech Placement: Sample Questions 707 - 709 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 707

Edit

Write in Short

Short Answer▾

What is the output of the following program?

  1. main ()
  2. {
  3.     inta[10];
  4.     printf ( “%d” ⚹a +1-⚹ a +3);
  5. }

Explanation

In the program

Table Shows the Program
int a [10] ;Define the integer array a [10]
printf ( “% d” ⚹ a + 1-⚹ a + 3) ;Here ⚹ a and -⚹ a cancel out.

The result is as simple 1 + 3 = 4

Question 708

Edit

Write in Short

Short Answer▾

What is Process spawning?

Explanation

Understanding of Process Creation
  • When OS creates a process, it is called process spawning.
  • Another process typically requests process spawning- multitasking operating system then creates a child process
  • Example: Unix՚s fork system call or one of the spawn () library routines provided by MS-DOS, spawnle () .
  • The new sub process requires enough memory to execute both the child process and current program.

Question 709

Edit

Describe in Detail

Essay▾

What are tri-state device and why they are essential in a bus oriented system?

Explanation

A tri-state device has three terminals.

The Three Terminals
  • When enables line is active output line follows input line, otherwise output line is free.
  • It helps bus oriented system.
    • Consider two buffers working on inverted logic.
    • Two buffers are receiving different inputs and the output of two buffers is connected to same bus.
    • Enabling and disabling enable line of two buffers selectively allows one of the inputs on the bus.

Developed by: