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 20174
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 20099
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 20063
Q:

Which of the statements given below are correct?

 

A) Max Verstappen won the Formula One 2017 Singapore Grand Prix.

B) In 2017, Mohamed Salah played for the Premier League team Liverpool.

C) Jelena Ostapenko won the Tennis 2017 Australian Open Women's Singles.

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 20057
Q:

What value should come in place of question mark (?) in the following question?

442 + 232 = (?)2 + 44

A) 47 B) 65
C) 52 D) 41
 
Answer & Explanation Answer: A) 47

Explanation:

1936 + 529 = ?2 + 256 2465 = ?2 + 256 ?2 = 2465 - 256 ?2 = 2209 ?=47

Report Error

View Answer Report Error Discuss

0 20040
Q:

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

Quantity I: the unit digit in (6817)754

Quantity II: the unit digit in (365×659×771)

A) Quantity I > Quantity II B) Quantity I < Quantity II
C) Quantity I ≥ Quantity II D) Quantity I ≤ Quantity II
 
Answer & Explanation Answer: A) Quantity I > Quantity II

Explanation:
Report Error

View Answer Report Error Discuss

1 20020
Q:

Which of the statements given below are correct?

A) Garbine Muguruza won the Tennis 2017 French Open Women's Singles.

B) Rafael Nadal won the Tennis 2017 US Open Men's Singles.

C) Valtteri Bottas won the Formula One 2017 Brazilian Grand Prix.

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 20012
Q:

October 24 is observed as

A) World Vegetarian Day B) United Nations Day
C) World Immunization Day D) World Environment Day
 
Answer & Explanation Answer: B) United Nations Day

Explanation:
Report Error

View Answer Report Error Discuss

48 19967