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

Which among the following are the components of windows registry?

A) Keys B) SubKeys
C) Values D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above listed are the components of Windows registry

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems

0 3790
Q:

' In CUstody ' , an english novels, is written by which one of the following

A) Vikram Seth B) Shoba De
C) Anita Desai D) VS.Naipaul
 
Answer & Explanation Answer: C) Anita Desai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

4 3787
Q:

Who has become First Female Pilot in Indian Navy?

A) Ritu Kumari B) Shubhangi Swaroop
C) Garima Sharma D) Rakhi Kumari
 
Answer & Explanation Answer: B) Shubhangi Swaroop

Explanation:

Shubhangi Swaroop, the First Woman Pilot inducted into Indian Navy.

Report Error

View Answer Report Error Discuss

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

11 3787
Q:

A doppler effect occurs when a source of sound moves

A) away from you B) towards you
C) Both A & B D) None of the above
 
Answer & Explanation Answer: C) Both A & B

Explanation:

The Doppler effect or Doppler shift is the change in frequency or wavelength of a wave in relation to an observer who is moving relative to the wave source. 

a_doppler_effect_occurs_when_a_source_of_sound_moves1560770484.jpg image

Report Error

View Answer Report Error Discuss

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

5 3787
Q:

What state of matter is Jello?

A) Liquid B) Solid
C) Colloid D) Gas
 
Answer & Explanation Answer: C) Colloid

Explanation:

Jello is a colloid, a semi-rigid structure i.e, semi-solid suspended in a liquid. When you Heat it up a bit and you'll break the protein bonds of the gelatin and it will liquefy completely and if you freeze, it becomes solid.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

2 3787
Q:

I am an English word which starts with 'T' and ends with 'T' and has 'T' in it.

Answer

The English word that starts & ends with T and has T (Tea) in it is " TEAPOT ".


teapot1586508959.jpg image


 

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: CAT , Bank Exams

4 3786
Q:

' Crime and Punishment ' was written by

A) Alexander Solzhenitysn B) Lewis Carroll
C) Fyodor Dostoevsky D) Valdimir Nabakov
 
Answer & Explanation Answer: C) Fyodor Dostoevsky

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3786