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:

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:

If the latitude and longitudinal extent of an Indian State/UT is 15o48’00’’N to 14o53’15’’N and 74o20’13’’E to 74o40’33’’E, then which one of the following is that State/UT ?

A) Puducherry B) Chandigarh
C) Goa D) Delhi
 
Answer & Explanation Answer: C) Goa

Explanation:

Delhi: Latitude-28.38 N, Longitude-77.12 E

Chandigarh: Latitude-30.44 N, Longitude-76.47 E

Puducherry: Latitude-11° 54' N, Longitude-79° 48' E

Goa: Latitude-15°29'N. N, Longitude-73°48'E.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

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

When the diaphragm and external intercostal muscles contract,

A) the volume of the thorax decreases. B) the volume of the lungs decreases.
C) the volume of the thorax increases. D) the lungs shrink.
 
Answer & Explanation Answer: C) the volume of the thorax increases.

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2048
Q:

Every SOP must have the signature of the ____ within your chain of command before it is a legal document.

Answer

SOP means Standard Operating Procedure.


A standard operating procedure is a set of step-by-step instructions compiled by an organization to help workers carry out complex routine operations. SOPs aim to achieve efficiency, quality output and uniformity of performance, while reducing miscommunication and failure to comply with industry regulations.


 


Every SOP must have the signature of the approving authority within your chain of command before it is a legal document.

Report Error

View answer Workspace Report Error Discuss

6 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 2047