Questions

Q:

Write a c program to copy a data of file to other file.

Answer

#include<stdio.h>
int main(){
  FILE *p,*q;
  char file1[20],file2[20];
  char ch;
  printf("\nEnter the source file name to be copied:");
  gets(file1);
  p=fopen(file1,"r");
  if(p==NULL){
      printf("cannot open %s",file1);
      exit(0);
  }
  printf("\nEnter the destination file name:");
  gets(file2);
  q=fopen(file2,"w");
  if(q==NULL){
      printf("cannot open %s",file2);
      exit(0);
  }
  while((ch=getc(p))!=EOF)
      putc(ch,q);
  printf("\nCOMPLETED");
  fclose(p);
  fclose(q);
 return 0;
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2067
Q:

In what city would you find the world's tallest building?

Answer

Dubai

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

1 2067
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


Learning is the knowledge of that which is not generally known to others, and which we can only derive at second­hand from books or other artificial sources. The knowledge of that which is before us, or about us, which appeals to our experience, passions, and pursuits, to the bosoms and businesses of men, is not learning. Learning is the knowledge of that which none but the learned know. He is the most learned man who knows the most of what is farthest removed from common life and actual observation. The learned man prides himself in the knowledge of names, and dates, not of men or things. He thinks and cares nothing about his next­door neighbours, but he is deeply read in the tribes and castes of the Hindoos and Calmuc Tartars. He can hardly find his way into the next street, though he is acquainted with the exact dimensions of Constantinople and Peking. He does not know whether his oldest acquaintance is a knave or a fool, but he can pronounce a pompous lecture on all the principal characters in history. He cannot tell whether an object is black or white, round or square, and yet he is a professed master of the optics and the rules of perspective.


the knowledge related to the businesses of men

A) knows about all the principal characters in history B) sees not with the eyes of others
C) is acquainted with the streets of Constantinople and Peking D) knows the most of what is farthest removed from common life and actual observation.
 
Answer & Explanation Answer: D) knows the most of what is farthest removed from common life and actual observation.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 2067
Q:

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

 

Man's attitude to various animals changed many times in the course of centuries. From indifference or practicality, he went on to adoration and deification, and then to hatred. Ancient Egyptians, for example, highly appreciated the cat's ability to destroy rodents. The cat was much superior in this respect to the grass­snakes and weasels they had kept in their houses before. These proved unable to cope with hordes of rats which invaded Egypt from Asia. So the cat, a very useful animal, was ranked as a sacred animal and one of the most important animals, too. The goddess of the Moon, fertility and child­birth, Bast herself was portrayed by the Egyptians as a woman with a cat's head.

Sumptuous temples were built to this goddess, where cats were kept in luxury and fed the choicest of foods. They had their own priests and votaries, more numerous as a matter of fact than any other sacred animal could boast. According to the Greek historian Herodotus, the festival in the city of Bubastis, which had a temple dedicated to cats, was attended by as many as 700 thousand, who brought their offerings to the goddess in the shape of figurines of her made of gold, silver and bronze and adorned with precious stones.

 

Egyptians appreciated the cat's ability to destroy _____ .

A) snakes B) weasels
C) houses D) rodents
 
Answer & Explanation Answer: D) rodents

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2066
Q:

In the following passage some of the words have been left out. Read the passage carefully and choose the correct answer for the given blank out of the four alternatives.


War and Peace, an epic historical novel by Leo Tolstoy, was_____ published as Voyna i mir in 1865-69. This ____study of early 19th century Russian society, noted for its _____of realistic detail and variety of psychological______is generally regarded as one of the world's greatest novels. War and Peace is_____concerned with the histories of five aristocratic families, the members of which are _____against the_____background of Russian social life during the war against Napoleon. The_____ of war, however, is____to the story of family existence which involves Tolstoy's optimistic belief in the life-asserting ______of human existence.

 

Noted for its ____ of realistic detail and

A) energy B) veracity
C) suitability D) mastery
 
Answer & Explanation Answer: D) mastery

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2066
Q:

The most extensive use of molasses after fermentation is for producing

A) Methanol B) Sugar
C) Ethanol D) Sugarcane
 
Answer & Explanation Answer: C) Ethanol

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 2066
Q:

In the following question, out of the four alternatives, select the alternative which best expresses the meaning of the idiom/phrase.
On tenterhooks

A) Flattery B) In a disorganized manner
C) In anxious suspense D) Speak quickly
 
Answer & Explanation Answer: C) In anxious suspense

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2066
Q:

In the following question, four words are given out of which one word is correctly spelt. Select the correctly spelt word.

A) stareotype B) stereotype
C) iliterrate D) stareotype
 
Answer & Explanation Answer: B) stereotype

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , GRE , TOEFL

0 2066