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

The amount of RAM storage is measured in

A) bytes B) mega bytes
C) giga bytes D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

RAM storage capacity is measured in bytes, kilo bytes, mega bytes, giga bytes,...

Report Error

View Answer Report Error Discuss

2 3485
Q:

Which of the following are elements of the colder principle?

A) Keep clothing clean and dry B) Repair clothing as necessary
C) Wear clothing loose and layered D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

In scouts, the military and most outdoor books or schools teach the COLDER principal. It is a great acronym for caring and using you clothing.

 

C - keep your clothing CLEAN. Dirt can break down the fibers of your clothing.

O - don't OVERHEAT. Sweat can lessen the effectiveness of clothing.

L - wear you clothes LOOSE and in LAYERS. Makes your system versatile.

D - stay DRY.

E - EXAMINE your clothing. Look for worn or damaged areas of you clothing.

R - REPAIR any damage that is found.

Report Error

View Answer Report Error Discuss

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

2 3485
Q:

Who of the following is NOT related to ghazal singing?

 

A) Begum Akhtar   B) Malika Pukhraj  
C) Penaz Masani   D) Haribhai Varadkar  
 
Answer & Explanation Answer: D) Haribhai Varadkar  

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams

0 3483
Q:

Classify the Hashing Functions based on the various methods by which the key value is found.

Answer

Direct method,


 Subtraction method,


 Modulo-Division method,


 Digit-Extraction method,


 Mid-Square method,


 Folding method,


Pseudo-random method

Report Error

View answer Workspace Report Error Discuss

Subject: Technology

5 3482
Q:

A boy sitting in a train moving with a uniform velocity drops a coin outside. A man standing outside the train will find the trajectory of the coin to be

A) a parabola B) a circle
C) a horizontal straight line D) a vertical straight line
 
Answer & Explanation Answer: A) a parabola

Explanation:

Parabola, because when the coin is dropped at a particular point, it has the same velocity as the running train. So by Newton's first law, it continues its motion horizontally with that velocity. But then, it is also pulled down by earth's gravity continuously. In this situation its horizontal motion gives way to the parabolic motion until it reaches the ground.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 3482
Q:

You have recently been promoted to a project manager for a clinical testing facility. The team is developing a new product that will cut down on testing interval requirements for a new seizure management medication. After you become involved with the project, you decide to add more research reports, which the customer did not request. This is an example of 

A) Good customer service scope B) Scope creep
C) Due diligence D) Gold Plating
 
Answer & Explanation Answer: D) Gold Plating

Explanation:

Answer A is incorrect because you are providing a service that the customer did not request; therefore, it might not be important to her and unnecessary. Answer B is incorrect because scope creep is generally an expansion of the scope of the project at the customer's request and the customer did not request these reports. Answer C is incorrect because an additional report does not always mean increased diligence with a project.

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 3481
Q:

 On 2 January 2018, Parliament passed NABARD (Amendment) Bill, 2017 which seeks to amend ______.

 

A) NABARD Act, 1975 B) NABARD Act, 1961
C) NABARD Act, 1981 D) NABARD Act, 1991
 
Answer & Explanation Answer: C) NABARD Act, 1981

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 3480