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

Which base is found only in RNA?

A) Thyamine B) Adenine
C) Uracil D) Cytosine
 
Answer & Explanation Answer: C) Uracil

Explanation:
Report Error

View Answer Report Error Discuss

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

1 1987
Q:

A rotating column of air is called

A) Tornado B) Vortex
C) Airmass D) None of the above
 
Answer & Explanation Answer: A) Tornado

Explanation:

A rotating column of air is called as a Tornado which extends from the thunderstorm to the ground.

Report Error

View Answer Report Error Discuss

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

2 1987
Q:

The first Finance Minister of India?

A) RK Shanmukham Chetty B) P Chidambaram
C) Jawaharlal Nehru D) Vallabhai Patel
 
Answer & Explanation Answer: A) RK Shanmukham Chetty

Explanation:
Report Error

View Answer Report Error Discuss

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

2 1986
Q:

Business fluctuations refer to

A) the ups and downs in overall business B) expansion is rapid
C) contraction is severe D) None of the above
 
Answer & Explanation Answer: A) the ups and downs in overall business

Explanation:

Business fluctuations refer to the ups and downs in overall business activity measured by changes in national​ income, employment and the price level.

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

2 1986
Q:

An ionic bond is formed when

A) sharing of electrons B) transfer of electrons
C) Both A & B D) losing of protons
 
Answer & Explanation Answer: B) transfer of electrons

Explanation:

An ionic bond is formed in between the two atoms with the transfer of electrons from an atom to the other to become stable after pairing.

an_ionic_bond_is_formed_when1535690989.jpg image

The atom which has low ionization energy will give some of its electrons to get stable electronic configuration .

Report Error

View Answer Report Error Discuss

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

2 1986
Q:

As a result of wartime production

A) more women volunteered for noncombat groups B) the government borrowed money from citizens
C) people needed government aid to survive D) the average work week for people increased
 
Answer & Explanation Answer: D) the average work week for people increased

Explanation:

As a result of wartime production, the average work week for people increased.

Report Error

View Answer Report Error Discuss

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

1 1985
Q:

What two countries have nearly 50% of global coal reserves?

A) Iran & USA B) USA & China
C) Russia & USA D) Brazil & Russia
 
Answer & Explanation Answer: C) Russia & USA

Explanation:

United States and Russia have together almost 400 billion tones. Which represents nearly 50% of world's reserves of coal.

 

Report Error

View Answer Report Error Discuss

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

0 1985