Questions

Q:

A bag contains 12 white and 18 black balls. Two balls are drawn in succession without replacement. What is the probability that first is white and second is black?

A) 6/145 B) 36/145
C) 18/95 D) 12/145
 
Answer & Explanation Answer: B) 36/145

Explanation:
 

The probability that first ball is white:
=C112C130=1230=25


Since, the ball is not replaced; hence the number of balls left in bag is 29.
Hence the probability the second ball is black:
=C118C129=1829


Required probability =(25)×(1829)


=36/145

Report Error

View Answer Report Error Discuss

10 8871
Q:

What would be the output of the following program?

main()

{

    extern int fun ( float );

    int a;

    a = fun ( 3. 14 );

    printf ("%d", a);

}

int fun ( aa )

float aa ;

{

     return ( (int) aa );

}

Answer

Error occurs because we have mixed the ANSI prototype with K & R style of function definition.


When we use ANSI prototype for a function and pass a float to the function it is promoted to a double. When the function accepts this double into a float a type mismatch occurs hence the error.


The remedy for this error could be to define the function as :


int fun (float aa)


{


  ....


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

9 8870
Q:

An objective of the National Food Security Mission is to increase the production of certain crops through area expansion and productivity enhancement in a sustainable manner in the identified districts of the country. What are those crops?

A) Rice and Wheat only B) Rice, Wheat and pulses only
C) Rice, Wheat, Pulses and oil seeds only D) Rice, Wheat, Pulses, oil seeds and vegetables
 
Answer & Explanation Answer: B) Rice, Wheat and pulses only

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

8 8866
Q:

what will be the output of the following code?

class Value
{
    public int i = 15;
}
public class Test
{
    public static void main(String argv[])
    {
        Test t = new Test();
        t.first();
    }
    public void first()
    {
        int i = 5;
        Value v = new Value();
        v.i = 25;
        second(v, i);
        System.out.println(v.i);
    }
    public void second(Value v, int i)
    {
        i = 0;
        v.i = 20;
        Value val = new Value();
        v =  val;
        System.out.println(v.i + " " + i);
    }
}

A) 15 0 2 B) 15 0 0
C) 15 20 0 D) 15 0 20
 
Answer & Explanation Answer: D) 15 0 20

Explanation:
Report Error

View Answer Report Error Discuss

4 8864
Q:

The headquarters of the coffee board of India is

A) Bangalore B) Mysore
C) Chennai D) Hyderabad
 
Answer & Explanation Answer: A) Bangalore

Explanation:

The Coffee Board of India is an organisation managed by the Ministry of Commerce and Industry of the government of India to promote coffee production in India. The headquarters of the coffee board of India is located in Bangalore, Karnataka.

 

The Coffee Board of India was established by an act of Parliament in 1942.

Report Error

View Answer Report Error Discuss

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

7 8858
Q:

Among the following States, which one was formed last

A) Andhra Pradesh B) Gujarat
C) Karnataka D) Punjab
 
Answer & Explanation Answer: A) Andhra Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

12 8853
Q:

The Indus valley people traded with the

A) Chinese B) Mesopotamians
C) Parthians D) Romans
 
Answer & Explanation Answer: B) Mesopotamians

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

12 8840
Q:

Hoshangabad is situated on the bank of the river

A) Godavari B) Narmada
C) Musi D) Mahanadi
 
Answer & Explanation Answer: B) Narmada

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

20 8838