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

Demand side market failures occur when

A) supply curves do not reflect the full cost of producing a good or services B) demand curves do not reflect consumer’s full willingness to pay for goods or services
C) government imposes tax on a good or a service D) a good or service is not produced because no one demands it
 
Answer & Explanation Answer: B) demand curves do not reflect consumer’s full willingness to pay for goods or services

Explanation:

Market failure arises because it is not possible for the market to correctly weight cost and benefits in a situation in which some of the cost is completely unaccounted.

Demand-side market failures happen when demand curves do not reflect consumer’s full willingness to pay for goods or services.

Supply-side market failures occur when supply curves do not reflect the full cost of producing a good or services.

Report Error

View Answer Report Error Discuss

Filed Under: Marketing and Sales
Exam Prep: Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 2044
Q:

Short term side effects of alcohol and other drugs include

A) Temporary blindness B) Disrupted sleep
C) Forgetfulness D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Short term side effects of alcohol and other drugs include forgetfulness, temporary blindness and disrupted sleep.

Report Error

View Answer Report Error Discuss

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

1 2044
Q:

Japanese Ukiyo e prints depicted

A) Lord shiva B) The everyday world
C) Flung ink D) Shinto
 
Answer & Explanation Answer: B) The everyday world

Explanation:

Japanese Ukiyo-e prints depicted the everyday world or the transitory world we live.

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

1 2044
Q:

Who is the current Chairman of Indian Space Research Organisation(ISRO)?

A) Kailasavadivoo Sivan B) G. Satheesh Reddy
C) A. S. Kiran Kumar D) K. Radhakrishnan
 
Answer & Explanation Answer: A) Kailasavadivoo Sivan

Explanation:

The current Chairman of Indian Space Research Organisation(ISRO) is Kailasavadivoo Sivan.

Report Error

View Answer Report Error Discuss

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

1 2044
Q:

Where are the Garo Hills located?

A) Assam B) Nagaland
C) Meghalaya D) Mizoram
 
Answer & Explanation Answer: C) Meghalaya

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT

1 2044
Q:

Magnesium (Mg) + Oxygen (O2) = ?

A) Mg2O B) MgO4
C) O2Mg D) MgO
 
Answer & Explanation Answer: D) MgO

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

4 2043
Q:

In the following question, out of the four alternatives, select the alternative which is the best substitute of the phrase.

The punishment of being kept in school after hours.

A) Pretension B) Isolate
C) Detention D) Blender
 
Answer & Explanation Answer: C) Detention

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2043