Technical Questions

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 1792
Q:

What is Stack Pointer?

Answer

Stack pointer is a special purpose 16-bit register in the Microprocessor, which holds the address od the top of the stack.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1787
Q:

What are the different types of Real-Time Scheduling?

Answer

Hard real-time systems required to complete a critical task within a guaranteed amount of time.
Soft real-time computing requires that critical processes receive priority over less fortunate ones.

Report Error

View answer Workspace Report Error Discuss

1 1785
Q:

Explain compiler?

Answer

compiler is used to translate the high-level language program into machine code at a time. It doesn't require special instruction to store in a memory, it stores automatically. the execution time is less compared interpreter.


A compiler is a program that translates a source program written in some high-level programming langualge (such as Java) into machine code for some computer architecture (such as the Inter Pentium archiecture).

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1785
Q:

Why we use do-while loop in c?

Answer

It is also called as post tested loop. It is used when it is necessary to execute the loop at least one time. Syntax:

do {
Loop body
} while (Expression);

Example:

int main(){
    int num,i=0;  
    do{
         printf("To enter press 1\n");
         printf("To exit press  2");
         scanf("%d",&num);
         ++i;
         switch(num){
             case 1:printf("You are welcome\n");break;
             default : exit(0);
         }
    }
    while(i<=10);
    return 0;
}

Output: 3 3 4 4

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1781
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 1774
Q:

What are the benefits of multithreaded programming?

Answer

 



  • Responsiveness

  • Resources sharing

  • Economy

  • Utilization of multiprocessor architectures.

Report Error

View answer Workspace Report Error Discuss

1 1774
Q:

What are the major flags in 8086?

Answer

In 8086 Carry flag, Parity flag, Ausiliary caarry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1774