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

What did you enjoy most and least in your last retailing job?

Answer

i enjoy the most learning new things like staff management,motivation,management,smart working etc. i enjoy the least free timing during my job.

Report Error

View answer Workspace Report Error Discuss

Subject: Retail

0 2060
Q:

In the following questions, one part of the sentence may have an error. Find out which part of the sentence has an error and click the button corresponding to it. If the sentence is free from error, click the "No error" option.

Variety (A)/ is (B)/ spice of life (C)/ No Error (D)

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2060
Q:

Which is the Hindi word of the year in the Oxford Dictonaries for 2018?

Answer

Nari-Shakti is the Hindi word of the year in the Oxford Dictonaries for 2018.

Report Error

View answer Workspace Report Error Discuss

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

1 2059
Q:

If a person moves a trolley for a distance of 10 m with a force of 50 N, then the work done is

A) 0.2 J B) 5 J
C) 20 J D) 500 J
 
Answer & Explanation Answer: D) 500 J

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 2059
Q:

Which tissue makes the plant hard and stiff?

A) Parenchyma B) Sclerenchyma
C) Collenchyma D) Xylem
 
Answer & Explanation Answer: B) Sclerenchyma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams , CAT

2 2059
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one which best expresses the same sentence in Indirect/Direct speech.

The teacher said to the students, "Work hard now if you wish to have a better future."

A) The teacher advised the students to work hard then if they wished to have a better future. B) The teacher advised the students to work hard now if they wished to have a better future.
C) The teacher advised the students to work hard then if they wish to have a better future. D) The teacher advised the students to work hard now if they wish to have a better future.
 
Answer & Explanation Answer: A) The teacher advised the students to work hard then if they wished to have a better future.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 2058
Q:

Decane has how many hydrogen atoms?

A) 22 B) 24
C) 11 D) 33
 
Answer & Explanation Answer: A) 22

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT

0 2058