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

A market situation when firms sell similar but not identical products is termed as

 

A) perfect competition B) imperfect competition
C) monopolistic competition D) oligopoly
 
Answer & Explanation Answer: C) monopolistic competition

Explanation:

Monopolistic competition is a type of imperfect competition such that many producers sell products that are differentiated from one another (e.g. by branding or quality) and hence are not perfect substitutes.

In other words, large sellers selling the products that are similar, but not identical and compete with each other on other factors besides price.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 13961
Q:

Improve the bracketed part of the sentence.

You are what you (have eaten).

A) will eat B) eat
C) shall eat D) no improvement
 
Answer & Explanation Answer: B) eat

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13953
Q:

Which of the following countries enjoys a federal form of government

A) China B) USA
C) Cuba D) Belgium
 
Answer & Explanation Answer: B) USA

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

16 13951
Q:

Which of the following is based on the principle of nuclear fusion?

 

A) Atomic bomb B) Hydrogen bomb
C) Both Atomic and Hydrogen bomb D) No option is correct
 
Answer & Explanation Answer: B) Hydrogen bomb

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams , CAT

1 13950
Q:

What would be the output of the following program ?

main()

{

     const int x = 5; 

      int *ptrx;

      ptrx = &x;

      *ptr = 10;

       printf ("%d", x);

}

A) 5 B) 10
C) Error D) Garbage value
 
Answer & Explanation Answer: B) 10

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 13942
Q:

Which crop was first cultivated in Sri Lanka under plantation agriculture?

 

A) Coffee B) Tea
C) Rubber D) Coconut
 
Answer & Explanation Answer: A) Coffee

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 13932
Q:

Which is considered as oldest civilization of the world ?

A) Mesopotamian Civilization B) Harappan Civilization
C) Chinese Civilization D) Egyptain Civilization
 
Answer & Explanation Answer: A) Mesopotamian Civilization

Explanation:

Mesopotamian Civilization (4000 BC - 6th Cen. BC)

Egyptain Civilization (3400 BC - 1000 BC)

Harappan Civilization (2500 BC - 1750 BC)

Chinese Civilization (1765 BC - 250 BC)

Report Error

View Answer Report Error Discuss

Filed Under: World History

61 13925