Technical Questions

Q:

What are necessary conditions for dead lock?

Answer

1. Mutual exclusion (where at least one resource is non-sharable)


2. Hold and wait (where a process holds one resource and waits for other resource)


3. No preemption (where the resources can’t be preempted)


4. Circular wait (where p[i] is waiting for p[j] to release a resource. i= 1,2,…n


j=if (i!=n) then i+1


else 1 )

Report Error

View answer Workspace Report Error Discuss

0 2462
Q:

Which transistor is used in each cell of EPROM?

Answer

Floating gate avalanche injection MOS (FAMOS) transistor is used in each cell of EPROM.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2454
Q:

Different IP address on same network?

Answer

There are two IP address assigned to each device on a Wi-Fi network.


 


An Internal (Private) and an External (Public) IP address.


 


Internal IP address is used for communication between Your computer and a smartphone or whatever devices that are connected to that Wifi network. This is unique for each. If they are same the system cannot differentiate between each device.


 


While, the External IP address is that visible to the the internet - the websites, the internet connected Apps so on. By default, Routers with NAT (all routers today have it) assign same Public IP address to all devices under its network.

Report Error

View answer Workspace Report Error Discuss

16 2451
Q:

What is the difference between interior and exterior neighbor gateways?

Answer

Interior gateways connect LANs of one organization, whereas exterior gateways connect the organization to the outside world.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 2444
Q:

What is process migration?

Answer

It is the transfer of sufficient amount of the state of process from one machine to the target machine.

Report Error

View answer Workspace Report Error Discuss

0 2438
Q:

What is the difference between microprocessor and micro-controller?

Answer

In microprocessor more op-codes, few bit handling instrucitons. But in Microcontroller. fewer op-codes, more bit handling Instruction, and also it is defined as a device that includes micro processor, memory, & input / output signal lines on a single chip.


the basic architectual difference is that microcontroller has an programmable memory while it is not the case with mivroprocessors.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2429
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 2414
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 2413