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

Wankhede stadium is situated in

A) Chandigarh B) Madras
C) Mumbai D) Bangalore
 
Answer & Explanation Answer: C) Mumbai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 2488
Q:

Which indian state banned the forceful religious conversions

Answer

Tamil Nadu

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

43 2488
Q:

Which of the following is not a monosaccharide? 

A) Fructose B) Glucose
C) Galactose D) Sucrose
 
Answer & Explanation Answer: D) Sucrose

Explanation:

Sucrose is not a monosaccharide.

 

Monosaccharides are simple carbohydrates molecules that cannot be broken down into smaller molecules of other carbohydrates.

 

Glucose, galactose and fructose are examples of Monosaccharides.

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

A sample of matter must be copper if

A) atoms in the sample react with oxygen B) the sample can conduct electricity
C) each atom in the sample has 29 protons D) the sample melts at 1768k
 
Answer & Explanation Answer: C) each atom in the sample has 29 protons

Explanation:

A sample of matter must be copper if each atom in the sample has 29 protons.

Report Error

View Answer Report Error Discuss

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

1 2487
Q:

A gland below the bladder and surrounding the urethra is

A) prostate B) seminal vesicle
C) bartholin D) vas deferens
 
Answer & Explanation Answer: A) prostate

Explanation:

                               prostategland1531291431.jpg image

A gland surrounding the neck of the bladder in male mammals and releasing a fluid component of semen is Prostate gland which is below the bladder and surrounding the urethra.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

3 2486
Q:

There is a mistake in the following code. Add a statement in it to remove it.

main()

{

     int a;

     a = f (10, 3.14) ;

     printf ( " %d ", a );

}

f (int aa, float bb)

{

    return ( ( float ) aa + bb );

}

Answer

Add the following function prototype in main ():


float f ( int, float );

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2486
Q:

Abu Simbel is located in which country?

A) South Africa B) Iran
C) Iraq D) Egypt
 
Answer & Explanation Answer: D) Egypt

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

4 2486