Questions

Q:

What's the difference between the functions rand(), random(), srand() and randomize()?

Answer

rand()  returns a random number


random()  returns a random number in a specified range


srand()  initialise a random number generator with a given seed value


randomize()   initializes a random number generator with a random value based o time.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 4529
Q:

Solve the MathPuzzle Challenge ?

21728536_1414818525291914_2403155789974071436_n1505380084.jpg image

A) 4! B) 5!
C) 6! D) Can't be determined
 
Answer & Explanation Answer: D) Can't be determined

Explanation:

NUMERICAL has 9 positions in which 2, 4, 6, 8 are even positions.

And it contains 5 consonents i.e, N, M, R, C & L. Hence this cannot be done as 5 letters cannot be placed in 4 positions.

Therefore, Can't be determined.

Report Error

View Answer Report Error Discuss

Filed Under: Math Puzzles
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Bank Clerk , Bank PO

11 4528
Q:

Who of the following was the personal physician of Kanishka and also the author of a famous treatise on the Indian system of medicine

A) Charaka B) Susruta
C) Nagarjuna D) Jevaka
 
Answer & Explanation Answer: A) Charaka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

2 4527
Q:

Who was the first(1st) ODI captain for India?

A) Ajit Wadekar B) Bishen Singh Bedi
C) Nawab Pataudi D) Vinoo Mankad
 
Answer & Explanation Answer: A) Ajit Wadekar

Explanation:

who_was_the_1st_odi_captain_for_india1561445632.jpg image

Ajit Laxman Wadekar was an Indian international cricketer who played for the Indian national team between 1966 and 1974. He is from Mumbai.

Report Error

View Answer Report Error Discuss

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

1 4525
Q:

Who wrote the book 'Immortal India' published in 2017?

 

A) Amish Tripathi B) Chetan Bhagat
C) Vikram seth D) Aravind Adiga
 
Answer & Explanation Answer: D) Aravind Adiga

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

2 4522
Q:

Iam looking to estimate the cost on a project, but I don't want to spend a lot of time on a  detailed analysis. I really want a ballpark figure. What options do I have?

A) None - Cost estimating requires details to be accurate B) Use the cost of similar projects
C) Use a rule-of-thumb or per-square-foot estimate D) Add up the costs on the WBS
 
Answer & Explanation Answer: B) Use the cost of similar projects

Explanation:

Although it is less accurate than adding up individual costs from the WBS, it is less time consuming. The trade-off is accuracy. Answer A is incorrect because to do a more accurate cost estimate, you need to delve into details. Answer C is tempting also, and possible, except we don't really know if the project in question can use perametric modeling . Answer D is incorrect because it takes the most time, but it is most accurate.

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 4521
Q:

Logical puzzle

At a restaurant, how could you choose one out of three desserts with equal probability with the help of a coin? What if the coin is biased and the bias is unknown?

Answer

Our solution:


Toss the coin twice.
Let TH, HT and TT correspond to the three choices.
And if you get HH, just repeat (so it takes 8/3 tosses on average).


BIASED COIN

If the coin was biased, TH and HT would occur with equal probability.
So you could assign THHT, HTTH and THTH to the three choices, with other 4-toss outcomes rejected.
Or you could assign HTT, THT and TTH to the three choices, with other 3-toss outcomes rejected.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles

18 4521
Q:

Who has been selected for the 2016 National Geoscience Award in the field of geo-environmental studies? 

A) Keshav Krishna B) Ashok Kumar Singhvi
C) P.V. Joseph D) Vishnu Deo Sai
 
Answer & Explanation Answer: A) Keshav Krishna

Explanation:

Dr. A Keshav Krishna, a scientist at the National Geophysical Research Institute (NGRI), has been selected for 2016 National Geoscience Award by the Ministry of Mines in the field of Geo-environmental studies in applied geosciences.

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

7 4520