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

Which planet has maximum satellite?

A) Saturn B) Earth
C) Jupiter D) Mars
 
Answer & Explanation Answer: C) Jupiter

Explanation:

Jupiter has 67 natural satellites. Eight of Jupiter's moons are regular satellites, with 4 large, spherical moons, and 4 smaller moons that orbit closer to Jupiter. Jupiter has an additional 55 tiny irregular satellites.

 

The planet with the second highest number of moons is Saturn, with 61 moons.

Earth has only one natural satellite i.e, Moon.

Mercury and Venus have no satellites.

Report Error

View Answer Report Error Discuss

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

0 3004
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 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:

How many gold medal have been won by India in the Olympics so far

A) 4 B) 6
C) 8 D) 10
 
Answer & Explanation Answer: C) 8

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

6 3003
Q:

Highest - Profit making company in India is 

A) Tata Sons B) Reliance Industries
C) Indian Oil D) ONGC
 
Answer & Explanation Answer: D) ONGC

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

15 3002
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 3002
Q:

'River' Brand of MP3 player has been launched in india  by Salora International. The Brand which is competing with apple's ipod is owned by which company?

A) ReignCom B) TEAc
C) Toshiba D) Panasonic
 
Answer & Explanation Answer: A) ReignCom

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

7 3001