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 3733
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 3732
Q:

Ethernet uses which topology

A) Star B) Bus
C) Twisted pair D) Both B & C
 
Answer & Explanation Answer: B) Bus

Explanation:

Ethernet uses Bus topology.

Report Error

View Answer Report Error Discuss

5 3732
Q:

Is DRAM Volatile or Nonvolatile?

Answer

DRAM is a Volatile random-access memory (VRAM).


 


Volatile random-access memory (VRAM) is random-access memory that retains its information when power is turned on.


Examples of volatile memory are primary storage (typically dynamic RAM, DRAM), and fast CPU cache memory (typically static RAM, SRAM, which is fast but energy-consuming and offer lower memory capacity per area unit than DRAM).


Non-volatile random-access memory (NVRAM) is random-access memory that retains its information when power is turned off.

Examples of non-volatile memory are flash memory (used as secondary memory) and ROM, PROM, EPROM and EEPROM memory (used for storing firmware such as BIOS). 

Report Error

View answer Workspace Report Error Discuss

10 3730
Q:

Bhatnagar Prize is given in the field of

A) Peace B) Music and dance
C) Science and Technology D) Fine arts
 
Answer & Explanation Answer: C) Science and Technology

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3729
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 3729
Q:

The headquarters of the International court of Justice is situated at _____ ?

A) Sweden B) Geneva
C) London D) Hague
 
Answer & Explanation Answer: D) Hague

Explanation:

International court of Justice (ICJ) is the main judicial organ or branch of the United Nations, sometimes people call it the World Court. ICJ was established in the year 1945 and has its headquarters at The Hague, Netherlands.

Report Error

View Answer Report Error Discuss

Filed Under: World Organisations
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 3729
Q:

USA suggested a policy, according to which all countries would have equal rights to trade anywhere in China,was known as_______

A) open Door Policy B) Me Too Policy
C) Both (a) and (b) D) Universal Policy
 
Answer & Explanation Answer: C) Both (a) and (b)

Explanation:

After the defeat of china by Japan in a war over Korea in 1894,France, Russia, Britain and Germany gave loan to china to help it to the payment of 150 million dollors demanded by japan. These western countries the divided china into spheres of influence, which meant that each country had certain regions of china reserved exclusively for its purposes.

          The united states feared that china would be completely parcelled out in exclusive 'spheres of influence' and that its trade with china would be shut off. The USA, therefore, suggested the policy known as the "Open Door". This policy is also described as "Mee too Policy".

          The division of China into "spheres of influence' has often been described as the "cutting of the Chinese melon".

 

Report Error

View Answer Report Error Discuss

Filed Under: World History

1 3729