Questions

Q:

What do the functions atoi(), itoa() and gcvt () do? Show how would you use them in a program.

Answer

atoi()         Converts a string to an integer.


itoa()         Convert an integer to a string


gcvt()        Converts a floating-point number to a string


 


#include "stdlib.h"


main()


{


      char s[] = "12345";


      char buffer [15], string[20];


      int i;


      


      i = atoi (s);


      printf("\n%d",i);


 


       gcvt (20.141672, 4, buffer);


       printf ("\n%s", buffer);


 


       itoa(15, string,2);


        printf ("\n%s", string);


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 6366
Q:

Purushasukta is founded in the

A) Bhagavad Gita B) Rigveda
C) Manusmriti D) Athrvaveda
 
Answer & Explanation Answer: B) Rigveda

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

9 6366
Q:

9 letter word if you lose it you die.

It is a 9 letter word - 123456789,

If u lose it you die,

If you have 234, you can 1234,

56 is one type of disease,

89 indicates exact location & time,

2 & 7 are same letter, 3 & 8 are same letter, 5 & 9 are same letter.

 

Guess the word?

Answer

The required 9 letter word is HEARTBEAT.


If we lose the heartbeat, we die. 234 is EAR, if we have EAR we can 1234, i.e, HEAR.


56 is a type of disease is TB.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

10 6361
Q:

The product of mass of a body and the acceleration produced in it equals the ___________ acting on it.

 

A) force B) impulse
C) torque D) kinetic energy
 
Answer & Explanation Answer: A) force

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 6360
Q:

What is the first step in the refining of petroleum?

A) Distillation B) Cooling
C) Drilling D) Cracking
 
Answer & Explanation Answer: A) Distillation

Explanation:

The first step in the refining of petroleum is distillation i.e,  the fractionation of crude oil in atmospheric and vacuum distillation towers.

The first process petroleum refinery is known as distillation. In this process, crude oil is heated and fed into a distillation column. As the temperature of the crude oil in the distillation column rises, the crude oil separates itself into different components, called "fractions." The fractions are then captured separately. Each fraction corresponds to a different type of petroleum product, depending on the temperature at which that fraction boils off the crude oil mixture.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

18 6354
Q:

What kind of tree can you carry in your hand?

Answer

Palm tree.

Report Error

View answer Workspace Report Error Discuss

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

13 6352
Q:

A girl is blind, deaf, dumb and uneducated too.

A_girl_was_blind,_deaf_and_dumb1532339026.jpg image

Answer

It's a logic question. The answer can be


Boy can propose because he is not blind,deaf n dumb. It was not mentioned that the girl have to understand his proposal.

Report Error

View answer Workspace Report Error Discuss

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

17 6352
Q:

Coral Reefs in India can be found in

A) Rameshwaram B) Trivandrum
C) The coast of Orissa D) Waltair
 
Answer & Explanation Answer: A) Rameshwaram

Explanation:

In India Coral Reefs can be found in Rameshwaram.

 

Coral reefs in India are one of the most ancient and dynamic ecosystems of India. The coral reefs not only provide a sanctuary to a myriad of marine life but also play a key role in protecting the coastline from erosion.

Coral reefs are diverse underwater ecosystems held together by calcium carbonate structures secreted by corals. Coral reefs are built by colonies of tiny animals found in marine water that contain few nutrients.

Report Error

View Answer Report Error Discuss

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

17 6350