Technical Questions

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 2104
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 2100
Q:

What would be the output of the following program assuming that the array beigns at location 1002?

main()

{

   int a[3][4] = {

                            1 , 2 , 3 , 4

                            5,  6 , 7, 8

                            9, 10 , 11, 12

                       };

    Printf ("\n%u %u %u", a[0] + 1, *( a[0] + 1), *( *(a + 0) + 1) );

}

Answer

1004  2  2

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2099
Q:

What is the difference between Primary storage and secondary storage?

Answer

Main memory - only large storage media that the CPU can access directly.

Secondary storage - extension of main memory that provides large nonvolatile storage capacity.

Report Error

View answer Workspace Report Error Discuss

1 2098
Q:

What is program counter in 8085?

Answer

Program counter holds the address of either the first byte of the next instruction to be fetched for exectuion or the address of the next byte of a multi byte instruction, which has not beeb completely fetched. in both the cases it gets increnented 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

0 2096
Q:

The FROM SQL clause is used to 

A) specify what table we are selecting or deleting data FROM B) specify search condition  
C) specify range for search condition   D) None of these
 
Answer & Explanation Answer: A) specify what table we are selecting or deleting data FROM

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

4 2094
Q:

Will the following function work?

f1 ( int a, int b )

{

    return ( f2 (20) );

}

f2 ( int a )

{

    return ( a * a );

}

Answer

Yes

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2091
Q:

Write an RTL Description for D latch and D flip flop?

Answer

For D latch: always@(enable) q<=d;


For D flip flop: always@(opsedge clock) q<=d; 

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2089