Questions

Q:

How can you get/set an environment variable from a program?

Answer

Getting the value of an environment variable is done by using `getenv()’. Setting the value of an environment variable is done by using `putenv()’

Report Error

View answer Workspace Report Error Discuss

Subject: Operating Systems Exam Prep: GATE

2 3579
Q:

The earliesr cirty discovered in India was

A) Harappa B) Rangpur
C) Mohenjodaro D) Sindh
 
Answer & Explanation Answer: A) Harappa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

2 3579
Q:

What are the different Adder circuits you studied?

Answer

Adders are generally of five types:


1.Ripple Carry Adder:


The Ripple carry adder(RCA) consists of a building block named Half Adder(HA) which is cascaded to form a Full Adder(FA). These buildingblocks HAs and FAs are also the building blocks of all types of adders.The n full adders are cascaded to form n bit RCA.


The full adder has three input pins(input Ai,input Bi,carryin Ci) and two output pins(Sum and Ci+1).Its equations are:


Sum=Ai^Bi^Ci


Ci+1=Ai.Bi+Bi.Ci+Ai.Ci


 


2. Carry Lookahead Adder:


The Carry Lookahead Adder(CLA) reduces the delay as that in RCA. Let Gi=Ai.Bi, and Pi=Ai^Bi, then Ci+1=Gi+Pi.Ci.


The expressions for Sum and Ci+1 is then defined completely in terms of input pins rather wait for input carry to appear.


 


3. Carry Select Adder:


The carry select adder uses duplicate modules for each combination of input carry(i.e. 1 and 0).The multiplexers then select the appropriate sum and carry output according to the carry output of the preceding stages.


 


4. Carry Skip Adder:


The carry skip adder are as fast as carry lookahead adders which are the fastest adders but its spped decreases to about 20-30% if input operands are 64-bit or more. In these adders we divide the input bit stream into various blocks and make use of two observations:


-if each element of the two bit streams are unequal,i.e. Ai!=Bi than the carry input of the block is equal to the carry input.


-if each element of the two bit streams are equal,i.e. Ai=Bi than the carry input of the block is opposite of the carry input.


 


5. Carry Save Adder:


The carry save adder reduces the addition of three elements into addition of two elements,i.e. if you want sum of nine numbers it reduces it into sum of six numbers. In first step the sum of three numbers is calculated without bothering for the carry.During the second step only carry is calculated which is then added to the generated sum to give the required sum. 

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3579
Q:

Which of the following is a film directed by Mr. Buddhadeb Das Gupta

A) Krantiveer B) Mohra
C) Character D) 1942 - A Love Story
 
Answer & Explanation Answer: A) Krantiveer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3578
Q:

Describe the Buddy system of memory allocation.

Answer

Free memory is maintained in linked lists, each of equal sized blocks. Any such block is of size 2^k. When some memory is required by a process, the block size of next higher order is chosen, and broken into two. Note that the two such pieces differ in address only in their kth bit. Such pieces are called buddies. When any used block is freed, the OS checks to see if its buddy is also free. If so, it is rejoined, and put into the original free-block linked-list.

Report Error

View answer Workspace Report Error Discuss

1 3578
Q:

Which of the following is used to preserve specimens in the biology laboratory?

A) Phenol B) Benzaldehyde
C) Formaldehyde D) Acetic acid
 
Answer & Explanation Answer: C) Formaldehyde

Explanation:

A 40% solution of Formaldehyde known as Formalin is used in the preservation of biological specimens because of its hardening action on proteins. 

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3578
Q:

What does 'M' stand for in Roman numerals?

A) 1 B) 50
C) 500 D) 1000
 
Answer & Explanation Answer: D) 1000

Explanation:

Letters of the alphabet used in ancient Rome to represent numbers:

I = 1;

V = 5;

X = 10;

L = 50;

C = 100;

D = 500;

M = 1000.

The numbers one through ten are written I, II, III, IV, V, VI, VII, VIII, IX, and X.

Report Error

View Answer Report Error Discuss

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

4 3577
Q:

Gasoline is useful in cars because it has

A) chemical potential energy B) electrical potential energy
C) gravitational potential energy D) kinetic energy
 
Answer & Explanation Answer: A) chemical potential energy

Explanation:

Gasoline is a colorless petroleum-derived flammable liquid that is used primarily as a fuel in spark-ignited internal combustion engines. It consists mostly of organic compounds obtained by the fractional distillation of petroleum, enhanced with a variety of additives. It is also called as Petrol. It has chemical potential energy, in combustion it is turned into light, sound, heat and kinetic energy.

Report Error

View Answer Report Error Discuss

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

2 3575