Questions

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 14009
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 13995
Q:

What about Earth allows it to maintain bodies of water?

A) mountains B) tides
C) moderate tempatures D) comet crashes
 
Answer & Explanation Answer: C) moderate tempatures

Explanation:

The moderate temperatures allow Earth to maintain bodies of water into its normal state.

Changes in the bodies of water in terms of volume and structure would change due to the change in temperature. 

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

13 13993
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 13979
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 13974
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 13966
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:

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 13950