Questions

Q:

Improve the following code using typedef.

struct node

{

      int data1;  float data2;

       struct node *left;

       struct node *right;

};

struct node *ptr;

ptr = (struct node *) malloc (sizeof (struct node) ); 

Answer

typedef struct node * treeptr


typedef struct node


{


         int data1;


         float data2;


         treeptr *left;


         treeptr *right;


}treenode;


treeptr ptr;


ptr = ( treeptr ) malloc ( sizeof ( treenode ) );

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2895
Q:

A watch dealer sells watches at Rs 600 per watch. However,he is forced to give two successive discounts of 10% and 5% respectively. However, he recovers the sales tax on the net sale price from the customer at 5% of the net price. What price does a customer have to pay him to buy the watch?

A) Rs 539.75 B) Rs 539.65
C) Rs 538.75 D) Rs 538.65
 
Answer & Explanation Answer: D) Rs 538.65

Explanation:
Report Error

View Answer Report Error Discuss

2 2894
Q:

What is the only chain we can eat ?

Answer

A food chain is the only chain we can eat.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: Bank Exams

3 2894
Q:

Genes are made of 

A) Carbohydrates B) Proteins
C) Fats D) Nucleotides
 
Answer & Explanation Answer: D) Nucleotides

Explanation:

Genes: The DNA is the genetic material. The DNA is made of several nucleotides. A nucleotide means, one nitrogenous base one sugar molecule and a phosphate molecule. These Nucleotides occur in sequences and several nucleotides form one gene ( a functional gene is called a cistron)

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2894
Q:

Voice in literary nonfiction refers to

A) description that appeals to the five senses B) the overall presence of a personality behind the text
C) the attitude that the author or narrator has toward the subject or reader D) nonfiction that uses elements and devices common in fictional stories
 
Answer & Explanation Answer: A) description that appeals to the five senses

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

3 2894
Q:

The sentence that states the main idea of the paragraph

A) Thesis B) Topic sentence
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The sentence that states the main idea of the paragraph is called as Thesis or the topic sentence.

Report Error

View Answer Report Error Discuss

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

0 2894
Q:

A bottle is full of dettol. One-third of it is taken out and then an equal amount of water is poured into the bottle to fill it. This operation is done four times. Find the final ratio of dettol and water in the bottle.

A) 13 : 55 B) 20 : 74
C) 16 : 65 D) 10 : 48
 
Answer & Explanation Answer: C) 16 : 65

Explanation:
Report Error

View Answer Report Error Discuss

2 2893
Q:

The decadal growth in the population of India during 1991-2001 is close to 

A) 13% B) 17%
C) 21% D) 25%
 
Answer & Explanation Answer: C) 21%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 2893