Questions

Q:

How would you check whether the contents of two structure variables are same or not?

Answer

struct emp


{


     char n[20];


      int age;


};


main()


{


    struct emp e1 = {"Dravid", 23};


   struct emp e2;


   scanf ("%s %d",e2.n, & e2.age);


   if( structcmp (e1,e2) ==0)


        printf ("The structures are equal");


   else


         printf ("The structures are unequal");


}


structcmp ( struct emp x, struct emp y)


{


     if (strcmp (x.n,y.n) ==0)


           if (x.age == y.age)


            return (0);


            return (1);


}


In short, if you nee to compare two structures, you'll have to write your own function to do so which carries out the comparison field by field.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3513
Q:

Which of the statements given below are correct?

 

A) In 2017, David Warner captained the IPL team Sunrisers Hyderabad.

B) In 2017, Romelu Lukaku played for the Premier League team Manchester City.

C) Canada hosted the Table Tennis 2017 ITTF Men's World Cup.

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 3512
Q:

The Kinetic energy of gas molecules

A) is unaffected by temperature variations B) decreases with increase of temperature
C) increases with decrease of temperature D) increases with increase of temperature
 
Answer & Explanation Answer: D) increases with increase of temperature

Explanation:

Kinetic Energy K.E = 12mV2  or 

K.E V2, Where 'm' is the mass and 'v' is the velocity of molecules.

 

Velocity is proportional to temperature. Hence, KE is proportional to temperature and would increase with temperature.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE

18 3509
Q:

Which of the statements given below are correct?

 

A) Belgium hosted the Table Tennis 2017 ITTF Men's World Cup.

 

B) In 2017, Giannis Antetokounmpo played for the NBA team Milwaukee Bucks.

 

C) United Arab Emirates hosted the 2017 Indoor Cricket World Cup.

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 3508
Q:

Which is not a sediment transporting agent?

A) Stratification B) Windstorms
C) Glacial Ice D) Stream water
 
Answer & Explanation Answer: A) Stratification

Explanation:

Stratification as actually the settling down of sediments with different properties to form layers/strata over years. Stratification especially occurs on the bed of water bodies such as oceans.

 

Stratified sedimentary rocks are used to study the ecological conditions over previous years/eras.  

 

The other choices like Windstorms, Glacial Ice and Stream water are mediums which sediments are transported.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

5 3508
Q:

Which statement describes the term salary?

A) Salary refers to the fixed amount paid on a daily basis. B) Salary refers to the varying amount paid on a daily basis.
C) Salary refers to the fixed amount paid on a weekly, bi-weekly, or monthly basis. D) None of the above
 
Answer & Explanation Answer: C) Salary refers to the fixed amount paid on a weekly, bi-weekly, or monthly basis.

Explanation:

A salary is best described as a fixed amount of income that is paid to an individual on a weekly, bi-weekly or monthly basis.

 

A salary can also be described as the annual earnings paid out over a year.

Report Error

View Answer Report Error Discuss

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

2 3506
Q:

Nagarahole Tiger Reserve is situated in which Indian state/UT?

 

A) Karnataka B) Goa
C) Maharashtra D) Telangana  
 
Answer & Explanation Answer: A) Karnataka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 3505
Q:

Which newspaper claims to carry "all the news that is fit to print"?

Answer

The New York Times

Report Error

View answer Workspace Report Error Discuss

1 3505