Technical Questions

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

What is flag?

Answer

Flag is a flip-flop used to store the information about the status of a processor and the status of the insturction executed most recently.


A software or hardware mark that signals a particular condition or status. A flag is like a switch that can be either on or off. The flag said to be set when it is turned on.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 1668
Q:

What would be the output of the following program?

main()

{

  int i=2 ;

  printf ("\n%d%d", ++i, ++i );

}

Answer

Output may vary from compiler to compiler.


The order of evaluation of the arguments to a function call is unspecified.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1663
Q:

C program to find the factorial of a given number

Answer

 #include<stdio.h>
int main(){
  int i=1,f=1,num;

  printf("Enter a number: ");
  scanf("%d",&num);

  while(i<=num){
      f=f*i;
      i++;
  }

  printf("Factorial of %d is: %d",num,f);
  return 0;
}

Sample output:
Enter a number: 5
Factorial of 5 is: 120

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 1660
Q:

What are the different functions of Scheduler?

Answer

Scheduler deals with the problem of deciding which of the process in the ready queue is to be allocated the CPU. Short Term Schedulers, Long Term Schedulers

Report Error

View answer Workspace Report Error Discuss

1 1660
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 1658
Q:

What are types of threads?

Answer

User thread


Kernel thread

Report Error

View answer Workspace Report Error Discuss

1 1658
Q:

Differ between static and dynamic RAM?

Answer

Static RAM: no refreshing, 6 to 8 MOS transistors are required to form one memory cell, information stored as voltage level in flip flop. 


Dynamic RAM: refreshed periodically, 3 to 4 transistors are required to form one memory cell, information is  stored as a charge in the gate to substrate capacitance.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

1 1657