Questions

Q:

If the following program (myprog) is run from the command line as 

myprog 1 2 3 

what would be the output?

main(int argc, char *argv[])

{

    int i, j = 0;

    for (i = 0; i < argc ; i++)

           j = j + atoi ( argv[i]);

    printf ("%d", j);

}

A) 123 B) 6
C) Error D) "123"
 
Answer & Explanation Answer: B) 6

Explanation:

When atoi() tries to convert argv[0] to a number it cannot do so (argv[0] being a file name) and hence returns a zero.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 19642
Q:

Which of the following has got more heat capacity?

A) Iron piece B) Water
C) Gold piece D) Benzene
 
Answer & Explanation Answer: B) Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

103 19588
Q:

Who formulates fiscal policy in India?

A) Ministry of Finance B) Reserve Bank of India
C) Securities and Exchange Board of India (SEBI) D) Finance Commission
 
Answer & Explanation Answer: A) Ministry of Finance

Explanation:

In India, Fiscal Policy is formulated by the Ministry of Finance.

 

Fiscal policy is playing an important role on the economic and social front of a country. Traditionally, fiscal policy is concerned with the determination of state income and expenditure policy. But with the passage of time, the importance of fiscal policy has been increasing continuously for attaining rapid economic growth.

An effective fiscal policy is composed of policy decisions relating to the entire financial structure of the government including tax revenue, public expenditures, loans, transfers, debt management, budgetary deficit, etc.

Report Error

View Answer Report Error Discuss

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

24 19583
Q:

November 30 is observed as ______

A) Computer Security Day B) United Nations Day for South-South Cooperation
C) International Cooperative Day D) International Human Solidarity Day
 
Answer & Explanation Answer: A) Computer Security Day

Explanation:
Report Error

View Answer Report Error Discuss

45 19570
Q:

Which of the statements given below are correct?

 

A) In 2017, Wes Morgan captained the Premier League team Leicester City.

B) In 2017, Suresh Raina captained the IPL team Gujarat Lions Squad.

C) In 2017, Sergio Agüero played for the Premier League team Liverpool.

 

A) Only A   B) Only B  
C) Both A and B D) Both A and C
 
Answer & Explanation Answer: C) Both A and B

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

2 19553
Q:

Whom can we call the first national ruler of India?

A) Chandragupta Maurya B) Kanishka
C) Harsah D) Ajatasatru
 
Answer & Explanation Answer: A) Chandragupta Maurya

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

46 19493
Q:

The ancient India ,the earliest capital of Magadha kingdom was at

A) Pataliputra B) Rajgir
C) Vaishali D) Varanasi
 
Answer & Explanation Answer: B) Rajgir

Explanation:

The_ancient_India_,the_earliest_capital_of_Magadha_kingdom_was_at1554209866.jpg image

The ancient India, the earliest capital of Magadha kingdom was at Rajgir.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History

52 19484
Q:

The Tropic of Cancer does not pass through

A) India B) Egypt
C) Mexico D) Iran
 
Answer & Explanation Answer: D) Iran

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

52 19479