Technical Questions

Q:

What's the difference between L1 and L2 cache?

Answer

Level 1 cache is internal to the chip, Level 2 is external.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2035
Q:

What are deadlock prevention techniques?

Answer

Mutual exclusion


Hold and wait


No preemption


Circular wait

Report Error

View answer Workspace Report Error Discuss

0 2034
Q:

What is a job queue?

Answer

When a process enters the system it is placed in the job queue.

Report Error

View answer Workspace Report Error Discuss

0 2034
Q:

What are the blocking and non-blocking assignments in Verilog and which is preferred in Sequential Circutis?

Answer

A blocking assignment is one in which the statements are executed sequentially, i.e., first statement is executed and variable is assigned  a value then second is executed and so on. A non blocking assignment is  one in which statements occurs conturrently, only non blocking assignments should be used in sequential circuit.


 


e.g.


initial


begin


a=b; //blocking


c<=a; //nonblocking


d=c; // blocking


end


 


In this example firstly the value of b is assigned to a and this value is assigned to c only after execution of first statement. the second and the third statements are executed simultaneously, i.e. value a ais assigned to c and previous value if c is assigned to d.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2033
Q:

Define HCMOS?

Answer

High-density n-type Complimentary Metal Oxide Silicon field effect transistor.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2031
Q:

What is a device queue?

Answer

A list of processes waiting for a particular I/O device is called device queue.

Report Error

View answer Workspace Report Error Discuss

0 2030
Q:

What is Program counter?

Answer

Program counter holds the address of either the first byte of the next instruction to be fetched for execution of the address of the next byte of a multi byte instruction, which has not been completely fetched. In both the cases it gets incremented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 2028
Q:

Write a c program to copy a data of file to other file.

Answer

#include<stdio.h>
int main(){
  FILE *p,*q;
  char file1[20],file2[20];
  char ch;
  printf("\nEnter the source file name to be copied:");
  gets(file1);
  p=fopen(file1,"r");
  if(p==NULL){
      printf("cannot open %s",file1);
      exit(0);
  }
  printf("\nEnter the destination file name:");
  gets(file2);
  q=fopen(file2,"w");
  if(q==NULL){
      printf("cannot open %s",file2);
      exit(0);
  }
  while((ch=getc(p))!=EOF)
      putc(ch,q);
  printf("\nCOMPLETED");
  fclose(p);
  fclose(q);
 return 0;
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2026