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

 For what purposes are views used?

A) To hide rows only B) To hide columns only
C) To hide complicated SQL statements only D) All of the above are uses for SQL views.
 
Answer & Explanation Answer: D) All of the above are uses for SQL views.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

22 20052
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 20042
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 20031
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 20021
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 19999
Q:

What resources are used when a thread is created? How do they differ from those when a process is created?

Answer

When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.

Report Error

View answer Workspace Report Error Discuss

36 19965
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 19944