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

 The first-ever International MSME Day 2017 has celebrated on which day  ?

A) June 27 B) June 23
C) June 26 D) June 28
 
Answer & Explanation Answer: A) June 27

Explanation:

The International Trade Centre (ITC) has celebrated the first-ever International MSME Day on June 27, 2017 with theme ‘Small business – big impact’. The purpose of the day is to raise public awareness about the importance of MSMEs to economic growth and international development. The Micro, Small and Medium Enterprises (MSME) Day highlights the strong contribution of MSMEs worldwide to livelihoods, communities and economies and the need to support MSMEs towards their success. The ITC is the joint agency of the UN and the WTO supporting SMEs in developing countries and transition economies for sustainable and inclusive trade.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

9 3782
Q:

Words that sound the same but are spelled different

words_that_sound_the_same_but_are_spelled_different1540289338.jpg image

A) Homonyms B) Homographs
C) Heteronyms D) Homophones
 
Answer & Explanation Answer: D) Homophones

Explanation:

Words that sound the same but are spelled different are called homophones. Homophones are a type of homonyms.

Some of the Examples of homophones are ::

One - Won

Son - Sun

Hole - Whole

Loan - Lone

Steal - Steel

Which - Witch

What - Watt

Sea - See

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

1 3782
Q:

What happens during the process of translation?

A) Transfer RNA is made from messenger RNA B) Copies of DNA molecules are made
C) The cell uses information from messenger RNA to produce proteins D) Messenger RNA is made from DNA
 
Answer & Explanation Answer: C) The cell uses information from messenger RNA to produce proteins

Explanation:

Translation is the process by which a protein is synthesized from the information contained in a molecule of messenger RNA (mRNA). During translation, an mRNA sequence is read using the genetic code, which is a set of rules that defines how an mRNA sequence is to be translated into the 20-letter code of amino acids, which are the building blocks of proteins.

 

In short, during the process of translation source language text is conveyed to destination language.

Report Error

View Answer Report Error Discuss

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

1 3782
Q:

What ‘game’ was first produced by the Southern Novelty Company in Baltimore, Maryland in 1892?

A) Frisbee B) Monopoly
C) Ouija board D) Ping Pong
 
Answer & Explanation Answer: C) Ouija board

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

1 3781
Q:

The molecular mass of sulphuric acid is 98. If 49 g of the acid is dissolved in water to make one litre of solution, what will be the strength of the acid?

A) Two normal B) One normal
C) 0.5 normal D) Four normal
 
Answer & Explanation Answer: B) One normal

Explanation:

Normality is a way of expressing concentration of a solution and can be calculated by the formula-

Normality (N) = No. of gram equivalent of solute/ volume of solution (in litre)

Gram equivalent weight of H2 SO4 = Molecular weight/ No. of Hydrogen atom = 98/2 = 49 gm

No. of gram equivalent in 49 gm of H2 SO4 = 1

So, Normality in 1 litre of solution = 1/1 = 1 N

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 3780
Q:

The safest hammers are those with heads that are

A) cast steel and chiseled B) alloy and drop-forged steel
C) welded and alloyed D) chiseled and drop forged
 
Answer & Explanation Answer: B) alloy and drop-forged steel

Explanation:
Report Error

View Answer Report Error Discuss

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

4 3780
Q:

Dimond is

A) an element B) a compound
C) a mixture D) a liquid
 
Answer & Explanation Answer: A) an element

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3779