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

A CD-ROM disk  _______

A) cannot be erased and rewritten B) has more storage capacity than a CD-R
C) holds less data than a floppy disk D) Can be written only once
 
Answer & Explanation Answer: A) cannot be erased and rewritten

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

6 6878
Q:

Cosmetic powders are prepared from

A) Talc B) Serpentine
C) Asbestos D) Gypsum
 
Answer & Explanation Answer: A) Talc

Explanation:

Cosmetic powders are prepared from Talc.

Face powder is a cosmetic powder applied to the face to set a foundation after application. It can also be reapplied throughout the day to minimize shininess caused by oily skin. There is translucent sheer powder, and there is pigmented powder.

Report Error

View Answer Report Error Discuss

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

11 6877
Q:

The blue colour of the clear sky is due to 

A) Diffraction of light B) Dispersion of light
C) Reflection of light D) Refraction of light
 
Answer & Explanation Answer: B) Dispersion of light

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

22 6876
Q:

The Ghodazari Wildlife Sanctuary (GWS) will come up in which state?

A) Maharashtra B) Karnataka
C) Tamil Nadu D) Odisha
 
Answer & Explanation Answer: A) Maharashtra

Explanation:

The Maharashtra Government has recently approved Ghodazari Wildlife Sanctuary in Chandrapur district as a new wildlife sanctuary in the state.

Report Error

View Answer Report Error Discuss

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

16 6875
Q:

The bonds in the compound MgSO4 can be described as

A) covalent B) ionic
C) both A & B D) None of the above
 
Answer & Explanation Answer: C) both A & B

Explanation:

Here the given compound is MgSO4.

In the given compound, Sulphur (S) and Oxygen (O) are two non metals and Magnesium (Mg) is a metal.

In this compound, Sulphur and Oxygen reacts to form covalent bond and the metal Magnesium reacts with both non metals Sulphur and Oxygen to form ionic bonds.

 

Hence, in the given compound MgSO4 there are both covalent and ionic bonds.

Report Error

View Answer Report Error Discuss

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

1 6872
Q:

Who amongst the following is the Secretary General of UNO

A) Koffi Annan B) Shashi Tharoor
C) Gordon Drown D) Hugo Chavez
 
Answer & Explanation Answer: A) Koffi Annan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

2 6861
Q:

Solve this logical Math puzzle?

logical_thinking_puzzle1536132282.jpg image

Answer

Let that something be 'x'


From the given data,


x + x/5 = 21


5x + x/5 = 21


6x = 21 x 5


=> x = 17.5


 


Hence, that something is x = 17.5.

Report Error

View answer Workspace Report Error Discuss

9 6857