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

The idea of ‘Farr-i Izadi’, on which the Mughal kingship was based, was first developed by which one of the following Sufi saints?

A) Shihabuddin Suhrawardi B) Nizamuddin Auliya
C) Ibn al-Arabi D) Bayazid Bistami
 
Answer & Explanation Answer: A) Shihabuddin Suhrawardi

Explanation:

Abul Fazl placed Mughal kingship as the highest station in the hierarchy of objects receiving light emanating from God (farr-i izadi). Abul Fazl was inspired by a famous Iranian Sufi, Shihabuddin Suhrawardi who first developed this idea. According to this idea, there was a hierarchy in which the Divine Light was transmitted to the king who then became the source of spiritual guidance for his subjects.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

2 4826
Q:

Source of river Mahanadi ?

A) Mahabaleshwar B) Trimbak Plateau
C) Dandakaranya D) None
 
Answer & Explanation Answer: C) Dandakaranya

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

9 4822
Q:

Which one of the following can be oxidised to the corresponding carbonyl compound:

A) 2-methyl-2-hydroxy propane B) 2-hydroxy propane
C) o-Nitrophenol D) Phenol
 
Answer & Explanation Answer: B) 2-hydroxy propane

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE

12 4821
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 4820
Q:

By tradition, when does the presidential campaign begin?

A) When a candidate is officially nominated at the national convention B) With the New Hampshire primary
C) In September, following the national convention D) After a candidate has gained enough electoral votes in the primaries
 
Answer & Explanation Answer: A) When a candidate is officially nominated at the national convention

Explanation:

When a candidate is officially nominated at the national convention, then the presidential campaign begins.

Report Error

View Answer Report Error Discuss

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

1 4820
Q:

How many languages have been listed in the 8th Schedule of the Constitution of India?

A) 14 B) 15
C) 18 D) 25
 
Answer & Explanation Answer: C) 18

Explanation:

The 1950 Constitution had includeed 14 languages in the 8th Schedule. Sindhi was added seventeen years later, by the Constitution Act of 1967. Three more viz, Konkani, Nepali and Manipuri were added in 1992 by the 71st Amendment Act.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

9 4819
Q:

Who is known as inventor of World Wide Standard Time ?

A) Sandford Fleming B) Fredrich
C) Williamson D) James Broot
 
Answer & Explanation Answer: A) Sandford Fleming

Explanation:

Sir Sandford Fleming, (January 7, 1827 – July 22, 1915) was a Scottish Canadian engineer and inventor. Born and raised in Scotland, he emigrated to colonial Canada at the age of 18. He proposed worldwide standard time zones, designed Canada's first postage stamp.

Report Error

View Answer Report Error Discuss

Filed Under: Inventions
Exam Prep: Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

11 4818