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

When electrical brain waves have ceased, this is called

A) Electroshock B) Electrolysis
C) Suicide D) Brain death
 
Answer & Explanation Answer: D) Brain death

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE

1 2081
Q:

Who is the inventor of WWW?

A) Ray Tomlinson B) Bill Gates
C) Charles Babbage D) Tim Berners-Lee
 
Answer & Explanation Answer: D) Tim Berners-Lee

Explanation:

The English scientist Tim Berners-Lee invented the WWW in 1989. The World Wide Web, also known as the WWW and the Web, is an information space where documents and other web resources are identified by Uniform Resource Locators, interlinked by hypertext links, and accessible via the Internet.

Report Error

View Answer Report Error Discuss

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

5 2081
Q:

Populism had a lasting effect on

Answer

Populism had a lasting effect on the style of politics.

Report Error

View answer Workspace Report Error Discuss

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

2 2081
Q:

Which to withdraw from OPEC as of Jan 2019?

A) Gabon B) Angola
C) Saudi Arabia D) Qatar
 
Answer & Explanation Answer: D) Qatar

Explanation:

Qatar to withdraw from OPEC as of Jan 2019. OPEC, The Organization of the Petroleum Exporting Countries is an intergovernmental organisation of 14 nations, founded in 1960 in Baghdad, Iraq.


Its members are Qatar, Saudi Arabia, Iran, Iraq, Indonesia, Venezuela, Nigeria, Libya, United Arab Emirates, Algeria, Kuwait, Ecuador, Angola, Gabon.

Report Error

View Answer Report Error Discuss

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

0 2080
Q:

Which period of the Egyptian ancient History is known as the 'Age of the Pyramids'?

A) New Kingdom B) Old Kingdom
C) Middle Kingdom D) None of these
 
Answer & Explanation Answer: B) Old Kingdom

Explanation:

Historians divide the ancient history of Egypt into three periods. the Old Kingdom, the Middle Kingdom and the New Kingdom. The Old Kingdom is called the Age of the Pyramids.

Report Error

View Answer Report Error Discuss

Filed Under: World History

1 2080
Q:

Which summarizes a result of the protestant reformation?

A) It prompted reforms within the Catholic Church B) It created new divisions within European society
C) Both A & B D) It prompted greater cooperation between Catholics and non-Catholics
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Both options (A & B), summarizes a result of the protestant reformation.

 

The Protestant Reformation was a major 16th century European movement aimed initially at reforming the beliefs and practices of the Roman Catholic Church.

Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

0 2080
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.

The first working steam­ powered vehicle was designed and most likely built by Ferdinand Verbies, a Flemish member of a Jesuit mission in China around 1672. It was a 65 cm long scale­ model toy for the Chinese Emperor, that was unable to carry a driver or a passenger. It is not known if Verbiest's model was ever built. Nicolas- Joseph Cugnot is widely credited with building the first full­ scale, self ­propelled mechanical vehicle or automobile in about 1769; he also created a steam­ powered tricycle. He constructed two steam tractors for the French Army, one of which is preserved in the French National Conservatory of Arts and Crafts. His inventions were however handicapped by problems of water supply and maintaining steam pressure. In 1801, Richard Trevithick built and demonstrated his Puffing Devil road locomotive, believed by many to be the first demonstration of a steam ­powered road vehicle. It was unable to maintain sufficient steam pressure for long periods. Sentiment against steam ­powered road vehicles led to the Locomotive Acts of 1865. In 1807 Nicephore Niepce and his brother Claude probably created the world's first internal combustion engine which they called Pyreolophore.

The problem with Trevithick's Puffing Devil was:

A) Its incapability to carry a driver or a passenger B) With the water supply
C) Its inability to maintain steam pressure D) Its combustion engine
 
Answer & Explanation Answer: C) Its inability to maintain steam pressure

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2080