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

Israel’s Rafael Defense Systems ltd has formed a joint venture with ________ to produce anti-tank guided missiles for the Indian armed forces.

A) Goa Shipyard B) Hindustan Aeronautics Limited
C) Kalyani Group D) Hindustan Aeronautics Limited
 
Answer & Explanation Answer: C) Kalyani Group

Explanation:
Report Error

View Answer Report Error Discuss

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

9 6761
Q:

When you travel in certain parts of India, you will  notice red soil. What is the main reason for this colour?

A) Abundance of magnesium B) Accumulated humus
C) Presence of ferric oxides D) Abundance of Phosphates
 
Answer & Explanation Answer: C) Presence of ferric oxides

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

12 6760
Q:

A famous hill station in Uttar pradesh is...........

A) Darjeeling B) Dalhousie
C) Kulu D) Nainital
 
Answer & Explanation Answer: D) Nainital

Explanation:

Darjeeling is in West Bengal and other two are in Himachal Pradesh.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

18 6760
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 6760
Q:

Have you ever performed ECG and what it requires?

Answer

By asking this the interviewer wants to know that do you have any touch with ECG or not.


 


Sample Answer :


ECG is nothing but a Electrocardiogram. Yes, i performed ECG test to some patients when i worked as an intern at a named cardiologist.


ECG procedure, or an ECG scan, an ECG test measures the electrical activity of the heart to ensure that it is functioning properly. To perform an electrocardiogram an ECG monitor is required. An ECG monitor, device or machine is required to perform an electrocardiogram and provide insight into whether your heart is working normally or not.

Report Error

View answer Workspace Report Error Discuss

5 6759
Q:

The memory unit is one part of

A) Input Device B) Central Processing Unit
C) Control Unit D) Output device
 
Answer & Explanation Answer: B) Central Processing Unit

Explanation:

In a computer, memory is one part of Central processing unit i.e, CPU.

Report Error

View Answer Report Error Discuss

14 6758
Q:

Missing letters puzzle

Answer

Answer:  K


Explanation:  In each row, the product of the left and right hand numbers equals the sum of the numerical values of the three letters.

Report Error

View answer Workspace Report Error Discuss

31 6755