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 2154
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.
A. The trek is difficult
B. but it is far worth
C. the endeavour
D. No Error

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2154
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 2154
Q:

In the following question, out of the four alternatives, select the alternative which is the best substitute of the phrase.

a region of injured tissue or skin in which blood capillaries have been ruptured; a bruise.

A) pustule B) knurl
C) contusion D) tumour
 
Answer & Explanation Answer: C) contusion

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2154
Q:

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

 

Too many Chiefs and not enough Indians.

A) a proud gathering B) an inefficient situation
C) an anti-national meeting D) a top-level meeting
 
Answer & Explanation Answer: B) an inefficient situation

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2154
Q:

Read the following passage carefully and choose the most appropriate answer to the question out of the four alternatives.


The public sector banks are witnessing in india a period of transition and are at crossroads, where they without giving up social responsibility, should also remain healthy. They need to undertake risky experiments yet perform it innovatively in a way it does not fail. They should make forays into new areas which are rarely tread by them and lose no emerging opportunities. It should be understood that absence of any bad advance is no sign of efficient banking system. It only indicates immense conservatism. However this is no guarantee for profit. There should be a balance between liquidity and risk. Past sins should be forgotten. Novel and pragmatic techniques should be adopted without which banks would be in danger.

 

What would happen if novel and pragmatic techniques are ignored?

A) It will put the banks in danger. B) It will undermine the banks social commitment.
C) It will reveal the untapped talent. D) It will result in inefficient portfolio management.
 
Answer & Explanation Answer: A) It will put the banks in danger.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2154
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.


Learning is the knowledge of that which is not generally known to others, and which we can only derive at second­hand from books or other artificial sources. The knowledge of that which is before us, or about us, which appeals to our experience, passions, and pursuits, to the bosoms and businesses of men, is not learning. Learning is the knowledge of that which none but the learned know. He is the most learned man who knows the most of what is farthest removed from common life and actual observation. The learned man prides himself in the knowledge of names, and dates, not of men or things. He thinks and cares nothing about his next­door neighbours, but he is deeply read in the tribes and castes of the Hindoos and Calmuc Tartars. He can hardly find his way into the next street, though he is acquainted with the exact dimensions of Constantinople and Peking. He does not know whether his oldest acquaintance is a knave or a fool, but he can pronounce a pompous lecture on all the principal characters in history. He cannot tell whether an object is black or white, round or square, and yet he is a professed master of the optics and the rules of perspective.


A learned man, as described in the passage,

A) cares about men and things B) does not care about men and things
C) cares about the shapes of objects. D) cares about his neighbours
 
Answer & Explanation Answer: B) does not care about men and things

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2154
Q:

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

To hit the nail on the head

A) To take out frustration by beating a person B) To make a wrong decision
C) To find exactly the right answer D) To unwittingly fall into a trap
 
Answer & Explanation Answer: C) To find exactly the right answer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2154