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 5319
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 5317
Q:

Rearrange the parts of the sentence in correct order.

 

The Finance Minister, under

P­-whose supervision this
Q­-has not made any definite statement
R­-has taken place,

A) RPQ B) QRP
C) PRQ D) QPR
 
Answer & Explanation Answer: C) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 5315
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 5309
Q:

Which of the statements given below are correct?

1. The author of the novel 'Ancillary Justice' is Charles Stross.
2. The author of the novel 'Air' is Ann Leckie.
3. The author of the novel 'Mission Earth' is L. Ron Hubbard.

A) 1 and 2 B) 2 and 3
C) 1 and 3 D) 1, 2 and 3
 
Answer & Explanation Answer: A) 1 and 2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

0 5309
Q:

Padma Shri - Dr Sundaram (S) Ramakrishnan passed away recently. What was his profession?

 

A) Scientist B) Politician
C) Engineer D) Doctor
 
Answer & Explanation Answer: A) Scientist

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams

1 5305
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