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

Which of these cities has one part of it is in Asia and other part in Europe ?

A) Moscow B) London
C) Istanbul D) Saint Peteresburg
 
Answer & Explanation Answer: C) Istanbul

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

5 3260
Q:

Gasoline is useful in cars because it has

A) chemical potential energy B) electrical potential energy
C) gravitational potential energy D) kinetic energy
 
Answer & Explanation Answer: A) chemical potential energy

Explanation:

Gasoline is a colorless petroleum-derived flammable liquid that is used primarily as a fuel in spark-ignited internal combustion engines. It consists mostly of organic compounds obtained by the fractional distillation of petroleum, enhanced with a variety of additives. It is also called as Petrol. It has chemical potential energy, in combustion it is turned into light, sound, heat and kinetic energy.

Report Error

View Answer Report Error Discuss

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

2 3260
Q:

According to Census 2001, what is the percentage of male literacy

A) 75.85 B) 70
C) 65 D) 60
 
Answer & Explanation Answer: A) 75.85

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3260
Q:

Type of American Indian dwelling in the eastern woodlands?

Answer

Woodland tribes lived in wigwams and longhouses. Wigwams are round, wooden-framed structures, covered in bark. Only one familylived in a wigwam. Longhouses are made the same way as wigwams except they are rectangular, instead of round. They have a long hallway with rooms on both sides. Several related families shared a longhouse.


type_of_american_indian_dwelling_in_the_eastern_woodlands1534483281.jpg image


Longhouse Commonly lived in by entire Native American families in the Eastern Territories pre-colonization.

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Geography Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

5 3259
Q:

How many valence electrons are in carbon?

A) 2 B) 4
C) 6 D) 3
 
Answer & Explanation Answer: B) 4

Explanation:

The main group number for an element can be found from its column on the periodic table. For example, carbon is in group 4 and has 4 valence electrons. Oxygen is in group 6 and has 6 valence electrons.

Report Error

View Answer Report Error Discuss

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

2 3258
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 3258
Q:

In ancient Greek city states the central district would be built on a hilltop and it would contain the chief municipal and religious buildings . What was this place called?

Answer

Acropolis

Report Error

View answer Workspace Report Error Discuss

1 3256