Technical Questions

Q:

what is the interrupt?

Answer

interrupt is a signal send by external device to the processor so as to request the processor to perform a particular work.


A signal informing a program that an events has occurred. when a program receives an interrupt signal, it takes a specified action (which can be to ignore the signal).

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2091
Q:

How many bits are in a MAC address?

A) 64 B) 48
C) 32 D) 16
 
Answer & Explanation Answer: B) 48

Explanation:

MAC - Media Access Control, address is a globally unique identifier assigned to network devices, and therefore it is often referred to as hardware or physical address.

 

MAC addresses are 6-byte (48-bits) in length, and are written in MM:MM:MM:SS:SS:SS format.

Report Error

View Answer Report Error Discuss

0 2086
Q:

Point out the error, if any, in the following program.

main()

{

    int a = 10;

    void f();

    a = f();

    printf ( "\n %d", a );

}

void f()

{

    printf ( "\n Hi ");

}

Answer

In spite of defining the function f() as returning void, the program is trying to collect the value returned by f() in the variable a.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2078
Q:

How many interrupts are there in 8085?

Answer

There are 12 interrupts in 8085.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2076
Q:

what is the clock frequency for 8085?

Answer

3MHz is the maximum clock frequency for 8085.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2072
Q:

Write a c program to print multiplication table

Answer

 #include<stdio.h>
int main(){
  int r,i,j,k;
  printf("Enter the number range: ");
  scanf("%d",&r);
  for(i=1;i<=r;i++){
      for(j=1;j<=10;j++)
           printf("%d*%d=%d ",i,j,i*j);
      printf("\n");
  }
  return 0;
}

Sample Output:
Enter the number range: 5

1*1=1 1*2=2 1*3=3 1*4=4 1*5=5 1*6=6 1*7=7 1*8=8 1*9=9 1*10=10
2*1=2 2*2=4 2*3=6 2*4=8 2*5=10 2*6=12 2*7=14 2*8=16 2*9=18 2*10=20
3*1=3 3*2=6 3*3=9 3*4=12 3*5=15 3*6=18 3*7=21 3*8=24 3*9=27 3*10=30
4*1=4 4*2=8 4*3=12 4*4=16 4*5=20 4*6=24 4*7=28 4*8=32 4*9=36 4*10=40
5*1=5 5*2=10 5*3=15 5*4=20 5*5=25 5*6=30 5*7=35 5*8=40 5*9=45 5*10=50

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2070
Q:

What would be the output of the following program?

main()

{

    static int a[20];

    int i = 0;

    a[i] = i++;

    printf ("\n%d%d%d", a[0],  a[1], i);

}

Answer

0  0  1


That's what some of the compilers would give. But some other compiler may give a different answer. The reason is, when a single expression causes the same object to be modified and then inspected the behaviour is undefined.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2068
Q:

What is LATCH?

Answer

Latch is a D-type flip-flop used as a temporary tsorage device controlled by a tiing singnal, which can store 0 or 1. the primary function of a Latch is data storage. It is used in output devices such as LED, to hold the data for display.


To Store Monitor programs.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2068