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:

Define HCMOS?

Answer

High-density n-type Complimentary Metal Oxide Silicon field effect transistor.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2045
Q:

Highest Civilian Honour received by Sania Mirza is _________.

A) Padma Shri B) Padma Bhushan
C) Padma Vibhushan D) Bharat Ratna
 
Answer & Explanation Answer: B) Padma Bhushan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

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

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:

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 Schweitzer _____ .

A) was not prejudiced against Whites B) was not prejudiced against Blacks
C) was prejudiced against Whites D) was prejudiced against Blacks
 
Answer & Explanation Answer: B) was not prejudiced against Blacks

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2044
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