Questions

Q:

What is the capital of Peru?

A) Warsaw B) Lima
C) Dakar D) Victoria
 
Answer & Explanation Answer: B) Lima

Explanation:

Lima is the capital of Peru

Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

10 3819
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 3819
Q:

Which day is celebrated by United Nations Educational, Scientific and Cultural Organization (UNESCO) on May 3 ?

A) World Press Freedom Day B) World Health Day B. CD.
C) International Yoga Day D) World Malaria Day
 
Answer & Explanation Answer: A) World Press Freedom Day

Explanation:
Report Error

View Answer Report Error Discuss

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

2 3819
Q:

Who was awarded the first Rajiv Gandhi National Sadhavana Award

A) Archarya Tulsi B) J.R.D.Tata
C) Mother Teresa D) R.A.Mashelkar
 
Answer & Explanation Answer: C) Mother Teresa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

1 3818
Q:

Currency of Peru is

A) Chilean Peso B) Euro
C) Sol D) Dollar
 
Answer & Explanation Answer: C) Sol

Explanation:

Peru is a country in South America. Lima is the capital city of Peru. Sol is the currency of Peru.

Report Error

View Answer Report Error Discuss

2 3818
Q:

The given sentences, when properly sequenced, form a coherent paragraph. Each sentence is labelled with a letter. Choose the most logical order of the sentences from among the five given choices to construct a coherent paragraph keeping 1 as the first statement.

1) The new year, 2018, is here! Nothing seems to have changed, despite the firecrackers.

A) Of course, in many parts of the world the firecrackers might have been confused with, or replaced by, bombs, and millions in those and other regions find firecrackers (let alone bombs) an unimaginable luxury as they struggle to obtain food or shelter.

B) I am aware that a group of increasingly loud fellow nationals might accuse me of celebrating ‘foreign festivals’.

C) That too was widely celebrated, as it should be, though in a world where the homeless, children, refugees and foreignness are often abused.

D) New Year’s Eve came, as it does, close on the heels of Christmas, which commemorates the birth of a homeless child to poor refugees in a foreign place.

A) BDCA B) DCAB
C) ADCB D) CDAB
 
Answer & Explanation Answer: C) ADCB

Explanation:

The correct sequence is ADCB.The paragraph starts with the description of the event and what is the point to focus on, i.e. firecrackers.

Report Error

View Answer Report Error Discuss

Filed Under: English

0 3818
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 3816
Q:

According to Forbes, Who has become Asia’s richest person in the year 2017?

A) Jeff Bezos B) Hui Ka Yan
C) Mukesh Ambani D) Bill Gates
 
Answer & Explanation Answer: C) Mukesh Ambani

Explanation:

Reliance Industries Chairman Mukesh Ambani overtook China’s Hui Ka Yan to become Asia’s richest person with a total wealth of $42.1 billion. According to Forbes’ real time billionaire’s list, Ambani's personal wealth rose by $466 million in 2017.

Report Error

View Answer Report Error Discuss

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

9 3815