Technical Questions

Q:

When mapping a supertype/subtype relationship which of the following is true?

A) The supertype primary key is assigned to each subtype. B) The subtype primary key is assigned to each supertype.
C) There is no link between the supertype/subtype entities. D) There is no primary key/foreign key relationship between a supertype/subtype.
 
Answer & Explanation Answer: A) The supertype primary key is assigned to each subtype.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

4 11825
Q:

What would be the output of the following program ?

main() 

{

       unsigned  int a = oxffff;

        ~a;

        printf ("%x", a);

}

A) ffff B) 0000
C) 00ff D) None of the above
 
Answer & Explanation Answer: A) ffff

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

0 11647
Q:

main()

{

float me = 1.1;

double you = 1.1;

if(me==you)

printf("yes");

else

printf("No");

}

A) Yes B) No
C) Both D) Compilation error
 
Answer & Explanation Answer: B) No

Explanation:

For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing
Job Role: Software Architect

9 11459
Q:

What are 10Base2, 10Base5 and 10BaseT Ethernet LANs

Answer

10Base2—An Ethernet term meaning a maximum transfer rate of 10 Megabits per second that uses baseband


signaling, with a contiguous cable segment length of 100


meters and a maximum of 2 segments.


 


10Base5—An Ethernet term meaning a maximum transfer rate of 10 Megabits per second that uses baseband


signaling, with 5 continuous segments not exceeding 100


meters per segment.


 


10BaseT—An Ethernet term meaning a maximum transfer rate of 10 Megabits per second that uses baseband


signaling and twisted pair cabling.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

3 11428
Q:

If the following program (myprog) is run from the command line as 

myprog 1 2 3 

what would be the output?

main(int argc, char *argv[])

{

    int i, j = 0;

    for (i = 0; i < argc ; i++)

           j = j + atoi ( argv[i]);

    printf ("%d", j);

}

A) 123 B) 6
C) Error D) "123"
 
Answer & Explanation Answer: B) 6

Explanation:

When atoi() tries to convert argv[0] to a number it cannot do so (argv[0] being a file name) and hence returns a zero.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 11403
Q:

Which is the simplest file structure?

A) Sequential B) Indexed
C) Random D) None
 
Answer & Explanation Answer: A) Sequential

Explanation:

Sequential is the simplest file structure

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing

6 11263
Q:

What does microprocessor speed depend on?

Answer

the processing speed depends on DATA BUS WIDTH.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

21 11149
Q:

What is the output of this C code?

        #include <stdio.h>
        void main()
        {
            int y = 3;
            int x = 5 % 2 * 3 / 2;
            printf("Value of x is %d", x);
        }

A) Value of x is 1 B) Value of x is 2
C) Value of x is 3 D) Compile time error
 
Answer & Explanation Answer: A) Value of x is 1

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 11087