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 6415
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

2 6411
Q:

What causes brownian motion in colloids?

A) coagulation of particles and the dispersed phase B) erratic flashes of light
C) molecules of the dispersion medium colliding with dispersed phase particles D) All the above
 
Answer & Explanation Answer: C) molecules of the dispersion medium colliding with dispersed phase particles

Explanation:

When their is a colloid in the solution, then it will show the Brownian movement, such as dust particle in the air will show the Brownian movement.

 

Hence, Brownian movement arises due to the impact of the molecules of the dispersion medium with the colloidal particles. It has been postulated that the impact of the molecules of dispersion medium on the colloidal particles are unequal.

 

This leads to the zig-zag (random) motion of the colloidal particles.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO

6 6411
Q:

Today __________ are seen as personal accessory - portable, powerful and simple to operate.

 

A) e-mail B) e-business  
C) e-content   D) Computers
 
Answer & Explanation Answer: D) Computers

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

2 6406
Q:

Thoubal Multipurpose Project has been inaugurated in which Indian state?

 

A) Bihar B) Manipur
C) Assam D) Mizoram
 
Answer & Explanation Answer: B) Manipur

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 6405
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 6396
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 6395
Q:

Which of the statements given below are correct?

A) Lewis Hamilton won the Formula One 2017 United States Grand Prix.

B) Sebastian Vettel won the Formula One 2017 Singapore Grand Prix.

C) Garbine Muguruza won the Tennis 2017 French Open Women's Singles.

A) Only A B) Only B
C) A and C D) A, B and C
 
Answer & Explanation Answer: A) Only A

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 6394