Technical Questions

Q:

What is Memory-Management Unit (MMU)?

Answer

Hardware device that maps virtual to physical address. In MMU scheme, the value in the relocation register is added to every address generated by a user process at the time it is sent to memory.


->The user program deals with logical addresses; it never sees the real physical addresses

Report Error

View answer Workspace Report Error Discuss

0 2298
Q:

Give the truth table for a Half Adder. Give a gate level Implementation of the same.

Answer

TRUTH TABLE FOR HALF ADDER


A    B  SUM  CARRY


0    0    0         0


0    1    1         0


1    0    1         0


1    1    0         1


INPLEMENTATION:


For SUM, The two inputs A and B are given to XOR gate.


For Carry, The two inputs A and B are given to AND gate.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2298
Q:

What is meant by Maskable interrupts?

Answer

An interrupt that can be turned off by the programmer is known as Maskable interrupt.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2295
Q:

Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent Prefix Notation

Answer

Prefix Notation:


^ - * +ABC - DE + FG

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2295
Q:

What would be the output of the following program?

/* sample.c */

main ( int argc, char **argv )

{

     argc = argc - (argc -1);

     printf ("%s", argv[argc - 1]);

}

Answer

C: \SAMPLE.EXE

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2279
Q:

How would you obtain segment and offset addresses from a far address of a memory location?

Answer

#include "dos.h"


main()


{


    Char far *scr = ( char far *) 0xB8000000;


    Char *seg, *off;


    Seg = (char *) FP_SEG ( scr );


    Off = ( char *) FP_OFF ( scr );


}


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2269
Q:

Write a c program for selection sort.

Answer

include<stdio.h>
int main(){

  int s,i,j,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  for(i=0;i<s;i++){
      for(j=i+1;j<s;j++){
           if(a[i]>a[j]){
               temp=a[i];
              a[i]=a[j];
              a[j]=temp;
           }
      }
  }

  printf("After sorting is: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 4 5 0 21 7
The array after sorting is:  0 4 5 7 21

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2252
Q:

What is FtDisk?

Answer

It is a fault tolerance disk driver for Windows NT.

Report Error

View answer Workspace Report Error Discuss

1 2248