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

CAD stands for _____.

A) Common Aided Design B) Computer Aided Design
C) Complex Aided Design D) Communication Aided Design
 
Answer & Explanation Answer: B) Computer Aided Design

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

3 2031
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.

Reporters and city officials gathered at a Chicago railroad station one afternoon in 1953. The person they were meeting was the 1952 Nobel Peace Prize winner. A few minutes after the train came to a stop, a giant of a man - six feet four inches - with bushy hair and a large moustache stepped out from the train. Cameras flashed. City officials approached him with hands outstretched. Various people began telling him how honoured they were to meet him.

The man politely thanked them and then, looking over their heads, asked if he could be excused for a moment. He quickly walked through the crowd until he reached the side of an elderly black woman who was struggling with two large suitcases. He picked up the bags with a smile, escorted the woman to a bus. After helping her aboard, he wished her a safe journey. As he returned to the greeting party he apologized, "Sorry to have kept you waiting." Not many whites would have done what he did.

The man was Dr. Albert Schweitzer, the famous missionary doctor who had spent his life helping the poor in Africa. In response to Dr. Schweitzer's action, one member of the reception committee said with great admiration to the reporter standing next to him, "That's the first time I ever saw a sermon walking."


Dr. Albert delighted _____ .

A) in being helped by others B) in not being honoured
C) in being honoured D) in helping others
 
Answer & Explanation Answer: D) in helping others

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2031
Q:

Improve the bracketed part of the sentence.
The stranded pilgrims (had waited) in the bitter cold for more than two hours now.

A) has been waiting B) have been waiting
C) have waited D) no improvement
 
Answer & Explanation Answer: B) have been waiting

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2030
Q:

which of the following is smallest river in india ?

A) Indus B) Godavari
C) Arvari D) Ganga
 
Answer & Explanation Answer: C) Arvari

Explanation:

Arvari river is a small river in the Indian state of Rajasthan. It just have 90 km of length and it also consider as the smallest river of India and flows through the Arvari District of Rajasthan

Report Error

View Answer Report Error Discuss

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

0 2030
Q:

The substances which reduce friction are called _________.

A) irregularities B) lubricants
C) adhesives D) viscous
 
Answer & Explanation Answer: B) lubricants

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

13 2030
Q:

Which mosque is considered to be the style of Bengal style in Agra?

A) Nagina Masjid B) Moti Masjid  
C) Jama Masjid D) Badshahi Masjid
 
Answer & Explanation Answer: A) Nagina Masjid

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 2030
Q:

Haemophilia is a hereditary disease carried by

A) females and expressed by males B) males and expressed by males
C) females and expressed by females D) males and expressed by females
 
Answer & Explanation Answer: A) females and expressed by males

Explanation:

Haemophilia is an inherited bleeding disorder where the blood doesn't clot properly. It is caused when blood does not have enough clotting factor.


The main treatment for hemophilia is called replacement therapy. Concentrates of clotting factor VIII (for hemophilia A) or clotting factor IX (for hemophilia B) are slowly dripped or injected into a vein. These infusions help replace the clotting factor that's missing or low.

Report Error

View Answer Report Error Discuss

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

4 2030