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:

Define HCMOS?

Answer

High-density n-type Complimentary Metal Oxide Silicon field effect transistor.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2049
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


Ants have been living on the earth for more than 100 million years and can be found almost anywhere on the planet. It is estimated that there are about 20000 different species of ants. For this reason ants have been called Earth's most successful species. If you watch ants for any length of time you will see that they really do communicate with each other and very effectively too. Ants communicate by touching each other with their antennae. Ants also use chemicals called pheromones to leave scent trails for other ants to follow. Ants build many different types of homes. Many ants build simple little mounds out of dirt or sand. Other ants use small sticks mixed with dirt and sand to make a stronger mound that offers protection from rain. Western Harvester ants make a small mound on top, but then tunnels up to 15 feet straight down to hibernate during winter. Ant mounds consist of many chambers connected by tunnels. Different chambers are used for nurseries, food storage, and resting places for the worker ants. Some ants live in wood like termites. Army ants don't make a home at all but travel in a large groups searching for food. Ants are social insects which means they live in large colonies or groups. Some colonies consist of millions of ants. There are three types of ants in each species, the queen, the sterile female workers and males. The male ants only serve one purpose, to mate with future queen ants and do not live very long. The queen grows to adulthood, mates, and then spends rest of her life laying eggs. A colony may have only one queen, or there may be many queens depending on the species. Ants go through four stages of development: egg, larva, pupa and adult.


Why are ants called the 'Earth's' most successful species?

A) Because they have been on earth for more than a 100 million years B) Because they can be found anywhere on earth
C) Because they have been on earth for more than a 100 million years and because they can be found anywhere on earth D) Because there are 2000 different species of ants on earth
 
Answer & Explanation Answer: C) Because they have been on earth for more than a 100 million years and because they can be found anywhere on earth

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2049
Q:

Cross Contamination is prevented by

Answer

Cross Contamination ::


Cross Contamination is nothing but a contamination in a cross way i.e, when a bacteria on a kitchen tool transfers to food via direct contact. Two of the most common kitchen tools usually tend to be a knife or a cutting board. However, it is not just bacteria that gets carried from one place to another — it could also be a virus also.


Cross Contamination is prevented by the following tips ::


1. Use separate equipment


2. Clean and sanitize all work surfaces


3. Remind employees to wash their hands


4. Purchase prepared food


5. Implement a personal hygiene program.

Report Error

View answer Workspace Report Error Discuss

Subject: Biology Exam Prep: AIEEE
Job Role: Analyst

13 2048
Q:

Polyploidy is involved in which of the following examples?

A) XYY males B) Some plants alternate between haploid and diploid phases
C) XO females D) A normal watermelon has 22 chromosomes but seedless watermelons have 33 chromosomes
 
Answer & Explanation Answer: D) A normal watermelon has 22 chromosomes but seedless watermelons have 33 chromosomes

Explanation:
Report Error

View Answer Report Error Discuss

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

2 2048
Q:

Who won the EY Entrepreneur of the Year 2018?

A) Sushil Chandra B) Sunil Arora
C) Siddhartha Lal D) None of the above
 
Answer & Explanation Answer: C) Siddhartha Lal

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2048
Q:

Select the synonym of
sinister

A) malevolent B) magnanimous
C) auspicious D) benevolent
 
Answer & Explanation Answer: A) malevolent

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2048
Q:

What are the blocking and non-blocking assignments in Verilog and which is preferred in Sequential Circutis?

Answer

A blocking assignment is one in which the statements are executed sequentially, i.e., first statement is executed and variable is assigned  a value then second is executed and so on. A non blocking assignment is  one in which statements occurs conturrently, only non blocking assignments should be used in sequential circuit.


 


e.g.


initial


begin


a=b; //blocking


c<=a; //nonblocking


d=c; // blocking


end


 


In this example firstly the value of b is assigned to a and this value is assigned to c only after execution of first statement. the second and the third statements are executed simultaneously, i.e. value a ais assigned to c and previous value if c is assigned to d.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2048