Questions

Q:

What would be the output of the following program?

main()

{

   struct emp

   {

        char *n;

        int age;

   };

   struct emp e1 = { "Dravid", 23};

   struct emp e2 = e1;

   strupr (e2.n);

   printf ("\n%s",e1.n);

}

Answer

DRAVID


When a structure is assigned, passed, or returned, the copying is done monolithically. This means that the copies of any pointer fields will point to the same place as the original. In other words, anything pointed to is not copied. Hence, on changing the name through e2.n it automatically changed e1.n

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2652
Q:

Which of the following is the sacred book of Judaism?

A) Old Testament B) Aporypha
C) Avesta D) Both (a) and (b)
 
Answer & Explanation Answer: D) Both (a) and (b)

Explanation:

The sacred books of judaism form the Old Testament and Aporypha. These books contain the history of the Jews and lay down the religious laws and ethics which they must follow.

Report Error

View Answer Report Error Discuss

Filed Under: World History

3 2652
Q:

A conception of right and wrong is

Answer

A conception of right and wrong is the definition of Ethics.


ethics1532426546.jpg image


Ethics are societal norms adopted by a group which deals with the fundamental human relation ships.

Report Error

View answer Workspace Report Error Discuss

Subject: General Awareness Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2651
Q:

Which one of the following is a search engine?

A) Bing B) Reddit
C) Pinterest D) Twitter
 
Answer & Explanation Answer: A) Bing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

2 2650
Q:

The primary agent of contact metamorphism is

A) Temperature B) Pressure
C) Weathering D) Flowing water
 
Answer & Explanation Answer: A) Temperature

Explanation:

The primary agent of contact metamorphism is heat or temperature.

Report Error

View Answer Report Error Discuss

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

2 2650
Q:

Would the following program compile?

main()

{

    int a = 10, *j;

    void *k;

    J = k = &a;

    J++;

    k++;

   printf ("\n%u %u", j, k);

}

Answer

An error would be reported in the statement k++ since arithmetic on void pointers is not permitted unless the void pointer is appropriately typecasted.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2650
Q:

One of the following companies does have business interest in both oil and shipping sectors. Identify this.

A) Tata Group B) Reliance Group
C) Essar Group D) ONGC
 
Answer & Explanation Answer: C) Essar Group

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

6 2650
Q:

In the aggregate expenditures model, it is assumed that investment

in_the_aggregate_expenditures_model_it_is_assumed_that_investment1553493949.jpg image

A) does not change when real GDP changes B) does not respond to changes in interest rates
C) changes by less in percentage terms than changes in real GDP D) automatically changes in response to changes in real GDP
 
Answer & Explanation Answer: A) does not change when real GDP changes

Explanation:

In the aggregate expenditures model, it is assumed that investment does not change when real GDP changes.

 

  • The aggregate expenditure is the sum of all the expenditures undertaken in the economy by the factors during a specific time period.

 

  • The aggregate expenditure determines the total amount that firms and households plan to spend on goods and services at each level of income.
Report Error

View Answer Report Error Discuss

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

0 2650