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

If 84+96=4842, then 36+78= ?

A) 3918 B) 3678
C) 3819 D) 1839
 
Answer & Explanation Answer: A) 3918

Explanation:
Report Error

View Answer Report Error Discuss

9 2136
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.

The warning bells __________several times before anyone realized the danger.

A) were ringing B) had rung
C) had rang D) would have rung
 
Answer & Explanation Answer: B) had rung

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2136
Q:

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

 

Pedal to the metal

 

A) Build something big by yourself. B) Add more protection to an already strong shield.
C) To drive very fast. D)  Push a person to perform to its extreme.
 
Answer & Explanation Answer: C) To drive very fast.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2136
Q:

What is the ultimate source of energy in an ecosystem?

A) Fungi B) Plants
C) Sun D) Water
 
Answer & Explanation Answer: C) Sun

Explanation:

Sun - The Solar Energy is the ultimate source of energy in an ecosystem.

Report Error

View Answer Report Error Discuss

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

6 2136
Q:

A person lifts luggage of 20 kg from the ground and puts it on his head 2 in above the ground. Calculate the work done by him. (g = l0 )

A) 20 J B) 400J
C) 200J D) 40J
 
Answer & Explanation Answer: B) 400J

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2136
Q:

What is the name of the device used to convert alternating current into direct current ?

A) Ammeter B) Galvanometer
C) Rectifier D) Transformer
 
Answer & Explanation Answer: C) Rectifier

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 2136
Q:

Who approved 20 lakh houses for urban poor under the PM Awas Yojna recently?

A) Smriti Irani B) Arun Jaitley
C) Sushnia Swaraj D) Shri Venkaiah Naidu
 
Answer & Explanation Answer: D) Shri Venkaiah Naidu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT

0 2136