Technical Questions

Q:

What will be output when you will execute following c code?

#include <stdio.h>
enum actor

{
    SeanPenn=5,
    AlPacino=-2,
    GaryOldman,
    EdNorton
};
void main()

{
     enum actor a=0;
     switch(a)

      {
         case SeanPenn:  printf("Kevin Spacey");
                         break;
         case AlPacino:  printf("Paul Giamatti");
                         break;
         case GaryOldman:printf("Donald Shuterland");
                         break;
         case EdNorton:  printf("Johnny Depp");
      } 
}

A) Kevin Spacey B) Paul Giamatti
C) Donald Shuterland D) Johnny Depp
 
Answer & Explanation Answer: D) Johnny Depp

Explanation:

Default value of enum constant
GaryOldman = -2 +1 = -1
And default value of enum constant
EdNorton = -1 + 1 = 0
Note: Case expression can be enum constant.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 20981
Q:

What is "bug leakage?" and what is "bug release?"

Answer

A bug leakage results when a bug is detected which should have been detected in earlier builds/versions of the application.


A defect which exists during testing yet unfound by the tester which is eventually found by the tester/end-user is also called bug leakage.


A bug release is when a particular version of s/w is released with a set of known bug(s)/defect(s). These bugs are usually low severity and/or low priority bugs. It is done when the company can afford the existence of bug in the released s/w rather than the time/cost for fixing it in that particular version. These bugs are usually mentioned in the Release Notes.

Report Error

View answer Workspace Report Error Discuss

Subject: Software Testing

21 20663
Q:

Which of the following is a form of functional testing?

A) Security testing B) Performance testing
C) Boundary value analysis D) Usability testing
 
Answer & Explanation Answer: D) Usability testing

Explanation:

Functional testing is a type of testing that is done against the requirements of the business application. 

Which_of_the_following_is_a_form_of_functional_testing1552046654.png image

Examples of functional testing are Smoke testing, Sanity testing, Regression testing, Usability testing.

Report Error

View Answer Report Error Discuss

30 20430
Q:

What is the output of this C code?

        #include <stdio.h>
        void main()
        {
            int x = 97;
            char y = x;
            printf("%cn", y);
        }

A) a B) 97
C) Run time error D) None
 
Answer & Explanation Answer: A) a

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 20269
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 19792
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

12 19695
Q:

What are the data units at different layers of the TCP / IP protocol suite?

Answer

The data unit created at the application layer is called a message, at the transport layer the data unit created is called either a segment or an user datagram, at the network layer the data unit created is called the datagram, at the data link layer the datagram is encapsulated in to a frame and finally transmitted as signals along the transmission media.

Report Error

View answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

24 19226
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

34 18968