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

If 84+96=4842, then 36+78= ?

A) 3918 B) 3678
C) 3819 D) 1839
 
Answer & Explanation Answer: A) 3918

Explanation:
Report Error

View Answer Report Error Discuss

9 2136
Q:

What is Sales Order (SO)?

Answer

The Sales Order is a confirmation document sent to the customers before delivering the goods or services. 


Sales Order (SO) can be created once the quote is accepted by your prospective customer and the Purchase Order (PO) is sent by the customer for further processing.

Report Error

View answer Workspace Report Error Discuss

Subject: Marketing and Sales Exam Prep: Bank Exams , CAT
Job Role: Analyst , Bank PO

4 2136
Q:

Chief Ministers of States are members of _________________

A) NITI Commission(Aayog) B) Finance Commission
C) National Development Council D) Election Commission
 
Answer & Explanation Answer: C) National Development Council

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

3 2136
Q:

The four pillars of smart planning are vital to the success of Smart Cities and the Regional Smart City Initiative. Which of the following pillar is not them? 

A)  MOBILITY  B) SUSTAINABILITY
C) INFRASTRUCTURE D) CONNECTIVITY  
 
Answer & Explanation Answer: C) INFRASTRUCTURE

Explanation:

The four pillars of smart planning are vital to the success of Smart Cities and the Regional Smart City Initiative. While each is important in its own way, the four are interdependent. These are MOBILITY, SUSTAINABILITY, CONNECTIVITY and SECURITY.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: AIEEE , Bank Exams , CAT

0 2136
Q:

A person lifts luggage of 20 kg from the ground and puts it on his head 2 in above the ground. Calculate the work done by him. (g = l0 )

A) 20 J B) 400J
C) 200J D) 40J
 
Answer & Explanation Answer: B) 400J

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2136
Q:

What is the name of the device used to convert alternating current into direct current ?

A) Ammeter B) Galvanometer
C) Rectifier D) Transformer
 
Answer & Explanation Answer: C) Rectifier

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 2136
Q:

Who approved 20 lakh houses for urban poor under the PM Awas Yojna recently?

A) Smriti Irani B) Arun Jaitley
C) Sushnia Swaraj D) Shri Venkaiah Naidu
 
Answer & Explanation Answer: D) Shri Venkaiah Naidu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT

0 2136