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

Which of the following is an example of a simile?

A) Clouds of vanilla cotton candy floated in the sky. B) His stomach rumbled like an approaching train.
C) She was drowning in a sea of grief. D) He was a hurricane in her heart.
 
Answer & Explanation Answer: B) His stomach rumbled like an approaching train.

Explanation:

In the given options, "His stomach rumbled like an approaching train" is an example of Simile.

All the other options are examples of metaphors. 

 

Simile and Metaphor are both figure of speeches in English which are used for comparing things but the only difference is Simile uses LIKE or AS words in comparing and metaphor directly compares without using any words.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

4 6846
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 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:

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 6836
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 6836
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:

During Processing data, programs, and processed information are held temporarily in _________

A) Secodary stoage B) ROM
C) RAM D) None of these
 
Answer & Explanation Answer: C) RAM

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer

20 6834