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

What is a job queue?

Answer

When a process enters the system it is placed in the job queue.

Report Error

View answer Workspace Report Error Discuss

0 2066
Q:

What is a device queue?

Answer

A list of processes waiting for a particular I/O device is called device queue.

Report Error

View answer Workspace Report Error Discuss

0 2066
Q:

When should you stop at green and go at red?

Answer

When you are eating a Watermelon, we eat what is red and stop at green layer.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: TOEFL , GRE , GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

2 2066
Q:

Select the word with the correct spelling.

A) terains B) priestly
C) fereted D) ablasion
 
Answer & Explanation Answer: B) priestly

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2066
Q:

Rate of change of displacement is known as ............

A) Acceleration B) Velocity
C) Speed D) Distance
 
Answer & Explanation Answer: B) Velocity

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT

4 2066
Q:

In union terms, a direct strike occurs

A) when people refuse to patronize companies that handle products of struck companies B) when an organized body of workers withholds its labor to force the employer to comply with its demands
C) when union members and their supporters refuse to buy products from a company being struck D) when workers who have no particular grievance of their own and who may or may not have the same employer decide to strike in support of others
 
Answer & Explanation Answer: B) when an organized body of workers withholds its labor to force the employer to comply with its demands

Explanation:

A direct strike occurs when an organized body of workers withholds its labor to force the employer to comply with its demands.

Report Error

View Answer Report Error Discuss

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

1 2066
Q:

Kyoto Protocol is related to

A) Wetland conservation B) Ozone depletion
C) Air pollution D) Climate change
 
Answer & Explanation Answer: D) Climate change

Explanation:
Report Error

View Answer Report Error Discuss

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

5 2066