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

Which of the following countries is passing through a crisis called as "Darfur Humanitarian Crisis"?

A) Uganda B) Somalia
C) Sudan D) Sierra Leone
 
Answer & Explanation Answer: C) Sudan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

1 3870
Q:

As per the recommendations of the 12th Finance Commission, what will be the Share of the State Govts in total shareable proceeds of Central taxes?

A) 15% B) 20.5%
C) 22% D) 30.5%
 
Answer & Explanation Answer: D) 30.5%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

1 3870
Q:

Rutherford's alpha-scattering experiment related to the size of the

A) nucleus B) atom
C) electron D) neutron
 
Answer & Explanation Answer: A) nucleus

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 3869
Q:

The Survey of India was established in

A) 1851 B) 1767
C) 1857 D) 1771
 
Answer & Explanation Answer: B) 1767

Explanation:

The National Survey and Mapping Organization of the country under the Department of Science & Technology is The Survey of India. It was founded by The East India Company in the year 1767, head quartered in Dehradun.

 

 The_Survey_of_India_was_established_in1552044109.jpg image

 

The East India Company appointed James Rennell to survey the Bengal Presidency in 1767.

Report Error

View Answer Report Error Discuss

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

2 3869
Q:

Which country has recently become fifth largest military spender  ?

A) India B) Japan
C) China D) Russia
 
Answer & Explanation Answer: A) India

Explanation:

1. India's military expenditure grew around 8.5 percent in 2016, making it the world's fifth largest spender at $55.9 billion, figures released by the Stockholm International Peace Research Institute (SIPRI).

2. As per the figures, the US remains the world's largest military spender registering a growth of 1.7 percent between 2015 and 2016 to $611 billion.

3. China is second and Russia is on the third position in the list.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

8 3868
Q:

Who was appointed as Director of the Central Bureau of Investigation in the year 2017 ?

A) Alok Kumar Verma B) Anil Sinha
C) Rakesh Asthana D) None
 
Answer & Explanation Answer: A) Alok Kumar Verma

Explanation:

Senior IPS officer Alok Kumar Verma, Delhi Police Commissioner was appointed as new Director of the Central Bureau of Investigation. He will have tenure of two years. He was selected by a three-member committee comprising Prime Minister Narendra Modi, Chief Justice J S Khehar and Congress leader Mallikarjun Kharge. He will take over from interim director Rakesh Asthana, who was handed the reins of the premier investigating agency after former director Anil Sinha retired on December 2, 2016.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: CAT , Bank Exams
Job Role: Bank PO , Bank Clerk

4 3868
Q:

The network layer concerns with

A) Packets B) Frames
C) Bytes D) All of the above
 
Answer & Explanation Answer: A) Packets

Explanation:

The network layer concerns with the packets. It brings the packets from the source to the destination.

Report Error

View Answer Report Error Discuss

9 3866