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 3335
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 3334
Q:

How many times the following program would print 'Jamboree'?

main()

{

     printf ( "\nJamboree");

     main ();

}

Answer

Till the stack doesn't overflow

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 3333
Q:

pturecmo correct word

pturecmo_correct_word1543405055.jpg image

A) temperature B) capture
C) Computer D) torture
 
Answer & Explanation Answer: C) Computer

Explanation:

Computer is the correct word.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

5 3333
Q:

Radio Carbon Dating is use to estimate the age of _____ ?

A) Monuments B) Rocks
C) Soil D) Fossils
 
Answer & Explanation Answer: D) Fossils

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT

16 3332
Q:

Pick out the only vector quantity

A) pressure B) impulse
C) gravitational potential D) co-efficient of friction
 
Answer & Explanation Answer: B) impulse

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

5 3332
Q:

Which of the following is the mixture

A) distilled water B) gasoline
C) liquified petroleum gas D) both (b) & (c)
 
Answer & Explanation Answer: D) both (b) & (c)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3329
Q:

In the Determine Budget processes the project schedule

A) is not one of the inputs to these processes. B) is used to allocate the project budget to the various project activities.
C) is used to assign costs to the time period when the costs will be incurred D) is used to determine the size of the contingency component of the budget after all scheduled costs are accounted for.
 
Answer & Explanation Answer: C) is used to assign costs to the time period when the costs will be incurred

Explanation:

“This [project schedule] information can be used to aggregate costs to the calendar periods when the costs are planned to be incurred.” PMBOK [7.2.1.4]

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 3329