Questions

Q:

We want to round off x, a Float to an Int value. The correct way to do so would be

A) Y = ( int ) ( x + 0.5 ) ; B) Y = int ( x + 0.5) ;
C) Y = ( int ) x + 0.5; D) Y = ( int ) ( ( int ) x + 0.5 )
 
Answer & Explanation Answer: A) Y = ( int ) ( x + 0.5 ) ;

Explanation:

Rounding off a value means replacing it by a nearest value that is approximately equal or smaller or greater to the given number.

 

y = (int)(x + 0.5); here x is any float value. To roundoff, we have to typecast the value of x by using (int)

 

Example:

 

#include

 

int main ()

 

{

 

  float x = 2.6;

 

  int y = (int)(x + 0.5);

 

  printf ("Result = %d\n", y );

 

  return 0;

 

}

 

Result : 3

Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 5320
Q:

The President of India, Shri Pranab Mukherjee received the first copy of a book“President Pranab Mukherjee – A Statesman” on 2ndJuly 2017 from ________ at a function held at Rashtrapati Bhavan.

A) Sumitra Mahajan B) Arun Jaitley
C) Hamid Ansari D) Narendra Modi
 
Answer & Explanation Answer: D) Narendra Modi

Explanation:

The President expressed his gratitude to The Statesman for bringing out a photo essay on the 13th Presidency. He appreciated the wonderful photos taken by Shri Varun Joshi from The Statesman that feature in the photo essay. Prime Minister, Shri Narendra Modi said that the photo essay was important from the historical perspective.

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

18 5317
Q:

Full convertibility of a rupee means ?

A) Determination of rate of exchange between rupee and foreign currencies freely by the market forces of demand and supply B) Repayment of loans in terms of rupees
C) Payment for imports in terms of rupees D) Purchase of foreign exchange for rupees freely
 
Answer & Explanation Answer: A) Determination of rate of exchange between rupee and foreign currencies freely by the market forces of demand and supply

Explanation:
Report Error

View Answer Report Error Discuss

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

5 5316
Q:

Improve the bracketed part of the sentence.

Any bad habit must be nipped (on) the bud.

A) on B) in
C) off D) no improvement
 
Answer & Explanation Answer: B) in

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 5314
Q:

Which of the statements given below are correct?

 

A) Grigor Dimitrov won the Tennis 2017 ATP World Tour Finals Men's Singles.

B) In 2017, Sergio Aguero played for the Premier League team Liverpool.

C) In 2017, Rohit Sharma captained the IPL team Mumbai Indians.

 

A) Both A and C B) Both A and B
C) A, B and C D) None of these
 
Answer & Explanation Answer: A) Both A and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 5309
Q:

Which award the Electronic Vaccine Intelligence Network (EVIN) app won in 2017 ?

A) Padma Award B) GSMA Asia Mobile Award
C) Best app of the year D) National Award
 
Answer & Explanation Answer: B) GSMA Asia Mobile Award

Explanation:
Report Error

View Answer Report Error Discuss

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

9 5308
Q:

Light - year measures which of the following ?

A) Intensity of Light B) Mass
C) Distance D) Time
 
Answer & Explanation Answer: C) Distance

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

11 5304
Q:

Terrestrial life-forms require ____________ water for life processes.

 

A) fresh B) saline
C) salt D) sour
 
Answer & Explanation Answer: A) fresh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

1 5303