51 Electrical Engineering Interview Questions Answers Guide
51 Electrical Engineering Interview Questions Answers Guide
51 Electrical Engineering Interview Questions Answers Guide
If you find any question or answer is incorrect or incomplete then you can submit your question or
answer directly with out any registration or login at our website. You just need to visit Electrical
Engineering Interview Questions And Answers to add your answer click on the Submit Your Answer
links on the website; with each question to post your answer, if you want to ask any question then you
will have a link Submit Your Question; that's will add your question in Electrical Engineering
category. To ensure quality, each submission is checked by our team, before it becomes live. This
Electrical Engineering Interview preparation PDF was generated at Saturday 6th February, 2021
You can follow us on FaceBook for latest Jobs, Updates and other interviews material.
www.facebook.com/InterviewQuestionsAnswers.Org
If you need any further assistance or have queries regarding this document or its material or any of
other inquiry, please do not hesitate to contact us.
Best Of Luck.
Guide.
ie
w
Q
ue
Question - 1:
In a star connected three phase transformer the
Ans:
st
Question - 2:
A single-phase double-wound transformer consists of
Ans:
A
Question - 3:
er
* a) Shelac
* b) High reluctance silicon steel
* c) Low frequency dust cores
* d) PVC
O
Answer - a
View All Answers
R
Question - 4:
G
Question - 5:
If a motor is required to start against a large starting current, it is usual to use
Ans:
* a) Direct on line starter
* b) Face plate starter
* c) Step down centre tapped starter
* d) Rotor resistance starter
Copyright © https://InterviewQuestionsAnswers.org Page 3/20
Electrical Engineering Interview Questions And Answers
Answer - d
View All Answers
Question - 6:
In
Question - 7:
w
When the field windings of an electrical machine are not connected to its own armature, it is known as
Ans:
* a) Self- excited
Q
* b) Polyphase
* c) Separately-excited
* d) Synchronous
ue
Answer - c
View All Answers
Question - 8:
st
With a star-delta starter, the windings are brought out to a terminal box. The voltage applied to the windings at starting is
Ans:
io
* a) VL ÷ v3
* b) VL x v3
* c) VPhase ÷ v3
ns
* d) VPhase x v3
Answer - a
View All Answers
A
Question - 9:
Particular starting arrangements are used when a motor has a rating greater than
ns
Ans:
* a) 370 microwatts
* b) 0.37 watts
* c) 37 watts
w
* d) 370 watts
Answer - d
View All Answers
er
Question - 10:
s.
* d) No load switching
Answer - d
G
View All Answers
Question - 11:
A device with a BS EN number has been
Ans:
* a) Agreed for use only within the UK
* b) Agreed for operational use within the EU
* c) Standardized for all operational uses only in the UK
* d) Standardized for use in the EU
Answer - d
View All Answers
Question - 12:
Q8 BS 7671 provides appropriate advice on
Ans:
* a) Heights of panels
* b) Design of panels
* c) Environmental conditions
* d) Instrumentation
Answer - c
In
Question - 13:
What degree of protection is specified for protection against a BS finger?
rv
Ans:
* a) IP4XB
* b) IP5XB
* c) IP6XB
ie
* d) IPXXB
Answer - d
w
Question - 14:
Q
* a) BS 7671
* b) On-Site Guide
* c) Electricity at Work Regulations
* d) GS 38
Answer - c
st
Question - 15:
Which of the following are appropriate tests for a completed panel?
ns
Ans:
* a) Flash testing of components
* b) Insulation resistance and polarity
* c) Inspection of conductors for current carrying capacity
* d) Identification of conductors
A
Answer - b
View All Answers
ns
Question - 16:
The purpose of a switch is to open or close a circuit
w
Ans:
* a) In the event of a fault current
* b) Under load conditions
er
Question - 17:
O
A common type of cable termination used for ribbon cables in panel building is
Ans:
R
* a) Pin
* b) Lug
G
* c) Insulation displacement
* d) Screw
Answer - c
View All Answers
Question - 18:
A moving coil meter is not used on an ac circuit because
Ans:
* a) It cannot read very small variations
* b) The direction of the deflection depends upon the direction of the current
* c) It is non linear
* d) It does not use the damping effect
Answer - b
View All Answers
Question - 19:
Copyright © https://InterviewQuestionsAnswers.org Page 5/20
Electrical Engineering Interview Questions And Answers
Question - 20:
Which of the following is not a factor, which would affect the type of termination?
Ans:
ie
* d) Size of conductor
Answer - c
View All Answers
Q
Question - 21:
ue
* c) Ambient temperature
* d) Operating temperature
Answer - c
io
Question - 22:
The purpose of a visual inspection is to ensure compliance with BS 7671, Section
Ans:
* a) 601
A
* b) 712
* c) 413
* d) 314
ns
Answer - b
View All Answers
w
Question - 23:
The purpose of a method statement is to
er
Ans:
* a) Ensure compliance with BS 7671
* b) Identify a safe working practice
s.
Question - 24:
R
Electrostatic sensitive equipment, in transit, need not be protected against damage from
G
Ans:
* a) High temperature
* b) Dust and fibers
* c) Moisture ingress
* d) Day light
Answer - d
View All Answers
Question - 25:
To facilitate ease of installation and assembly of equipment reference is made to
Ans:
* a) BS 7430
* b) Manufacturer's catalogues
* c) GS 38
* d) Data charts
Answer - d
Question - 26:
In
Answer - b
View All Answers
ie
Question - 27:
When an ammeter is connected in a circuit it is essential that it
w
Ans:
* a) Has a very low resistance
* b) Has a very high resistance
Q
Question - 28:
st
* b) BS 4491
* c) BS 4444
* d) BS EN 60898
ns
Answer - c
View All Answers
Question - 29:
A
* a) BS 7671
* b) IEE Guidance Notes
* c) Electricity at Work Regulations
* d) IEE On-Site Guide
w
Answer - c
View All Answers
er
Question - 30:
Which of the following lamps would not normally form part of a highway electrical system?
s.
Ans:
* a) Low pressure mercury (T8-T12)
O
Answer - d
View All Answers
G
Question - 31:
Which legislation states the need to avoid live working unless unreasonable in all circumstances?
Ans:
* a) BS 7671
* b) Guidance Notes 3
* c) On-Site Guide
* d) The Electricity at Work Regulations
Answer - d
View All Answers
Question - 32:
To facilitate safe isolation, voltage indicating devices
Ans:
* a) Must comply with BS 7671
Question - 33:
te
Answer - b
View All Answers
w
Question - 34:
Relevant information for re commissioning street furniture can be found in
Q
Ans:
* a) IEE Guidance Notes 7
ue
* b) Works instructions
* c) The Electricity Supply Regulations
* d) The Petroleum (Consolidation) Act 1928
Answer - b
st
Question - 35:
io
Question - 36:
It is necessary to avoid skin contact with quartz lamps, as it
Ans:
w
Question - 37:
O
Which of the following is a statutory document applicable to operatives carrying out installation and maintenance of highway electrical equipment?
Ans:
R
Question - 38:
Which of the following is a non-statutory document?
Ans:
* a) The New Roads and Street Works Act
* b) The Electricity Safety, Quality, and Continuity Regulations 2002
* c) BS 7671
* d) The Electrical Equipment (Safety) Regulations
Answer - c
View All Answers
Question - 39:
Question - 40:
Low-pressure mercury- vapor lamps should be disposed of by
Ans:
ie
* a) Throwing in a skip
* b) Putting in a glass recycle point (clear glass only)
* c) Using a suitable lamp crusher
w
Question - 41:
ue
When carrying out maintenance work on a distribution board in a busy walkway, it is advisable to protect others by the use of a
Ans:
* a) Warning sign
* b) Safety barrier
st
* c) Temporary bollard
* d) Audible warning device
Answer - b
io
Question - 42:
In order to understand the operating procedure for a particular item of equipment, the best source of information would be the
Ans:
* a) Company sales representative
A
* b) Manufacturers' manual
* c) Manufacturers' catalogue
* d) Circuit diagram
ns
Answer - b
View All Answers
w
Question - 43:
Guidance on regular inspection and testing of portable appliances can be found in
er
Ans:
* a) BS 7671 Requirements for Electrical Installation
* b) IEE Guidance Note 3 Inspection and testing
s.
* c) IEE Code of Practice for In-Service Inspection and Testing of Electrical Equipment
* d) IEE on Site Guide
Answer - c
O
Question - 44:
R
Certain discharge luminaries mounted above rotating machine can give the appearance that the machine is at a standstill. This effect is known as
G
Ans:
* a) Stroboscopic effect
* b) Robotic effect
* c) Rotor effect
* d) Telescopic effect
Answer - a
View All Answers
Question - 45:
Once a low-pressure mercury vapour lamp has lit, the purpose of the choke/ballast unit is to
Ans:
* a) Discharge voltage
* b) Correct power factor
* c) Suppress radio interference
* d) Limit lamp current
Answer - d
Question - 46:
In
* b) Earth faults
* c) Neutral currents
* d) Overloads
rv
Answer - c
View All Answers
ie
Question - 47:
In order to facilitate maintenance of a complex electrical system, the sequence of control for isolation can be best shown using a
w
Ans:
* a) Block diagram
* b) Layout drawing
Q
* c) Circuit diagram
* d) Bar chart
Answer - a
ue
Question - 48:
st
In order to prevent danger during maintenance operations, a voltage warning notice is required on all electrical accessories where
Ans:
* a) Voltage is present
io
* b) The voltage exceeds 230V and such voltage would not be expected
* c) The voltage exceeds 400V
* d) The voltage is below 230V
ns
Answer - b
View All Answers
Question - 49:
A
The Electricity at Work Regulations state that electrical equipment must be maintained to prevent danger. Electrical equipment is defined as all small items of
battery-powered equipment up to and including overhead power lines rated at
ns
Ans:
* a) 230V
* b) 400V
* c) 33kV
w
* d) 400kV
Answer - d
View All Answers
er
Question - 50:
s.
The four electrical tests that should be carried out on a new ring final circuit before it is energized are
Ans:
O
* a) Continuity of protective conductors, continuity of ring final circuits, insulation, - resistance and polarity
* b) Continuity of ring final circuits, insulation resistance, polarity, and earth fault loop - impedance
* c) Insulation resistance, polarity, earth fault loop impedance and continuity of protective - conductors
R
* d) Polarity, earth fault loop-impedance, continuity of protective conductors and Continuity of ring final circuits
Answer - a
G
View All Answers
Question - 51:
A 50 mm x 50 mm steel trunking has a tabulated space factor of 1037. If the tabulated factor for PVC cable having a cross sectional area of 6 mm2 is 21.2, the
maximum number of these cables that can be installed into the trunking is
Ans:
* a) 47
* b) 48
* c) 49
* d) 50
Answer - b
View All Answers
Question - 52:
The most suitable item of equipment to mark a straight line in order to install a horizontal conduit over a distance of 4 m is a
Ans:
Copyright © https://InterviewQuestionsAnswers.org Page 10/20
Electrical Engineering Interview Questions And Answers
* a) Plumb line
* b) Spirit level
* c) Steel tape
* d) Chalk line
Answer - d
In
Question - 53:
A residual current device will disconnect under
rv
Ans:
* a) short circuit conditions only
* b) Both earth fault and short circuit conditions
* c) Earth fault conditions only
ie
Question - 54:
Q
* a) TN-C-S
* b) TN-S
* c) TT
* d) IT
Answer - a
st
Question - 55:
A non-maintained emergency light is classified as NM3. This means that the luminary will illuminate during
ns
Ans:
* a) Normal conditions then automatically switch off after three hours
* b) Any power failure for up to three hours
* c) Both normal and power failure conditions then automatically switch off after three hours
* d) Power failures that last longer than three hours but not shorter than three hours
A
Answer - b
View All Answers
ns
Question - 56:
A circuit wired in 1.5 mm2 thermoplastic (PVC) twin with CPC cable is protected by a 16 A device and is used to supply a 230 V 3 kW water heater. If the cable has
a rated voltage drop of 29 mV/A/m and the circuit is 24 m long, the actual voltage drop will be
w
Ans:
* a) 2.08V
er
* b) 9.07V
* c) 11.14V
* d) 69V
s.
Answer - b
View All Answers
O
Question - 57:
The maximum operating temperature for a thermoplastic (pace) insulated cable with copper conductors is
R
Ans:
* a) 60 OC
G
* b) 70 OC
* c) 105 OC
* d) 160 OC
Answer - b
View All Answers
Question - 58:
For a drawing having a scale of 1:50, a wall 10 m long would be drawn to a length of
Ans:
* a) 10 mm
* b) 20 cm
* c) 50 cm
* d) 10050 mm
Answer - b
View All Answers
Question - 59:
Which of the following is a non-statutory regulation?
Ans:
In
Answer - d
View All Answers
rv
Question - 60:
If a circuit protective device requires 200 A in order to disconnect in the required time, the overall impedance of the earth fault path for a 230 V circuit protected by
ie
* a) 0.86 O
* b) 1.15 O
* c) 2.15 O
* d) 2.30 O
Q
Answer - b
View All Answers
ue
Question - 61:
Which of the following is a transmission voltage?
Ans:
st
* a) 400 kV
* b) 33 kV
* c) 400 V
io
* d) 230 V
Answer - a
ns
View All Answers
Question - 62:
The ratio of the true power to apparent power in an ac circuit is the
A
Ans:
* a) Power consumption
* b) Harmonic current
ns
* c) Power factor
* d) Reactive power
Answer - c
View All Answers
w
Question - 63:
er
In order to determine the amount of accessories required for a particular contract, the best method would be to use the layout drawings and a
Ans:
s.
* a) Site diary
* b) Take off sheet
* c) Day work sheet
O
* d) Time sheet
Answer - b
View All Answers
R
Question - 64:
G
Question - 65:
A suitable means of recording the number of visitors on a large construction site is by the use of a
Ans:
* a) Day work sheet
* b) Timesheet
* c) Take off sheet
* d) Visitors book
Answer - d
View All Answers
In
Question - 66:
On a large construction site, inductions are carried out for new members of staff in order to inform them of the
te
Ans:
* a) Location of the canteen
* b) Requirements within BS 7671
rv
Question - 67:
w
Before any work is done within an electrical installation, the first procedure would be to
Ans:
Q
Question - 68:
The order in which they should be carried out is
io
Ans:
* a) 1, 3, 2, 4, 5
* b) 1, 2, 3, 4, 5
ns
* c) 2, 1, 4, 3, 5
* d) 2, 3, 1, 4, 5
Answer - a
View All Answers
A
Question - 69:
The five main stages of the risk assessment procedure are:
ns
Ans:
* a) Identify
* b) Evaluate
w
* c) Record
* d) Implement
* e) Review
er
Answer - b
View All Answers
s.
Question - 70:
A particular extension lead used on a construction site is colored yellow to
O
Ans:
* a) Indicate its mechanical stress properties
R
Answer - c
View All Answers
Question - 71:
A 110 V, centre-tapped earth, reduced low voltage supply for power tools provides a voltage of
Ans:
* a) 25 V between live conductors
* b) 55 V to earth
* c) 110 V to earth
* d) 12 V SELV
Answer - b
View All Answers
Question - 72:
The purpose of a bonding conductor is to provide
Ans:
* a) An earth fault path
* b) An equal potential zone
* c) Short circuit protection
In
* d) Overload protection
Answer - b
View All Answers
te
Question - 73:
The white or grey PVC outer layer of a twin and CPC flat thermoplastic (PVC) cable is the
rv
Ans:
* a) conductor
ie
* b) Insulation
* c) Conductor
* d) Sheath
w
Answer - d
View All Answers
Q
Question - 74:
A mass of 20 kg is to be raised by a hoist 2 m in 30 seconds. Assuming no losses, the power required to raise this load is
ue
Ans:
* a) 13.08 Watts
* b) 196.2 Watts
* c) 392.4 Watts
st
* d) 1200 Watts
Answer - a
View All Answers
io
Question - 75:
Where P = V I. The value V can be determined using
ns
Ans:
* a) V = _I_P
* b) V = P I
* c) V = P - I
A
* d) V = _P_I
Answer - d
ns
Question - 76:
Four resistors having values of 2 O, 2 O, 5 O, and 20 O are connected in a parallel circuit arrangement. The total resistance of this circuit is
w
Ans:
* a) 0.8 O
er
* b) 1.25 O
* c) 29 O
* d) 400 O
s.
Answer - a
View All Answers
O
Question - 77:
An increase in current through a conductor will lead to
R
Ans:
* a) A decrease in conductor temperature
G
Question - 78:
A single rotation of an alternator, intended to provide a 50 Hz supply frequency, will take
Ans:
* a) 2 ms
* b) 20 ms
* c) 50 ms
* d) 5000 ms
Answer - b
View All Answers
Question - 79:
The Tesla is the unit of
Ans:
In
* a) Magnetic flux
* b) Molecular flux
* c) Magnetic flux density
* d) Molecular flux density
te
Answer - c
View All Answers
rv
Question - 80:
Using a scale of 1:50, a 10 mm measurement taken from a plan would be equal to an actual measurement of
ie
Ans:
* a) 5 mm
w
* b) 5 cm
* c) 0.5 m
* d) 5 m
Answer - c
Q
Question - 81:
To ensure that a particular item of electro technical equipment meets a particular British Standard or BSEN Harmonized Standard, the best source of information
would be the
Ans:
st
Question - 82:
An independent regulatory body responsible for monitoring standards of electrical installation contractors is the
A
Ans:
* a) Electrical Institute Council
* b) Institute of Electrical Engineers
ns
Question - 83:
er
* a) Black
* b) Red
* c) Beige
O
* d) Blue
Answer - a
View All Answers
R
Question - 84:
G
The type of fire extinguisher, which would not be suitable for flammable liquids, is
Ans:
* a) Dry powder
* b) Water
* c) Carbon dioxide
* d) Foam
Answer - b
View All Answers
Question - 85:
First aid points are indicated using signs bearing a white cross on a
Ans:
* a) Yellow background
* b) Blue background
* c) Red background
* d) Green background
Answer - d
View All Answers
In
Question - 86:
When carrying out repairs to the base of a street lighting column it is essential to wear
te
Ans:
* a) A safety harness
* b) High visibility clothes
rv
* c) Gauntlets
* d) High voltage clothing
Answer - b
ie
Question - 87:
w
Prior to using an electric saw on a construction site, a user check finds that the insulation on the supply flex is damaged. The correct procedure would be to
Ans:
Q
Question - 88:
Which of the following documents is non-statutory?
io
Ans:
* a) Health and Safety at Work Act
* b) Electricity at Work Regulations
ns
* c) COSHH
* d) BS 7671- Requirements for Electrical Installations
Answer - d
View All Answers
A
Question - 89:
Draw the state diagram for a circuit that outputs?
ns
Ans:
Draw the state diagram for a circuit that outputs a "1" if the aggregate serial binary input is divisible by 5. For instance, if the input stream is 1, 0, 1, we output a "1"
(since 101 is 5). If we then get a "0", the aggregate total is 10, so we output another "1" (and so on).
w
We don't need to keep track of the entire string of numbers - if something is divisible by 5, it doesn't matter if it's 250 or 0, so we can just reset to 0. So we really only
need to keep track of "0" through "4".
View All Answers
er
Question - 90:
s.
Basically, you can tie the inputs of a NAND gate together to get an inverter, so...
View All Answers
R
Question - 91:
Explain the differences between "Direct Mapped", "Fully Associative", and "Set Associative" caches
G
Ans:
If each block has only one place it can appear in the cache, the cache is said to be direct mapped. The mapping is usually (block-frame address) modulo (number of
blocks in cache).
If a block can be placed anywhere in the cache, the cache is said to be fully associative.
If a block can be placed in a restricted set of places in the cache, the cache is said to be set associative. A set is a group of two or more blocks in the cache. A block is
first mapped onto a set, and then the block can be placed anywhere within the set. The set is usually chosen by bit selection; that is, (block-frame address) modulo
(number of sets in cache). If there are n blocks in a set, the cache placement is called n-way set associative.
View All Answers
Question - 92:
Given the following FIFO and rules, how deep does the FIFO need to be to prevent underflowing or overflowing?
Ans:
Given the following FIFO and rules, how deep does the FIFO need to be to prevent underflowing or overflowing?
RULES:
1) frequency(clk_A) = frequency(clk_B) / 4
Question - 93:
Write a function to output a diamond shape according to the given (odd) input?
rv
Ans:
Examples: Input is 5 Input is 7
<pre>
ie
* *
*** ***
***** *****
w
*** *******
* *****
***
*
Q
</pre>
### BEGIN PERL SNIPET ###
for ($i = 1; $i <= (($input * 2) - 1); $i += 2) {
ue
print "n";
}
### END PERL SNIPET ###
View All Answers
A
Question - 94:
ns
Write a function to determine whether a string is a palindrome (same forward as reverse, such as "radar" or "mom")
Ans:
/* BEGIN C SNIPET */
#include
w
}
if ( 0 == strcmp ( *tmp_str, *in_str ) ) printf ("String is a palindrome");
else printf ("String is not a palindrome");
O
}
/* END C SNIPET */
View All Answers
R
Question - 95:
G
In C, explain the difference between the & operator and the * operator?
Ans:
& is the address operator, and it creates pointer values.
* is the indirection operator, and it preferences pointers to access the object pointed to.
Example:
In the following example, the pointer ip is assigned the address of variable i (&i). After that assignment, the expression *ip refers to the same object denoted by i:
int i, j, *ip;
ip = &i;
i = 22;
j = *ip; /* j now has the value 22 */
*ip = 17; /* i now has the value 17 */
View All Answers
Question - 96:
Write the code for finding the factorial of a passed integer. Use a recursive subroutine?
Ans:
Copyright © https://InterviewQuestionsAnswers.org Page 17/20
Electrical Engineering Interview Questions And Answers
} else {
return 1;
}
te
}
// END PERL SNIPET
View All Answers
rv
Question - 97:
Write the code to sort an array of integers?
ie
Ans:
/* BEGIN C SNIPET */
w
x[j+1] = temp;
} /* end if */
} /* end for j */
} /* end for i */
st
} /* end bubblesort */
/* END C SNIPET */
Some optimizations that can be made are that a single-element array does not need to be sorted; therefore, the "for i" loop only needs to go from 0 to lim-1. Next, if at
io
some point during the iterations, we go through the entire array WITHOUT performing a swap, the complete array has been sorted, and we do not need to continue.
We can watch for this by adding a variable to keep track of whether we have performed a swap on this iteration.
View All Answers
ns
Question - 98:
What is the difference between running the following snipet of code on Verilog vs Vera?
Ans:
A
What is the difference between running the following snipet of code on Verilog vs Vera?
fork {
ns
task_one();
#10;
task_one();
}
task task_one() {
w
cnt = 0;
for (i = 0; i < 50; i++) {
cnt++;
er
}
}
View All Answers
s.
Question - 99:
O
Using the given, draw the waveforms for the following versions of a?
Ans:
R
Using the given, draw the waveforms for the following versions of a (each version is separate, i.e. not in the same run):
reg clk;
reg a;
G
Question - 100:
What is the difference between:
c = foo ? a : b;
and
if (foo) c = a;
else c = b;
Ans:
Copyright © https://InterviewQuestionsAnswers.org Page 18/20
Electrical Engineering Interview Questions And Answers
The ? merges answers if the condition is "x", so for instance if foo = 1'bx, a = 'b10, and b = 'b11, you'd get c = 'b1x.
On the other hand, if treats Xs or Zs as FALSE, so you'd always get c = b.
View All Answers
In
Question - 101:
What is the difference between the following two lines of Verilog code?
te
Ans:
What is the difference between the following two lines of Verilog code?
#5 a = b;
rv
a = #5 b;
#5 a = b; Wait five time units before doing the action for "a = b;".
The value assigned to a will be the value of b 5 time units hence.
a = #5 b; The value of b is calculated and stored in an internal temp register.
ie
Question - 102:
Given the following snipet of Verilog code draw out the waveforms for clk?
Q
Ans:
Given the following snipet of Verilog code, draw out the waveforms for clk and a
ue
10 30 50 70 90 110 130
___ ___ ___ ___ ___ ___ ___
clk ___| |___| |___| |___| |___| |___| |___| |___
io
a ___________________________________________________________
</pre>This obviously is not what we wanted, so to get closer, you could use
"always @ (posedge clk)" instead, and you'd get<pre>
ns
10 30 50 70 90 110 130
___ ___ ___ ___ ___ ___ ___
clk ___| |___| |___| |___| |___| |___| |___| |___
___ ___
a _______________________| |___________________| |_______
</pre>
A
Question - 103:
Given the following Verilog code, what value of "a" is displayed?
Ans:
w
a = 0;
a <= 1;
$display(a);
end
s.
This is a tricky one! Verilog scheduling semantics basically imply a four-level deep queue for the current simulation time:
1: Active Events (blocking statements)
2: Inactive Events (#0 delays, etc)
O
Question - 104:
What is the difference between a Verilog task and a Verilog function?
Ans:
The following rules distinguish tasks from functions:
A function shall execute in one simulation time unit;
a task can contain time-controlling statements.
A function cannot enable a task;
a task can enable other tasks or functions.
A function shall have at least one input type argument and shall not have an output or inout type argument;
a task can have zero or more arguments of any type.
A function shall return a single value; a task shall not return a value.
View All Answers
Follow us on FaceBook
www.facebook.com/InterviewQuestionsAnswers.Org
Follow us on Twitter
https://twitter.com/InterviewQA