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

Chandragupta Maurya was an ardent follower of __________.

A) Sikhism B) Jainism
C) Buddhism D) Jewism
 
Answer & Explanation Answer: B) Jainism

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 2054
Q:

What did Sir William Herschel discover in 1800?

A) Ultraviolet rays B) Infra-red radiation
C) X rays D) Microwaves
 
Answer & Explanation Answer: B) Infra-red radiation

Explanation:

Sir William Herschel discovered Infra-red radiation in 1800.

Report Error

View Answer Report Error Discuss

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

0 2054
Q:

Who has chosen for the first "Bhagwan Mahavir Ahimsa Puraskar"?

A) Subhash Chandra Bose B) Alluri Seetha Ramaraju
C) Abhinandan Varthaman D) None of the above
 
Answer & Explanation Answer: C) Abhinandan Varthaman

Explanation:

Abhinandan Varthaman who shot down the Pakistan's F-16 jet has chosen for the first "Bhagwan Mahavir Ahimsa Puraskar".

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2053
Q:

PQR is right angled at Q. If cosecP = 17/15, then what is the value of sinR ?

A) 15/17 B) 11/17
C) 8/17 D) 13/17
 
Answer & Explanation Answer: C) 8/17

Explanation:
Report Error

View Answer Report Error Discuss

1 2053
Q:

What's the difference between L1 and L2 cache?

Answer

Level 1 cache is internal to the chip, Level 2 is external.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2053
Q:

Non metal found in liquid state?

A) Chlorine B) Bromine
C) Fluorine D) Iodine
 
Answer & Explanation Answer: B) Bromine

Explanation:

Bromine is the Non metal found in liquid state.

Report Error

View Answer Report Error Discuss

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

1 2053
Q:

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives.


I had seen this road many years ago when my parents moved to Mundakotukurussi, our ancestral village. However, in those early years, I hadn't begun exploring the countryside. I stored the unknown road in my head under 'One Day I Will'. Ten years ago, when I recovered from a herniated disc, it was to discover that I had a useless left leg. Though I managed to lose the limp, I hated not being able to stride around as I used to. I needed a challenge to tell myself that I wasn't going to buckle to a creature called sciatica. Thus the 'One Day I Will' arrived. "Where does the road by the medical shop lead to?" I asked my parents while visiting them next. "Chalavara," they said. "It's not an easy road to walk on," my father added. "There are too many ups and downs." Chalavara was a superior grade of a village as compared to Mundakotukurussi, with a high school, a fine library, ATMs and several shops. But it also has two approach roads. The one I had chosen was a narrow back road used by the locals and that settled it for me. I needed to know for myself I could walk a road that wasn't going to be easy. And the next day, I would get up and walk that road again.

 

One Day I Will' is the title of?

A) A village B) The unknown road
C) A tourist place D) A path famous with
 
Answer & Explanation Answer: B) The unknown road

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2053