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

A cube of edge 15 cm is immersed completely in a rectangular vessel containing water . If the dimensions of the base of vessel are 20 cm x 15 cm, find the rise in water level

 

A) 11.25cm B) 11.56cm
C) 11.66cm D) 10.86cm
 
Answer & Explanation Answer: A) 11.25cm

Explanation:

Increase in volume = Volume of the cube = (15 x 15 x 15) cm3.

 

\Rise in water level = volume/area = (15 x 15 x 15)/(20 x 15) cm = 11.25 cm.

Report Error

View Answer Report Error Discuss

7 13412
Q:

Buddha attained Mahaparinirvana in the republic of the

A) Mallas B) Lichhavis
C) Sakyas D) Palas
 
Answer & Explanation Answer: A) Mallas

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

19 13407
Q:

Defect Management Process does not include

A) Deliverable base-lining B) Management reporting
C) Defect prevention D) None of above
 
Answer & Explanation Answer: A) Deliverable base-lining

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Software Testing
Job Role: Analyst , IT Trainer

8 13402
Q:

Select the antonym of

affidavit

 

A) affirmation B) slander
C) oath D) testimony
 
Answer & Explanation Answer: B) slander

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

0 13395
Q:

Latitude of place is indicated of its

A) Time B) Altitude
C) Amount of rain D) Temparature
 
Answer & Explanation Answer: D) Temparature

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

23 13392
Q:

Improve the bracketed part of the sentence.

There is a compelling case for privatising the airline and freeing (locked at) funds for education and health.

A) locked of B) locked on
C) locked up D) No improvement
 
Answer & Explanation Answer: C) locked up

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 13378
Q:

Who was the first Indian ruler who had territory outside India ?

A) Kanishka B) Chandra Guptha Maurya
C) Huvishka D) Ashoka
 
Answer & Explanation Answer: A) Kanishka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

49 13376