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

Cobalt - 60 is commonly used in radiation therapy because it emits

A) alpha - rays B) beta rays
C) gamma rays D) X - rays
 
Answer & Explanation Answer: C) gamma rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

94 20039
Q:

Find the appropriate relation for quantity 1 and quantity 2 in the following question:

 

An artificial kund is filled by three pipes with uniform flow. The first two pipes operating simultaneously fill the kund at the same time during which the kund is filled by the third pipe alone. The second pipe fills the kund 5 hours faster than the first pipe and 4 hours slower than the third pipe.

Quantity 1: The time required by the first pipe?

Quantity 2: Time taken by all three pipes to fill the Kund simultaneously

A) Quantity 1 > Quantity 2 B) Quantity 1 ≥ Quantity 2
C) Quantity 1 < Quantity 2 D) Quantity 1 ≤ Quantity 2
 
Answer & Explanation Answer: A) Quantity 1 > Quantity 2

Explanation:

Quantity 1:
Let the first pipe alone takes x hours to fill the
tank.
⇒The second and third pipes will take (x-5) and
(x-9) hours respectively.
According to the given information:
∴ 1x-9

⇒ (x-9)(2x-5) = x2 – 5x
⇒ 2x2 – 5x – 18x + 45 = x2 – 5x
⇒ x
2 -18x + 45 = 0
⇒ (x-15) (x-3) = 0
⇒ x = 15, 3

The first pipe can take 15 hours to fill the kund.
∵ 3 hours doesn’t satisfy the statement.
Quantity 2:
∴ Time taken by second pipe = x-5
⇒ Time taken by second pipe = 15-5 = 10hours
∴ Time taken by third pipe = x -9
⇒ Time taken by third pipe = 15- 9 = 6 hours
Now,

Net part filled in 1 hour = 115+110+16
⇒ Net part filled in 1 hour = 4+6+1060
⇒Net part filled in 1 hour = 2060=13
∴The Kund will be full in 3/1 hours if all the pipes are opened simultaneously
Now, comparing
15 > 3
Thus, Quantity 1 > quantity 2

Report Error

View Answer Report Error Discuss

2 20003
Q:

Which of the statements given below are correct?

 

A) In 2017, Dani Pedrosa raced in MotoGP for Yamaha.

B) United Arab Emirates hosted the Badminton 2017 BWF World Senior Championships.

C) Johanna Konta won the Tennis 2017 Miami Open Women's Singles.

 

 

A) Only B B) Only C
C) Both A and C D) A, B and C
 
Answer & Explanation Answer: B) Only C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 19980
Q:

Which of the statements given below are correct?

A) Sebastian Vettel won the Formula One 2017 Mexican Grand Prix.

B) In 2017, Per Mertesacker captained the Premier League team Arsenal.

C) Tan Zhongyi won the 2017 Women's World Chess Championship.

 

A) Only C B) Only B
C) Both B and C D) Both A and C
 
Answer & Explanation Answer: C) Both B and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 19964
Q:

Which of the following places is famous for Chikankari work, which is a traditional art of embroidery?

A) Hyderabad B) Lucknow
C) Mysore D) Jaipur
 
Answer & Explanation Answer: B) Lucknow

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

312 19937
Q:

As per Indian Protocol, who among the following ranks highest in the order of precedence?

A) Deputy Prime Minister B) Former President
C) Governor of a State within his state D) Speaker of Lok Sabha
 
Answer & Explanation Answer: C) Governor of a State within his state

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

49 19913
Q:

Which of the statements given below are correct?

A) In 2017, Gary Cahill captained the Premier League team Chelsea.

B) In 2017, Jordan Henderson captained the Premier League team Liverpool.

C) Canada hosted the 2017 AIBA World Boxing Championships.

 

A) Only B B) Both A and B
C) Both B and C D) None of these
 
Answer & Explanation Answer: B) Both A and B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 19899