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

First China War was fought between

A) China and Britain B) China and France
C) China and Egypt D) China and Greek
 
Answer & Explanation Answer: A) China and Britain

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

78 14094
Q:

Name the only animal that dislikes white colour?

Answer

Tiger.

Report Error

View answer Workspace Report Error Discuss

132 14088
Q:

Complete the following sentence with the most appropriate option.

 

Solar energy ____ generates more power than wind energy.

 

A) sometimes B) never
C) always D) often
 
Answer & Explanation Answer: A) sometimes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

1 14073
Q:

Who is the author of 'Anandmath'

A) Rabindranath Tagore B) Bankim Chandra Chattopadyaya
C) Sarojini Nayadu D) Jyotiba Phule
 
Answer & Explanation Answer: B) Bankim Chandra Chattopadyaya

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

39 14069
Q:

Improve the bracketed part of the sentence.

My patients (were waited) for me since morning.

A) wait B) had been waited
C) have been waiting D) no improvement
 
Answer & Explanation Answer: C) have been waiting

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 14067
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 14050
Q:

Which of these artist was principally entrusted with the task of 'Illuminating' the original document of the Constitution of India ?

A) Benode Behari Mukherrjee B) Nand lal Bose
C) Abanindranath Tagore D) Ram Kinkar Baij
 
Answer & Explanation Answer: B) Nand lal Bose

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

54 14048