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

Which state is the leading producer of manganese in India?

A) Maharashtra B) Karnataka
C) Odisha D) Andhra Pradesh
 
Answer & Explanation Answer: C) Odisha

Explanation:

Odisha state is the leading producer of manganese in India producing 37% of the total manganese production in the country and followed by Maharashtra with 24% and Andhra Pradesh. Karnataka and Madhya Pradesh.

Report Error

View Answer Report Error Discuss

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

9 2049
Q:

Globalization has the largest effect on

A) Politics B) Economy
C) Employment D) Business
 
Answer & Explanation Answer: B) Economy

Explanation:

Globalization has the largest effect on the economies. Globalisation is the process of interaction and integration between people, companies, and governments worldwide.

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

A large underground economy results in an

A) Overstated GDP B) Understated GDP price index
C) Overstated GDP price index D) Understated GDP
 
Answer & Explanation Answer: D) Understated GDP

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2049
Q:

The largest expenditure component of GDP is

A) Consumption B) Net exports
C) Government spending D) Investments
 
Answer & Explanation Answer: A) Consumption

Explanation:
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 2049
Q:

Nucleic acid hybridization is based on the fact that

A) a chromosome is composed of complementary strands B) all cells have DNA
C) the strands of DNA can be separated D) pairing between complementary bases occurs
 
Answer & Explanation Answer: D) pairing between complementary bases occurs

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2049
Q:

Atoms of the same element can differ in

A) Atomic number B) Atomic mass
C) electrons D) None of the above
 
Answer & Explanation Answer: B) Atomic mass

Explanation:

Atoms of the same element can have same atomic number and number of electrons since, the atomic number is the number of protons and the number of protons and eectrons are the same in an element.

 

Hence, the atoms of the same element may differ in their atomic mass since it depends on the number of neutrons it holds and such atoms are called isotopes.

Report Error

View Answer Report Error Discuss

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

1 2049
Q:

What are good sources of fat for the body?

A) Fish and eggs B) Nuts
C) Cheese D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

The foods that are good source of fat and incredibly healthy to the body ar fatty fish, eggs, nuts, cheese, avocados, dark chocolates, etc...

Report Error

View Answer Report Error Discuss

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

4 2049