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

Which of the following places is famous for Chikankari work, which is a traditional art of embroidery?

A) Hyderabad B) Lucknow
C) Mysore D) Jaipur
 
Answer & Explanation Answer: B) Lucknow

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

96 6363
Q:

Which of the statements given below are correct?


A) In 2017 Pro Kabaddi League, Sandeep Narwal played for Bengaluru Bulls.


B) In 2017, Dani Pedrosa raced in MotoGP for Honda.


C) In 2017, Glenn Maxwell captained the IPL team Kolkata Knight Riders.

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 6361
Q:

Which of the statements given below are correct?

 

A) Rafael Nadal won the Tennis 2017 Wimbledon Championships Men's Singles.


B) Aryan Tari won the 2017 World Junior Chess Championship.


C) Viktor Axelsen won the Men's Singles Badminton 2017 BWF World Championships.

 

A) Only A B) Only B
C) Both B and C D) None of these
 
Answer & Explanation Answer: C) Both B and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

2 6360
Q:

9 letter word if you lose it you die.

It is a 9 letter word - 123456789,

If u lose it you die,

If you have 234, you can 1234,

56 is one type of disease,

89 indicates exact location & time,

2 & 7 are same letter, 3 & 8 are same letter, 5 & 9 are same letter.

 

Guess the word?

Answer

The required 9 letter word is HEARTBEAT.


If we lose the heartbeat, we die. 234 is EAR, if we have EAR we can 1234, i.e, HEAR.


56 is a type of disease is TB.


 

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

10 6360
Q:

Which of the following is the strongest base?

A) LiCH3 B) LiF
C) LiOH D) LiNH2
 
Answer & Explanation Answer: A) LiCH3

Explanation:

The stability of the ions is determined by the energy of the lone pairs. Carbon has the least effective nuclear charge (Zeff) and so the lone pair on the CH3− ion has the highest energy, making it the least stable ion and so the strongest base. The Zeff increases as we move across the period until we get to fluorine which has the greatest Zeff and so its lone pairs have the lowest energy, making F− the least basic ion.

 

In order of decreasing basicity they are ranked LiCH3 > LiNH2 > LiOH > LiF. We are dealing with the ions F−, OH−, NH2− and CH3− and so the factor which influences their basicity is the stability of the ion compared to its conjugate acid.

Report Error

View Answer Report Error Discuss

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

2 6359
Q:

Which of the following statements about monosaccharide structure is true?

A) Aldoses and ketoses differ in the position of their hydroxyl groups. B) Monosaccharides can be classified according to the spatial arrangement of their atoms.
C) All monosaccharides contain carbon, hydrogen, oxygen, and nitrogen atoms. D) A six-carbon sugar is called a pentose.
 
Answer & Explanation Answer: B) Monosaccharides can be classified according to the spatial arrangement of their atoms.

Explanation:

Monosaccharides, also called simple sugars, are the most basic units of carbohydrates. They are fundamental units of carbohydrates and cannot be further hydrolyzed to simpler compounds.

 

Hence, Monosaccharides can be classified according to the spatial arrangement of their atoms is true about Monosaccharides.

Report Error

View Answer Report Error Discuss

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

3 6356
Q:

Who are the primary users of SCM systems?

A) Accounting, finance, logistics, and production B) Customers, resellers, partners, suppliers, and distributors
C) Sales, marketing, customer service D) All of the above
 
Answer & Explanation Answer: B) Customers, resellers, partners, suppliers, and distributors

Explanation:
Report Error

View Answer Report Error Discuss

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

5 6355