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

Answer the Following Puzzle.

Number Puzzles Questions and Answers

A) 4 B) 7
C) 9 D) 11
 
Answer & Explanation Answer: A) 4

Explanation:

Working in columns, the sum of the numbers in each column is always 14

 

Working in columns, the sum of the numbers in each column is always 14. - See more at: https://www.theonlinetestcentre.com/number-puzzles2.html#1
Report Error

View Answer Report Error Discuss

Filed Under: Number Puzzles

25 4805
Q:

Find the logic in the given puzzle?

Find_The_Logic_In_The_Question1565001003.jpg image

Answer

Given that, a woman has seven children. Half of them are boys. 


Half of 7 is 3.5 which is not possible. And it is possible in only one way that all the children must be boys. Then half of them are boys.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

47 4803
Q:

IP address is currently

A) 4 bytes long B) available in plenty
C) 6 bytes long D) not assigned as it is all used up
 
Answer & Explanation Answer: A) 4 bytes long

Explanation:

IP address is currently 4 bytes long. An IP address is written in "dotted decimal" notation, which is 4 sets of numbers separated by period each set representing 8-bit number ranging from (0-255).

Report Error

View Answer Report Error Discuss

1 4803
Q:

What group of animals is called a congress?

A) Lions B) Baboons
C) Tigers D) Sheep
 
Answer & Explanation Answer: B) Baboons

Explanation:

what_group_of_animals_is_called_a_congress1538029838.jpg image

Group of baboons together is called a congress.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

4 4799
Q:

First Afghan War took place in the year

A) 1849 B) 1839
C) 1858 D) 1869
 
Answer & Explanation Answer: B) 1839

Explanation:
      • The First Anglo-Afghan War also known as Disaster in Afghanistan was fought between British imperial India and The Emirate of Afghanistan from 1839 to 1842.
      • A British-Indian force attacks Ghazni fort during the First Afghan War, 1839.
Report Error

View Answer Report Error Discuss

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

13 4797
Q:

The Government of India in order to provide some relief to the exporters announced a relief package of Rs.______

A) 325 Crores B) 250Crores
C) 400Crores D) 500 Crores
 
Answer & Explanation Answer: A) 325 Crores

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

2 4795
Q:

' Samjhauta Express ' runs between which of the following two stations

A) New Delhi - Wagah B) New Delhi - Lahore
C) Amritsar - Wagah D) Amritsar - Lahore
 
Answer & Explanation Answer: B) New Delhi - Lahore

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

9 4795