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

The first female to take over the controls of a NASA spaceship is

A) Wilkie Collins B) Eileen Collins
C) Colette D) Kim Clijsters
 
Answer & Explanation Answer: B) Eileen Collins

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

0 2919
Q:

Which is an example of a complex sentence?

A) The cricket match was cancelled, because it was raining. B) My Dad laughed when I told a joke
C) He sang and she danced. D) All of the above
 
Answer & Explanation Answer: A) The cricket match was cancelled, because it was raining.

Explanation:

A complex sentence is a sentence that contains an independent clause and one or more dependent clauses.

If two clauses are connected with a coordinating conjunction, it's a compound sentence.

If two clauses are connected with a subordinating conjunction, it's a complex sentence.

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 , IT Trainer

0 2919
Q:

What is the function of an antagonist in a story?

Answer

The antagonist is the negative or opposing force in a story.


It could be a human enemy, or it could be non-human, like an animal or something less tangible, like fear.


 


The antagonist plays an important role in story development.

Report Error

View answer Workspace Report Error Discuss

Subject: General Awareness Exam Prep: AIEEE , Bank Exams , GATE , GRE
Job Role: Analyst , Bank Clerk , IT Trainer

3 2919
Q:

Particles of matter are continuously moving.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Yes, in any matter the particles are always moving. But the speed of the particles moving sepends on the temperature. As temperature increases, the speed of the particles also increases.

Report Error

View Answer Workspace Report Error Discuss

Subject: General Science
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

0 2918
Q:

Quality of a musical note depends on

A) Fundamental frequency B) Amplitude of the wave
C) Harmonics present D) Velocity of sound in the medium
 
Answer & Explanation Answer: C) Harmonics present

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 2918
Q:

What has 4 Eyes But cannot see?

Answer

What has 4 Eyes But cannot see is Mississippi.


The wording of Mississippi has 4 'i''s. But it can't see.

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 , Project Manager

8 2918
Q:

Organisms that depend only on raw plant products are said to be 

A) herbivorous B) vegetarian
C) carnivorous D) omnivorous
 
Answer & Explanation Answer: A) herbivorous

Explanation:

Herbivorous organisms are those that take for their food, plant parts like leaves raw in contrast to vegetarian, which means that plant products are taken raw or after being cooked.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2918