Questions

Q:

What would be the output of the following program?

main()

{

    static int a[20];

    int i = 0;

    a[i] = i++;

    printf ("\n%d%d%d", a[0],  a[1], i);

}

Answer

0  0  1


That's what some of the compilers would give. But some other compiler may give a different answer. The reason is, when a single expression causes the same object to be modified and then inspected the behaviour is undefined.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2256
Q:

Michael Schumacher is associated with which sport?

A) Football B) Golf
C) Formula One racing D) Swimming
 
Answer & Explanation Answer: C) Formula One racing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

1 2256
Q:

Dakshayani, which is in news recently, is a/an

A) Plant B) Animal
C) River D) Train
 
Answer & Explanation Answer: B) Animal

Explanation:

Dakshayani, which is in news recently, is an Animal (She - elephant).

Report Error

View Answer Report Error Discuss

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

1 2256
Q:

The 4th Agri Leadership Summit 2019 held at?

A) Haryana B) Uttar Pradesh
C) West Bengal D) Assam
 
Answer & Explanation Answer: A) Haryana

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2256
Q:

The goals of psychology are to

A) describe the behavior B) control the behavior
C) predict the behavior D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

The main goals of psychology are four. They are::

 

1. To describe,

2. To explain,

3. To predict (and)

4. To control the behavior and mental processes of others.

Report Error

View Answer Report Error Discuss

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

1 2256
Q:

Upanishads are the ______________________

A) Great Epics B) Story Books
C) Source of Hindu Philosophy D) Law Books
 
Answer & Explanation Answer: C) Source of Hindu Philosophy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 2256
Q:

What contributes to antigenic shift in influenza viruses?

A) a segmented genome B) different virus subtypes
C) Both A & B D) ease of virus transmission
 
Answer & Explanation Answer: A) a segmented genome

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

3 2256
Q:

Which RNA base pairs with the adenine in DNA?

A) Thymine B) Cytosine
C) Both A & B D) Uracil
 
Answer & Explanation Answer: D) Uracil

Explanation:

In DNA, adenine pairs with Thymine. Similarly, in RNA, due to absence of thymine in RNA and the same structure with uracil helps to pair with adenine.

Report Error

View Answer Report Error Discuss

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

1 2255