Searching for "he"

Q:

From a deck of 52 cards, a 5 card hand is dealt.How many distinct hands can be formed if there are atleast 2 queens?

A) 103336 B) 120000
C) 108336 D) 108333
 
Answer & Explanation Answer: C) 108336

Explanation:

The total possible cases would be a 5 card hand with no restrictions :52C5 5

 

The unwanted cases are:

 

no queens(out of 48 non-queens cards we get 5) 48C5

 

only 1 queen(out of 4 queens we get 1,and out of 48 non-queens we get 4) 4C1*48C4

 

Therefore,52C5-(48C5+4C1*48C4) = 108336

Report Error

View Answer Report Error Discuss

Q:

From a deck of 52 cards, a 5 card hand is dealt.How may distinct five card hands are there if the queen of spades and the four of diamonds must be in the hand?

A) 52C5 B) 50C3
C) 52C4 D) 50C4
 
Answer & Explanation Answer: B) 50C3

Explanation:

If the queen of spades and the four of diamonds must be in hand,we have 50 cards remaining out of which we are choosing 3.

 

So, 50C3

Report Error

View Answer Report Error Discuss

Q:

What is the default return value of a function?

A) int B) char
C) string D) None of the above
 
Answer & Explanation Answer: A) int

Explanation:

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.

Report Error

View Answer Report Error Discuss

Q:

From a deck of 52 cards, a 7 card hand is dealt.How many distinct hands are there if the hand must contain 2 spades and 3 diamonds ?

A) 7250100 B) 7690030
C) 7250000 D) 3454290
 
Answer & Explanation Answer: A) 7250100

Explanation:

There are 13 spades,we must include 2: 13C2

 

There are 13 diamonds,we must include 3: 13C3

 

Since we can't have more than 2 spades and 3 diamonds,the remaining 2 cards must be pulled out from the 26 remaining clubs and hearts : 26C2

 

Therefore,13C2*13C3*26C2 = 7250100

Report Error

View Answer Report Error Discuss

Q:

What is the difference between oracle,sql and sql server?

Answer

  • Oracle is based on RDBMS.

  • SQL is Structured Query Language.

  • SQL Server is another tool for RDBMS provided by MicroSoft


 

Report Error

View answer Workspace Report Error Discuss

Q:

Which among the following keys are used to identify each row of the table uniquely?

A) Primary key B) Unique key
C) Partial key D) None of the above
 
Answer & Explanation Answer: A) Primary key

Explanation:

Primary key helps us to identify a row uniquely in a relation

Report Error

View Answer Report Error Discuss

Q:

A school committee of 5 is to be formed from 12 students.How many committees can be formed if John must be on the committee?

A) 11P4 B) 11C4
C) 11P5 D) 11C5
 
Answer & Explanation Answer: B) 11C4

Explanation:

If John must be on the committee,we have 11 students remaining,out of which we choose 4. So,11C4

Report Error

View Answer Report Error Discuss

Q:

If there are 17 randomly placed dots on a circle,how many lines can you form using any 2 dots?

A) 126 B) 130
C) 136 D) 120
 
Answer & Explanation Answer: C) 136

Explanation:

17C2 = 136 (combination)

Report Error

View Answer Report Error Discuss