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

In the following question, some statements is followed by some conclusions, you have to take the given statements to be true even if they seem to be at variance with
commonly known facts and then decide which of the given logically follow. Choose that conclusion as the answer.

Statements:
Some roads are not good.
Some railways are good.
All airways are good.
Some roads are bad.

Conclusions:
I. At least some bad are good.
II. No bad is good.

A) Only conclusion I follow. B) Only conclusion II follow.
C) Either conclusion I or II follows. D) Neither conclusion I or II follows.
 
Answer & Explanation Answer: C) Either conclusion I or II follows.

Explanation:

Report Error

View Answer Report Error Discuss

2 19050
Q:

Which veda deals with medicine?

A) Atharva Veda B) Yajur Veda
C) Sama Veda D) Rig Veda
 
Answer & Explanation Answer: A) Atharva Veda

Explanation:

The Vedas are considered the earliest literary record of Indo-Aryan civilization. It is the most sacred scriptures of India.

 

There are four Vedas in Hinduism. They are:

1. The Rig Veda,

2. Sama Veda,

3. Yajur Veda and

4. Atharva Veda.


Most ailments, both physical and mental, were attributed to malevolent spirits and cures consisted of rituals, charms, mantras, medicines and surgical intervention.

The hymns in the Atharva Veda, the last of the four Vedas, and largely composed after the Aryans were well settled in the sub-continent, indicate that indigenous non-Aryan healing practices had influenced the Vedic Aryan healers.

Report Error

View Answer Report Error Discuss

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

37 19023
Q:

In which of the following kinds of organism is the phenomenon found wherein the female kills the male after copulation

A) Dragonfly B) Honeybee
C) Spider D) Pit viper
 
Answer & Explanation Answer: B) Honeybee

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds

224 19020
Q:

Journalist's Day was celebrated for the first time all over the country on

A) Oct 1,1984 B) Oct 8,1984
C) Oct 20,1984 D) Oct 28,1984
 
Answer & Explanation Answer: D) Oct 28,1984

Explanation:
Report Error

View Answer Report Error Discuss

33 18964
Q:

Which of the statements given below are correct?

1. The author of 'A Foreign Policy For India' is L.K Advani.
2. 'Wings of Fire' is a book written by A.P.J Abdul kalaam.
3. 'Open' is an Autobiography of Andre Agassi.

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: Bank Exams

1 18954
Q:

 For what purposes are views used?

A) To hide rows only B) To hide columns only
C) To hide complicated SQL statements only D) All of the above are uses for SQL views.
 
Answer & Explanation Answer: D) All of the above are uses for SQL views.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

22 18943
Q:

Who is the english physicist responsible for the "Big Bang Theory"?

A) Albert Einstein B) Michael Skube
C) George Gamow D) Roger Penrose
 
Answer & Explanation Answer: C) George Gamow

Explanation:

George Gamow. Gamow, who died in 1968, was a physicist, who published “Thirty Years that Shook Physics”.

Report Error

View Answer Report Error Discuss

Filed Under: Inventions

78 18930