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

Crack the Detectives code and Find the criminal's Name ?

17629868_1256539077786527_1613927902568118890_n1500008133.jpg image

A) Bill B) John
C) Todd D) None
 
Answer & Explanation Answer: A) Bill

Explanation:

Bill.

From the detectives code 0415 7140 7718

Each 4 digits may represent one name

Here 7718 mirror image represent BILL.

Report Error

View Answer Report Error Discuss

Filed Under: Logic Puzzles

49 13121
Q:

Fill in the blank with the most appropriate option.

 

If the genotype of a plant is ttRr, the phenotype would be ___.

 

A) Dwarf and Wrinkled B) Tall and Wrinkled
C) Dwarf and Round D) Tall and Round
 
Answer & Explanation Answer: C) Dwarf and Round

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

0 13083
Q:

Cultural transmission refers to the process of ______

 

 

A) cultural patterns moving from one society to another B) using the oral tradition
C) passing cultural patterns from one generation to another D) using writing to enshrine cultural patterns
 
Answer & Explanation Answer: C) passing cultural patterns from one generation to another

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 13081
Q:

Crop rotation helps to

 

A) eliminate parasites which have selective hosts B) lessen use of pesticides
C) produce a greater choice of plant products D) yield more crops
 
Answer & Explanation Answer: A) eliminate parasites which have selective hosts

Explanation:

Crop rotation is the technique of planting crops in a different area of the garden so that no single crop will be planted in the same place two—or more—years in a row.

 

Crop rotation helps to maintain soil structure and nutrient levels and to prevent soilborne pests from getting a foothold in the garden.

 

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

1 13079
Q:

Select the antonym of

pilferer

A) sniper B) punk
C) lifter D) police
 
Answer & Explanation Answer: D) police

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13067
Q:

The members of NAFTA are

 

 

A) USA, Canada and Mexico B) USA, Canada and India
C) USA, Canada and Japan D) USA, UK and India
 
Answer & Explanation Answer: A) USA, Canada and Mexico

Explanation:

The North American Free Trade Agreement (NAFTA) is an agreement signed by Canada, Mexico, and the United States and entered into force on 1 January 1994 in order to establish a trilateral trade bloc in North America.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 13042
Q:

Which is the gas used for making vegetables and vanaspathi from vegetable oils?

A) Hydrogen B) Nitrogen
C) Argon D) Helium
 
Answer & Explanation Answer: A) Hydrogen

Explanation:

Hydrogen gas is used for making vegetables and vanaspathi from vegetable oils.

As it is colourless, odourless, tasteless, flammable gaseous substance, it is added to oils to make them more solid or spreadable.

The use of hydrogenation helps to prolong the shelf life of the food and maintain flavour stability.

Report Error

View Answer Report Error Discuss

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

25 13038