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

Name the first e-commerce company that will become the member of Advertising Standards Council of India (ASCI)? 

A) Amazon B) Snapdeal
C) Paytm D) Flipkart
 
Answer & Explanation Answer: C) Paytm

Explanation:

The country’s fast-growing e-commerce industry will finally mark its presence at the Advertising Standards Council of India (ASCI), with Paytm set to become a member of the self-regulatory voluntary organisation next month i.e April 2017.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 6851
Q:

Old name of Mahabharata?

A) Jai Samhitha B) Vrahat Katha
C) Rajatarangini D) Saritsagar Katha
 
Answer & Explanation Answer: A) Jai Samhitha

Explanation:

How the name changed has so many stories. One of them is

In the beginning, Mahabharata has 8800 Slokas and after that it reached to 24000 Slokas. And then it was named as The Great Bharata i.e, Mahabharata.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: AIEEE
Job Role: Analyst

24 6842
Q:

Malabar is covered by which types of vegetation

A) Mountain forest B) Thorn
C) Tropical deciduous D) Tropical evergreen
 
Answer & Explanation Answer: D) Tropical evergreen

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography

13 6841
Q:

Can you slove this Maths Puzzle?

maths_puzzle1537500715.jpg image

A) 12 B) 6
C) 3 D) 1
 
Answer & Explanation Answer: B) 6

Explanation:

In the given puzzle, the logic behind is

9 = 72 => 9 x 8 = 72

8 = 56 => 8 x 7 = 56

7 = 42 => 7 x 6 = 42

6 = 30 => 6 x 5 = 30

5 = 20 => 5 x 4 = 20

 

Similarly,

4 = 12 => 4 x 3 = 12

3 = 6 => 3 x 2 = 6

Report Error

View Answer Report Error Discuss

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

19 6840
Q:

The Green Revolution in India was the outcome of the efforts of who amongst the following?

A) Dr MS Swaminathan B) Dr C Rangarajan
C) KV Kamath D) Dr Rakesh Mohan
 
Answer & Explanation Answer: A) Dr MS Swaminathan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

18 6839
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 6836
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 6834