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:

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 3781
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 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 3781
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
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 3778
Q:

Which of the following is true?

A) It is appropriate to use assertions to validate arguments to methods marked public B) It is appropriate to catch and handle assertion errors
C) It is NOT appropriate to use assertions to validate command-line arguments D) None
 
Answer & Explanation Answer: C) It is NOT appropriate to use assertions to validate command-line arguments

Explanation:

A is incorrect. It is acceptable to use assertions to test the arguments of private methods.

 

B is incorrect. While assertion errors can be caught, Sun discourages you from doing so.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

0 3778
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 3778