Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3005
Q:

The country which proposed the observance of the World Pulses Day?

 

A) Berlin B) Benin
C) Burkina Faso D) Nigeria
 
Answer & Explanation Answer: C) Burkina Faso

Explanation:

Burkina Faso proposed the observance of World Pulses Day on 10th February.

 

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: Bank Exams

1 3005
Q:

When is genetic drift a major factor in evolution?

A) When there is male competition B) When there is artificial selection
C) When there is no selective pressure D) When there is disruptiveselection
 
Answer & Explanation Answer: C) When there is no selective pressure

Explanation:

Genetic drift or allelic drift is the change in the relative frequency in which a gene variant (allele) occurs in a population due to random sampling and chance.

 

When is genetic drift a major factor in evolution is

* When there is low gene flow.

* When there is no selective pressure.

* When there is a bottleneck.

Report Error

View Answer Report Error Discuss

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

5 3005
Q:

In which of the following kind of organisms is the phenomenon found where in the female kills the male after copulation __________

A) Drgonfly B) Honey bee
C) Spider D) Pit viper
 
Answer & Explanation Answer: C) Spider

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

8 3003
Q:

Which one of the following is an abiotic and renewable resource

A) Iron ore B) Livestock
C) Water D) Forests
 
Answer & Explanation Answer: C) Water

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3003
Q:

Who is the author of book ' Arctic Summer'.

Answer

Dammon Galgut

Report Error

View answer Workspace Report Error Discuss

2 3003
Q:

Should the parents inIndia in future be forced to opt for one child against the 2 or many at present?

  1. Yes.This the only way to check the ver increasin population of India
  2. No.This type of pressure tactic is not adopted by any other country in the world

A) Only 1 is true B) Only 2 is true
C) Either 1 or 2 is true D) Neither 1 nor 2 is true
 
Answer & Explanation Answer: A) Only 1 is true

Explanation:

Clearly adoptindg such a policy help to regulate the population gowth,which inturn will facilitate the proper growth of economy and optimum utilization of country resources.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

0 3003
Q:

As per the data released by RBI, which bank witnessed the most number of frauds during April-December period of 2016 ?

A) HDFC Bank B) Standard Chartered Bank
C) SBI Bank D) ICICI Bank
 
Answer & Explanation Answer: D) ICICI Bank

Explanation:

ICICI Bank topped the list of banks that witnessed the most number of frauds during April-December period of 2016 with state-owned SBI taking the second spot, RBI data said.

Report Error

View Answer Report Error Discuss

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

2 3002