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

The price elasticity of supply measures how

Answer

The price elasticity of supply measures how the responsiveness of the quantity demanded of a commodity to changes it its prices; defined as the percentage change in quantity demanded divided by the percentage change in price.

Report Error

View answer Workspace Report Error Discuss

Subject: Business Awareness Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

7 2155
Q:

In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'.

 

No students is(A)/as intelligent(B)/as Priya.(C)/No error(D)

 

A) A B) B
C) C D) D
 
Answer & Explanation Answer: A) A

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2155
Q:

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

A) Reside B) Revise
C) Advise D) Demice
 
Answer & Explanation Answer: D) Demice

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2155
Q:

In the following question, the sentence given with blank to be filled in with an appropriate word. Select the correct alternative out of the four and indicate it by selecting the appropriate option.

Raman has come up ______ a problem.

A) for B) with
C) of D) into
 
Answer & Explanation Answer: B) with

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2155
Q:

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

to lose one's head

A) to lose respect within your community B) to become complacent and gradually worsen your performance
C) to become confused or overly emotional about someone or something D) to lose sense or start behaving like a lunatic
 
Answer & Explanation Answer: C) to become confused or overly emotional about someone or something

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2155
Q:

What is the value of the Least Distance of Distinct vision (in cm) for a normal human being?

A) 2.5 B) 25
C) 58 D) 60
 
Answer & Explanation Answer: B) 25

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

12 2155
Q:

The Third Amendment to the Constitution would be violated if 

A) people were forced to house soldiers in their homes B) people had their property searched without a warrant
C) people were not allowed to practice their religion D) people were not allowed to speak freely
 
Answer & Explanation Answer: A) people were forced to house soldiers in their homes

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2155