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 13126
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:

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 13095
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 13094
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 13088
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 13085
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 13069
Q:

Select the antonym of

 

to expunge

 

A) to gut B) to omit
C) to zap D) to insert
 
Answer & Explanation Answer: D) to insert

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13063