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

Between small and large human intestine which one is longer?

 

A) small intestine B) Large intestine
C) Both are equal in length D) Depends on male or female
 
Answer & Explanation Answer: A) small intestine

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions
Exam Prep: Bank Exams

1 6386
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 6381
Q:

India has donated a 'Digital cobalt therapy machine' developed by BARC, to which country?

 

 

A) Madagaskar B) Mali
C) Malaysia D) Maldives
 
Answer & Explanation Answer: A) Madagaskar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 6378
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 6376
Q:

Point out which from the following is NOT a right enumerated in the Constitution of India but has been articulated by the Supreme Court to be a Fundamental Right

A) Right to life B) Equality of opportunity in matters of public employment
C) Protection of personal liberty D) Right to permanent housing
 
Answer & Explanation Answer: D) Right to permanent housing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

8 6375
Q:

How do you go about familiarizing yourself with the products you sell?

Answer

Retail products often change seasonally.  Can you quickly update yourself on all the new information so you can be prepared to sell the new inventory to customers as soon as it lands on the shelf


 

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

6 6372
Q:

Which shows the order in which vertebrates evolved?

 

 

A) fish, reptiles, amphibians, birds, mammals   B) amphibians, fish, reptiles, birds, mammals  
C) amphibians, fish, birds, reptiles, mammals   D) fish, amphibians, reptiles, birds, mammals
 
Answer & Explanation Answer: D) fish, amphibians, reptiles, birds, mammals

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

3 6370