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

The Reserve Bank of India has imposed a penalty of Rs 5 crore on which of the following banks for non-compliance of its directives?

A) Karur Vysya Bank B) HDFC Bank
C) Kotak Mahindra Bank D) Yes Bank
 
Answer & Explanation Answer: A) Karur Vysya Bank

Explanation:

The Reserve Bank of India has imposed a penalty of Rs 5 crore on Karur Vysya Bank for non-compliance of its directives on Income Recognition and Asset Classification (IRAC).

Report Error

View Answer Report Error Discuss

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

0 2651
Q:

The day-to-day condition of the atmosphere at a place with respect to the temperature, humidity, rainfall, wind speed, etc., is called the________________ at that place.

 

A) climate B) ecology
C) environment D) weather
 
Answer & Explanation Answer: D) weather

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

5 2651
Q:

How many Indian got a place in 100 most influential people in the world list 2017 by Time magazine ?

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: B) 2

Explanation:

Prime Minister Narendra Modi and Paytm founder Vijay Shekhar Sharma.

Report Error

View Answer Report Error Discuss

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

1 2650
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:

Which is the longest National Highway in India?

A) NH - 47 B) NH - 4
C) NH - 7 D) NH - 44
 
Answer & Explanation Answer: D) NH - 44

Explanation:

NH - 44 covering Srinagar to Kanyakumari is the longest National Highway in India by the NHDP. It covers a distance of 3,745 Kms. It was previously known as NH - 7.

Report Error

View Answer Report Error Discuss

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

1 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 2649
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 2649