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

Maryland was established as a refuge for which group?

A) Orthodox B) Catholics
C) Anabapists D) None of the above
 
Answer & Explanation Answer: B) Catholics

Explanation:

Maryland was established by Calvert brothers as a refuge for Roman Catholics prosecuted in England.

Report Error

View Answer Report Error Discuss

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

5 2053
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 2052
Q:

The island of Sri Lanka formerly known as

A) Maldives B) Bali
C) Ceylon D) Madagaskar
 
Answer & Explanation Answer: C) Ceylon

Explanation:

In the history, at the time of British rule in 1800's, the island of Sri Lanka formerly known as Ceylon. It is a south asian country located in the northest of the indian ocean.

the_island_of_sri_lanka_formerly_known_as1553080594.png image

Report Error

View Answer Report Error Discuss

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

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

3 functions of the nervous system?

Answer

The nervous system is the part of an animal that coordinates its actions by transmitting signals to and from different parts of its body.


 


In vertebrates it consists of two main parts, the central nervous system (CNS) and the peripheral nervous system (PNS). The CNS consists of the brain and spinal cord. The PNS consists mainly of nerves, which are enclosed bundles of the long fibers or axons, that connect the CNS to every other part of the body.


 


The nervous system has three main functions:


* To collect sensory input from the body and external environment.


* To process and interpret the sensory input.


* To respond appropriately to the sensory input.

Report Error

View answer Workspace Report Error Discuss

Subject: General Science Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

4 2052
Q:

The largest component of GDP is

A) income B) wages
C) consumption D) imports
 
Answer & Explanation Answer: C) consumption

Explanation:

Consumption is the largest component of GDP.

Report Error

View Answer Report Error Discuss

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

1 2052