Searching for "u"

Q:

Give an example for the use of volatile keyword in c++ ?

Answer

Most of the times compilers will do optimization to the code to speed up the program. For example in the below code,


int k = 15;
while( k == 15)


{
// Do something
}


compiler may think that value of 'k' is not getting changed in the program and replace it with 'while(true)', which will result in an infinite loop. In actual scenario, the value of 'k' may be getting updated from outside of the program.


Volatile keyword is used to tell compiler that the variable declared using 'volatile' may be used from outside the current scope, so that compiler won't apply any optimization. This matters only in case of multi-threaded applications.


In the above example if variable 'k' was declared using volatile, compiler will not optimize it. In shot, value of the volatile variables will be read from the memory location directly.

Report Error

View answer Workspace Report Error Discuss

Q:

Moortidevi Award is presented for contribution to _____

A) Literature B) Arts
C) Science D) Peace
 
Answer & Explanation Answer: A) Literature

Explanation:

The Moortidevi Award is an annual literary award in India presented by the Bharatiya Jnanpith organization for a work which emphasizes Indian philosophy and culture. In 2003, the prize included an amount of Rs. 1 lakh (US$1,500), a plaque, a statue of Saraswati, and a shawl. The cash prize was raised to Rs. 2 lakh (US$3,000) in the year 2011 and to Rs.4 lakh (US$5,900) in the year 2013.L

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

Q:

Who was the first posthumous recipient of Bharat Ratna  ?

A) B.R. Ambedkar B) Lal Bahadur Shastri
C) K. Kamraj D) M.G. Ramachandran
 
Answer & Explanation Answer: B) Lal Bahadur Shastri

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

Q:

Which state government has inaugurated the upgraded version of police helpline Namma 100, where police officials will be deputed within 15 minutes to the spot of emergency  ?

A) Karnataka B) Telangana
C) Tamil Nadu D) Madhya Pradesh
 
Answer & Explanation Answer: A) Karnataka

Explanation:

Karnataka CM Siddaramaiah has inaugurated the upgraded version of police helpline Namma 100, where police officials will be deputed within 15 minutes to the spot of emergency, for Bengaluru. Based on the model adapted in London, which has helpline 999, and USA, where 911 helpline operates, Namma 100 helpline allows the public to access several facilities on a single number.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

Q:

Eminent poet, litterateur and Jnanpith awardee C. Narayana Reddy who passed away in June 2017, he was a famous poet of _________ and ____________ language.

A) Kannada and Hindi B) Telugu and Malayalam
C) Hindi and Urdu D) Telugu and Urdu
 
Answer & Explanation Answer: D) Telugu and Urdu

Explanation:

Eminent poet, litterateur and Jnanpith awardee C. Narayana Reddy, popularly known as CiNaRe, passed away.  CiNaRe was known for his use of Telugu in its pure form, and would not be swayed by filmmakers on the use of the language. He was awarded the Padma Shri in 1977 and the Padma Bhushan in 1992. His compilation of poems, titled ‘Viswambhara’, got him the Jnanpith award in 1988. In 1997, he was nominated as a Member of the Rajya Sabha.

Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

Q:

The book “Indira Gandhi – A life in Nature”, authored by _____________.

A) Jairam Ramesh B) Anand Sharma
C) Ghulam Nabi Azad D) Chetan Bhagath
 
Answer & Explanation Answer: A) Jairam Ramesh

Explanation:

The book “Indira Gandhi – A life in Nature”, was launched by Congress president Sonia Gandhi at the Indira Gandhi Memorial in the presence of former ministers, bureaucrats and environmentalists who worked closely with her to frame some of country’s landmarks wildlife and environment laws. Renowned mountaineer Capt Manmohan Singh Kohli recalled how Gandhi once told him “please call me as a daughter of the mountains”. The book has been written by former Union minister Jairam Ramesh and it has been published by Simon & Schuster.

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams
Job Role: Bank PO

Q:

Indian Naval Ship _________is on an overseas deployment to the South East Asia and Southern Indian Ocean.

A) INS Shivalik B) INS Talwar
C) INS Sahyadri D) INS Kamotra
 
Answer & Explanation Answer: C) INS Sahyadri

Explanation:

In pursuance of India’s Act East policy, Indian Naval Ship Sahyadri is on an overseas deployment to the South East Asia and Southern Indian Ocean. The ship would be on a port visit to Moresby from June 12 to 15. The visit of the Indian Naval Ships seeks to underscore India’s peaceful presence and solidarity with friendly and harmonious countries towards ensuring good order in the maritime domain and to strengthen existing bonds between Papua New Guinea and India.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

Q:

World’s largest floating Solar Farm launched in ____________.

A) Japan B) China
C) Russia D) France
 
Answer & Explanation Answer: B) China

Explanation:

China flicked the switch on the world’s largest floating solar energy plant.  The massive waterborne plant is expected to generate 40 megawatts at one time and could supply electricity for over 15,000 homes. The pioneering project, located in eastern China, is thought to cement China’s status as a top producer of solar energy in the world.  The plant has been built in Huainan city, Anhui Province, by Sungrow Power Supply, a Chinese company specialised in renewable energy.

Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO