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

Order of basicity of amines in gaseous state?

A) 2'> 1'> 3' > NH3 B) 3' > 2' > 1'> NH3
C) 1' > 2' > 3'> NH3 D) 2'> 3'> 1' > NH3
 
Answer & Explanation Answer: B) 3' > 2' > 1'> NH3

Explanation:

The order of basicity in ammonia is different in gaseous phases vs. aqueous phases due to hydrogen bonding.

 

So in gaseous phases it's the well known: 3' > 2' > 1'> NH3. Just so we're on the same page, this is due to the inductive effect of electron donating alkyl groups--they destabilize the lone pair on nitrogen atom, making nitrogen more basic.

 

But in aqueous phase, the order is slightly different: 2'> 1'> 3' > NH3.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

6 6412
Q:

Kilohertz is a unit which measures

A) Electromagnetic radio wave frequencies B) Electric resistance
C) Power used by a current of one ampere D) Voltage
 
Answer & Explanation Answer: A) Electromagnetic radio wave frequencies

Explanation:

The hertz (Hz) is defined as one cycle per second and is a SI unit of frequency. Here kilohertz is also a unit of frequency of waves and is defined as 1000 cycles per second. Radio waves are measured in kilohertz (KHz).

 

Kilohertz_is_a_unit_which_measures1561453991.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

6 6411
Q:

Teotihuacan Pyramids is located in which country?

A) Agentina B) Peru
C) Mexico D) Laos
 
Answer & Explanation Answer: C) Mexico

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

10 6410
Q:

What is so delicate that even mentioning it breaks it?

Answer

Silence is what is so delicate that even mentioning it breaks it.

Report Error

View answer Workspace Report Error Discuss

8 6407
Q:

In photography, the compound of nitrogen used is 

A) Potassium nitrate B) Silver nitrate
C) Ammonium carbonate D) Ammonium bicarbonate
 
Answer & Explanation Answer: B) Silver nitrate

Explanation:

Silver nitrate is the basic substance from which silver bromide is obtained. The photographic films are impregnated with the light sensitive AgBr.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

12 6390
Q:

Which three dynasties are known as "Muventar"?

A) Pandya, Chola, Chera B) Pallava, Chola, Pandya
C) Pallava, Chera, Pandya D) Pallava, Chola, Chera
 
Answer & Explanation Answer: A) Pandya, Chola, Chera

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

13 6383
Q:

When did all the trade unions, except Ahmedabad Textile Labor Union, be unified?

 

A) 1930   B) 1928
C) 1932   D) 1933
 
Answer & Explanation Answer: A) 1930  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 6380