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

In what city would you find the world's tallest building?

Answer

Dubai

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

1 2067
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.
Heena said, "I bought a dress yesterday."

A) Heena said that she has bought a dress the day before. B) Heena said that she had bought a dress the day before.
C) Heena said that she has bought a dress the day before yesterday. D) Heena said that she had bought a dress the day before yesterday.
 
Answer & Explanation Answer: B) Heena said that she had bought a dress the day before.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 2067
Q:

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

A slap on the wrist

A) A mild punishment B) Punishing the wrong person
C) To hit someone where it hurts the most D)  To threaten someone
 
Answer & Explanation Answer: A) A mild punishment

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2067
Q:

The scarcity definition of economics is credited to

A) Dennis Robertson B) Lionel Robbins
C) Alfred Marshall D) Adam Smith
 
Answer & Explanation Answer: B) Lionel Robbins

Explanation:

The scarcity definition of economics is credited to Lionel Robbins.

Report Error

View Answer Report Error Discuss

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

1 2067
Q:

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

A) Flattery B) In a disorganized manner
C) In anxious suspense D) Speak quickly
 
Answer & Explanation Answer: C) In anxious suspense

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2066
Q:

Pyranees forms the boundary between 

A) Spain and Portugal B) France and Spain
C) Poland and Russia D) Hungary and Rumania
 
Answer & Explanation Answer: B) France and Spain

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 2066
Q:

What is the currency of South Korea?

A) Krona B) Zloty
C) Won D) Nakfa
 
Answer & Explanation Answer: C) Won

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2066