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

Which of the following terms follows the trend of the given list?

CBABABAB, BACBABAB, BABACBAB,BABABACB,BCABABAB ___________

A) BABABCAB B) CBABABAB
C) BACBABAB D) BABCABAB
 
Answer & Explanation Answer: D) BABCABAB

Explanation:
Report Error

View Answer Report Error Discuss

1 5321
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:

A Roman walks into a bar. He holds up two fingers and says 'five beers, please'.

How it is possible?

Answer

The shape of two fingers shown up will be in 'V' and it represents in Roman letters, a number 5.


he shape of two fingers shown up will be in V.jpg image

Report Error

View answer Workspace Report Error Discuss

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

14 5311
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:

GDP can be calculated by summing

A) Consumption, investment, government purchases, and net exports B) Consumption, investment, government spending, and imports
C) Consumption, investment, government purchases, and imports D) Consumption, investment, wages, and rent
 
Answer & Explanation Answer: A) Consumption, investment, government purchases, and net exports

Explanation:

Gross domestic product (GDP) is the monetary value of all the finished goods and services produced within a country's borders in a specific time period.

Simply, GDP is a broad measurement of a nation’s overall economic activity. 

It is calculated by summation of Consumption, investment, government purchases, and net exports.

Report Error

View Answer Report Error Discuss

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

5 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:

Which of the following is Not an Operating System?

A) UNIX B) Windows NT
C) C++ D) DOS
 
Answer & Explanation Answer: C) C++

Explanation:

C++ is not an Operating System.

 

An Operating System is a collection of system programs that manages all the other programs application programs in a computer as well as the allocation and use of hardware resources such as the CPU, Memory and the Hard Disk Drive.

It acts as an interface between the hardware and the user level program.

It controls and facilitates the overall operation of a computer. 

 

Here

UNIX : UNIX is a popular multi-user, multitasking operating system (OS) developed at Bell Labs.

 

Windows NT : Windows NT is a family of operating systems produced by Microsoft, the first version of which was released in July 1993.

 

DOS : DOS is Disk Operating System. The term DOS can refer to any operating system.

 

C++ : C++ is a programming language and computing platform.

 

Hence, C++ is not an Operating System.

Report Error

View Answer Report Error Discuss

8 5300