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 6363
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 6360
Q:

Improve the bracketed part of the sentence.

 

I went to sleep last night, (almost as soon as) my head hit the pillow.

 

A) no sooner then B) as quickly as
C) almost as quickly as D) no improvement
 
Answer & Explanation Answer: D) no improvement

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

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

Buying and selling goods over the internet is called

A) Digital Marketing B) E - Commerce
C) Net Banking D) Onine Shopping
 
Answer & Explanation Answer: B) E - Commerce

Explanation:

Buying and selling goods over the internet is called E - Commerce.

 

buying_and_selling_goods_over_the_internet_is_called1553690676.png image

Report Error

View Answer Report Error Discuss

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

6 6351
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 6349
Q:

Metals can be given different shapes according to our needs because they posses the properties of

 

A) Conductivity and sonorosity B) Malleability and ductility
C) Malleability and sonorosity D) Ductility and conductivity
 
Answer & Explanation Answer: B) Malleability and ductility

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 6348
Q:

Rearrange the parts of the sentence in correct order.

 

It was never meant

P-upon fundamental rights
Q-to become a tool
R-to broaden the scope of restrictions

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 6347