Texas Instruments
100+ Interview Questions and Answers
Assume you initially have an empty array say ‘ARR’.
You need to return the updated array provided that some ‘Q’ number of queries were performed on this array.
The queries are of two types:
1. 1 ‘VAL’,...read more
The problem requires updating an array based on a series of queries, where each query can either insert a value or perform a bitwise XOR operation on all elements.
Use a loop to iterate through each query and update the array accordingly
For type 1 query, append the value to the end of the array
For type 2 query, perform a bitwise XOR operation on each element of the array with the given value
Return the updated array after processing all the queries
Q2. There is a gun in which 2 consecutive slots of the 6 slots are filled. One of the 6 slots is chosen at random and fired at you. It misses. Choose an option between taking the next slot after the one that missed...
read moreIt is better to take another random shot.
The probability of hitting the target is higher when taking another random shot.
Taking the next slot after the one that missed you does not increase the chances of hitting the target.
Each slot has an equal probability of being chosen, so the odds are the same for both options.
‘N’ people are standing in a circle numbered from ‘1’ to ‘N’ in clockwise order. First, the person numbered 1 will proceed in a clockwise direction and will skip K-1 persons including itself and will ki...read more
This question is about finding the position of the last person surviving in a circle of N people, where each person kills the Kth person in a clockwise direction.
Implement a function that takes the number of test cases, N, and K as input
For each test case, simulate the killing process by iterating through the circle and skipping K-1 people
Keep track of the position of the last person surviving and return it as the output
You have been given an array/list 'HEIGHTS' of length ‘N. 'HEIGHTS' represents the histogram and each element of 'HEIGHTS' represents the height of the histogram bar. Consider th...read more
The task is to find the largest rectangle possible in a given histogram and return its area.
Iterate through the histogram and maintain a stack to keep track of the indices of the bars in non-decreasing order of heights.
For each bar, calculate the area of the rectangle that can be formed using that bar as the smallest bar.
To calculate the area, pop the bars from the stack until a bar with a smaller height is encountered.
The width of the rectangle will be the difference between...read more
Q5. Arrange 4 balls in space such that they are equidistant from each other
Arrange 4 balls equidistant from each other in space.
Place 3 balls in a triangle formation on the same plane
Place the 4th ball directly above the center of the triangle
Ensure that the distance between each ball is equal
Alternatively, place the 4 balls at the vertices of a tetrahedron
Q6. If two sine waves of different frequency are added will resultant wave be periodic. If so what is period
Yes, the resultant wave will be periodic with a period equal to the least common multiple of the two frequencies.
The period of the resultant wave is determined by the least common multiple of the two frequencies.
If the frequencies are incommensurable, the resultant wave will not be periodic.
If the frequencies are harmonically related, the resultant wave will have a period equal to the fundamental period of the lower frequency.
The amplitude and phase of the resultant wave will...read more
Stark Industry is planning to organize Stark Expo, for which various departments have to organize meetings to check their preparations. Since Stark Tower has limited rooms available for the meeting, ...read more
The task is to find the minimum number of conference rooms required to organize all the meetings.
Sort the meetings based on their start time.
Initialize a priority queue to store the end times of the meetings in ascending order.
Iterate through the sorted meetings and check if the start time of the current meeting is greater than the end time of the meeting at the top of the priority queue.
If it is, remove the meeting from the priority queue.
Add the end time of the current meet...read more
You are given an M X N matrix of integers ARR. Your task is to find the maximum sum rectangle.
Maximum sum rectangle is a rectangle with the maximum value for the sum of integers present wi...read more
The task is to find the maximum sum rectangle in a given matrix of integers.
Iterate through all possible rectangles in the matrix
Calculate the sum of each rectangle
Keep track of the maximum sum rectangle found so far
Return the maximum sum
Q9. Add capacitor parallel to one resistor and tell frequency response
Adding a capacitor in parallel to a resistor changes the frequency response of the circuit.
The cutoff frequency of the circuit decreases as the capacitance increases.
The circuit becomes a high-pass filter with a -20dB/decade slope above the cutoff frequency.
The impedance of the capacitor decreases as frequency increases, allowing more current to flow through the circuit.
The resistor and capacitor form a voltage divider, affecting the gain of the circuit at different frequenci...read more
Q10. If a sine wave is sampled at 1.5 times its original frequency, can the original wave be retained? (Ans: Yes)
Sampling a sine wave at 1.5 times its original frequency retains the original wave.
The original wave can be reconstructed using interpolation techniques.
The Nyquist-Shannon sampling theorem states that a signal can be perfectly reconstructed if it is sampled at twice its highest frequency component.
Sampling at 1.5 times the original frequency satisfies the Nyquist-Shannon sampling theorem.
This technique is used in digital audio processing.
Q11. Resistances R, 5R, 9R, 13R... are placed in series. What is the cumulative resistance
Resistances in series: R, 5R, 9R, 13R... What is the cumulative resistance?
Add all resistances to get the cumulative resistance
Cumulative resistance = R + 5R + 9R + 13R + ...
The formula for the nth term is Tn = R + (n-1)4R
The sum of n terms is Sn = n/2(2R + (n-1)4R)
Given a string, determine if it is a palindrome, considering only alphanumeric characters.
Palindrome
A palindrome is a word, number, phrase, or other sequences of characters which read the sam...read more
You have been given a Snake and Ladder Board with 'N' rows and 'N' columns with the numbers written from 1 to (N*N) starting from the bottom left of the board, and alternating direction each row...read more
The question is about finding the minimum number of throws required to reach the last cell on a Snake and Ladder board.
The board is represented as a 2D matrix with N rows and N columns.
Each square on the board can have a snake or ladder, represented by a non-negative number.
The destination of a snake or ladder is the value at the corresponding square.
You can only take a snake or ladder once per move.
If the destination of a snake or ladder is the start of another snake or ladd...read more
Q14. What is the rough output of a black box that kills lie frequencies, taking a rectangular pulse as input
The rough output of the black box is a rectangular pulse with the lie frequencies removed.
The black box filters out lie frequencies from the input rectangular pulse.
The output is a rectangular pulse with only the truthful frequencies remaining.
The exact shape and characteristics of the output pulse depend on the specific design of the black box.
Q15. A rectangular pulse was passed through a black box which destroys high frequency .How would output look?
The output will have the high frequency components of the rectangular pulse removed.
The output will have a smoother shape compared to the input.
The sharp edges of the rectangular pulse will be rounded off.
The duration of the pulse will remain the same.
The amplitude of the pulse may be attenuated depending on the characteristics of the black box.
The output may exhibit ringing or overshoot due to the removal of high frequency components.
Q16. How can you swap the values of 2 variables without using a 3rd temporary variable. FOLLOW UP: how can this be generalized for cyclic rotations of 3,4... N variables
To swap the values of 2 variables without a temporary variable, use bitwise XOR operation.
Use bitwise XOR operation to swap the values of two variables without a temporary variable
For example, if a = 5 and b = 7, after swapping, a = 2 and b = 5
To generalize for cyclic rotations of N variables, use a loop and bitwise XOR operation
Q17. A transfer function H(Z) in the form of a/b was given. I was asked to implement the block diagram for the given transfer function.
The question asks to implement a block diagram for a given transfer function in the form of a/b.
Identify the numerator and denominator polynomials of the transfer function
Draw blocks for each polynomial term, representing multiplication and addition operations
Connect the blocks according to the transfer function equation
Include any necessary delays or feedback loops
Label the inputs and outputs of the block diagram
Q18. State the sampling Theorem? Is it better to have a the sampling frequency slightly more than twice the bandwidth? Why?
The sampling theorem states that a signal must be sampled at a rate at least twice its bandwidth to avoid aliasing.
The sampling theorem is also known as the Nyquist-Shannon sampling theorem.
Sampling at a rate slightly more than twice the bandwidth ensures that all the information in the signal is captured without distortion.
If the sampling frequency is too low, aliasing can occur, where high-frequency components are incorrectly represented as lower frequencies.
For example, if...read more
Design a data structure to implement ‘N’ stacks using a single array of size ‘S’. It should support the following operations:
push(X, M): Pushes an element X into the Mth stack. Returns true...read more
Q20. Add resistor to the capacitor and tell frequency response
Adding a resistor to a capacitor changes the frequency response of the circuit.
The cutoff frequency of the circuit decreases with increasing resistance.
The circuit becomes more attenuative at higher frequencies.
The time constant of the circuit increases with increasing resistance.
The circuit becomes more stable and less prone to oscillation.
Example: A low-pass filter with a 10uF capacitor and a 1kohm resistor has a cutoff frequency of 15.9Hz.
Q21. How can a 2:1 multiplexer be used as an AND gate
A 2:1 multiplexer can be used as an AND gate by connecting one input to logic 1 and the other input to the desired input signal.
Connect one input of the 2:1 multiplexer to logic 1 (high voltage) and the other input to the desired input signal.
Set the select input of the multiplexer to logic 0 (low voltage) to select the input connected to logic 1.
The output of the multiplexer will then be the logical AND of the selected input and the desired input signal.
Write a program to find the factorial of a number.
Factorial of n is:
n! = n * (n-1) * (n-2) * (n-3)....* 1
Output the factorial of 'n'. If it does not exist, output 'Error'.
Input format :...read more
Q23. What does odd and even harmonics of fourier series signify
Odd harmonics represent asymmetry in a signal while even harmonics represent symmetry.
Odd harmonics are multiples of the fundamental frequency and have a phase shift of 90 degrees.
Even harmonics are also multiples of the fundamental frequency but have a phase shift of 0 degrees.
Odd harmonics represent the asymmetry in a signal, while even harmonics represent the symmetry.
For example, a square wave has odd harmonics only, while a triangle wave has both odd and even harmonics.
Q24. for an embedded device what do you prefer? with OS or without OS?
It depends on the requirements and constraints of the project.
If the project has limited resources, a bare-metal approach without an OS may be more appropriate.
If the project requires complex functionality and multitasking, an OS may be necessary.
An OS can provide better security and easier maintenance.
Examples of OS for embedded devices are FreeRTOS, uC/OS, and Linux.
Consider the cost and time-to-market implications of using an OS.
Q25. What is the difference between DTFT and DFT?
DTFT is a continuous function that represents the frequency content of a discrete-time signal, while DFT is a discrete function that represents the frequency content of a finite-length sequence.
DTFT is defined for both finite and infinite-length signals, while DFT is only defined for finite-length sequences.
DTFT is a continuous function in frequency domain, while DFT is a discrete function in frequency domain.
DTFT provides a complete representation of the frequency content of...read more
Q26. Explain Fourier Series based on your understanding
Fourier series is a mathematical representation of a periodic function as a sum of sine and cosine functions.
Fourier series is used to analyze and synthesize periodic signals.
It decomposes a periodic function into a sum of sine and cosine functions with different frequencies and amplitudes.
The Fourier coefficients represent the amplitude and phase of each frequency component.
The Fourier series can be used to approximate non-periodic functions by extending the function periodi...read more
Q27. H(Z)=1/(1-Z^(-1)). Is the system with the given transfer function stable?
No
The system is not stable because the transfer function has a pole at z = 1
A stable system should have all poles inside the unit circle in the z-plane
In this case, the pole at z = 1 lies on the unit circle, making the system marginally stable
Q28. Can 4 equidistant points exist in space ?
Yes, 4 equidistant points can exist in space.
Equidistant points are points that are equally spaced apart from each other.
In a 2D space, 4 equidistant points can form a square.
In a 3D space, 4 equidistant points can form a tetrahedron.
Equidistant points can also exist in higher dimensions.
Q29. Draw a functional block diagram of a transducer
A transducer is a device that converts one form of energy into another. It typically consists of a sensor, signal conditioning circuitry, and an output interface.
A transducer converts one form of energy into another.
It consists of a sensor that detects the input energy.
Signal conditioning circuitry processes and amplifies the sensor signal.
The output interface converts the processed signal into a usable form.
Examples of transducers include microphones, thermocouples, and pres...read more
Q30. What are IIR and FIR filters?
IIR and FIR filters are two types of digital filters used in signal processing.
IIR (Infinite Impulse Response) filters use feedback to create a response to an input signal.
FIR (Finite Impulse Response) filters only use feedforward and have a finite duration of response.
IIR filters can be implemented with fewer coefficients but may be less stable than FIR filters.
FIR filters have linear phase response and are generally more stable than IIR filters.
Example of IIR filter: Butter...read more
Q31. A sequence x[n] was given. Find y[n] if H(Z)=1-Z^(-4)
The output sequence y[n] can be obtained by convolving the input sequence x[n] with the impulse response h[n] = [1, 0, 0, 0, -1].
The given transfer function H(Z) represents a discrete-time system with a finite impulse response (FIR) filter.
To find y[n], we need to convolve x[n] with the impulse response h[n] = [1, 0, 0, 0, -1].
Convolution can be performed by sliding the impulse response over the input sequence and summing the products of corresponding samples.
The resulting se...read more
Q32. Why is there an infinite capacitor in a MOSFET amplifier?
Q33. What happens as I vary both inputs of a NAND gate from 0-5 V
Q34. What is the purpose of ios::basefield in the following statement? cout.setf ( ios::hex, ios::basefield ) ;
ios::basefield sets the basefield format flag for output operations.
ios::basefield is an enumeration that specifies the basefield format flag for output operations.
The basefield format flag determines the base used for integer output.
Examples of basefield values include ios::dec (decimal), ios::hex (hexadecimal), and ios::oct (octal).
Q35. Output Response of RLC circuits
The output response of RLC circuits is the behavior of the circuit's output voltage or current over time.
The output response depends on the values of the resistance (R), inductance (L), and capacitance (C) in the circuit.
RLC circuits can exhibit different types of responses, such as overdamped, underdamped, or critically damped.
The response can be analyzed using differential equations or Laplace transforms.
For example, an overdamped RLC circuit will have a slow and smooth res...read more
Q36. explain the working of a capacitor and resistor and relation between resistance and length , area
Capacitors store electrical energy while resistors limit the flow of current. Resistance is directly proportional to length and inversely proportional to area.
Capacitors store electrical energy by creating an electric field between two conductive plates separated by an insulating material
Resistors limit the flow of current in a circuit by dissipating energy in the form of heat
The resistance of a resistor is directly proportional to its length and inversely proportional to its...read more
Q37. Effect of temperature on Leakage current
Temperature has a significant effect on leakage current in analog circuits.
Leakage current increases with temperature due to increased carrier generation and diffusion.
Higher temperatures can cause increased leakage current through reverse-biased junctions.
Temperature coefficients are used to quantify the change in leakage current with temperature.
Thermal management techniques are employed to minimize the impact of temperature on leakage current.
Example: In a CMOS transistor,...read more
Q38. What do you mean by a small signal?
Small signal refers to a low amplitude signal that is superimposed on a larger signal.
Small signal is a signal that is much smaller in amplitude than the larger signal it is superimposed on.
Small signal analysis is used to analyze the behavior of electronic circuits around their operating point.
Examples of small signals include audio signals, radio signals, and sensor signals.
Small signal amplifiers are used to amplify small signals without affecting the larger signal.
Small s...read more
Q39. How is a regular salesman differ from a candidate in a TSA profile?
A TSA candidate has specialized knowledge and skills in security screening, while a regular salesman does not.
TSA candidates undergo extensive training in security screening procedures and techniques.
They must have knowledge of security regulations and be able to identify potential threats.
A regular salesman may have knowledge of their product, but does not have the same level of specialized training in security screening.
TSA candidates must also be able to communicate effect...read more
Q40. Can user-defined object be declared as static data member of another class?
Yes, user-defined object can be declared as static data member of another class.
Static data members are shared by all objects of a class.
User-defined objects can be declared as static data members.
Example: class A { static B obj; };
Here, B is a user-defined object declared as a static data member of class A.
Q41. How do I write my own zero-argument manipulator that should work same as hex?
To create a zero-argument manipulator similar to hex, use std::hex and std::setbase(16) functions.
Create a function that takes an ostream& parameter
Inside the function, use std::hex and std::setbase(16) to set the base to hexadecimal
Write the desired output to the ostream& parameter
Use std::resetiosflags(std::ios_base::basefield) to reset the base to decimal after writing the output
Q42. How do I carry out conversion of one object of user-defined type to another?
To convert one user-defined object to another, define a conversion operator or use a conversion function.
Define a conversion operator that takes the original object as input and returns the new object.
Alternatively, define a conversion function that takes the original object as input and returns the new object.
Ensure that the conversion is valid and does not result in loss of data or precision.
Example: Define a conversion operator to convert a Celsius temperature object to Fa...read more
Q43. How do I write code that allows to create only one instance of a class?
To create only one instance of a class, use Singleton pattern.
Create a private constructor to prevent direct instantiation.
Create a static method to return the instance of the class.
Use a private static variable to hold the instance of the class.
Ensure thread-safety by using synchronized keyword or static initializer.
Example: public class Singleton { private static Singleton instance = null; private Singleton() {} public static synchronized Singleton getInstance() { if (insta...read more
Q44. How do I write code to add functions, which would work as get and put properties of a class?
To add get and put properties to a class, write functions that use the 'get' and 'set' keywords.
Use the 'get' keyword to define a function that retrieves a value from a class property.
Use the 'set' keyword to define a function that sets a value to a class property.
The function names should match the property names.
Example: class Person { get name() { return this._name; } set name(value) { this._name = value; } }
Example usage: const person = new Person(); person.name = 'John';...read more
Q45. Explain aliasing, nyquist sampling theorem
Aliasing occurs when a signal is sampled at a rate lower than the Nyquist rate, resulting in distorted or incorrect signal representation.
Nyquist sampling theorem states that a signal must be sampled at a rate at least twice its highest frequency component to avoid aliasing.
Aliasing can be avoided by using a low-pass filter to remove high-frequency components before sampling.
Examples of aliasing include the wagon-wheel effect in movies and the distorted sound of a guitar stri...read more
Q46. Is there any function that can skip certain number of characters present in the input stream?
Yes, the function is called seek() and it can skip a certain number of characters in the input stream.
The seek() function is available in many programming languages such as C++, Java, and Python.
It takes two arguments: the number of characters to skip and the direction to move the pointer (forward or backward).
For example, in C++, you can use the seekg() function to skip 5 characters in the input stream: 'cin.seekg(5, ios::cur);'
Q47. How do I refer to a name of class or function that is defined within a namespace?
To refer to a class or function defined within a namespace, use the namespace name followed by the scope resolution operator and the class or function name.
Example: namespace MyNamespace { class MyClass {}; }
To refer to MyClass, use MyNamespace::MyClass
For a function named MyFunction, use MyNamespace::MyFunction
If the namespace is nested, use the scope resolution operator multiple times, like MyNamespace::InnerNamespace::MyClass
Q48. Why cascade structure is used
Cascade structure is used to improve gain, bandwidth, and linearity of amplifiers.
Cascade structure combines multiple amplifier stages to achieve higher overall gain.
Each stage can be optimized for a specific frequency range, improving bandwidth.
Cascade structure also reduces distortion and improves linearity.
Examples include cascode amplifiers and differential amplifiers.
Cascade structure is commonly used in high-frequency and high-gain applications.
Q49. *What kind of oscillators do you know..name them..draw ckt diagram?
Various types of oscillators include RC, LC, crystal, relaxation, and voltage-controlled oscillators.
RC oscillator uses a resistor and capacitor to create a time-varying signal
LC oscillator uses an inductor and capacitor to create a resonant circuit
Crystal oscillator uses a quartz crystal to create a stable frequency signal
Relaxation oscillator uses a nonlinear element like a transistor to create a periodic waveform
Voltage-controlled oscillator uses a control voltage to vary ...read more
Q50. What is forward referencing and when should it be used?
Forward referencing is referencing a variable or function before it is declared.
It is used in programming languages that allow it, such as JavaScript.
It can be used to create recursive functions.
It should be used with caution as it can lead to unexpected behavior.
Example: function foo() { return bar(); } function bar() { return 'hello'; }
Example: var x = y; var y = 5;
Q51. Why are semiconductors used in electronics?
Semiconductors are used in electronics because of their ability to conduct electricity under certain conditions, making them essential for creating electronic devices.
Semiconductors can be used to control the flow of electricity, allowing for the creation of transistors, diodes, and integrated circuits.
They have properties that fall between conductors and insulators, making them versatile for various electronic applications.
Semiconductors are essential for amplifying and swit...read more
Q52. Reducing complexity of a given algorithm by suggesting a better one
To reduce complexity of an algorithm, suggest a better one.
Analyze the current algorithm and identify its bottleneck
Research and compare alternative algorithms
Consider the trade-offs between time complexity and space complexity
Implement and test the new algorithm to ensure it meets requirements
Q53. How to convert a latch to flip flop. Finite state machine
To convert a latch to a flip flop in a finite state machine, you can add a clock input to the latch.
Add a clock input to the latch to make it edge-triggered like a flip flop.
Modify the latch circuit to include a clocked flip flop structure.
Ensure that the flip flop has separate inputs for data and clock signals.
Implement the necessary logic to control the state transitions in the finite state machine.
Q54. Derive the voltage across the capacitor for a DC step and a sinusoid
Q55. Design exor,nand using 2:1 mux Design d latch using 2:1 mux Design frequency divide by 3 circuit
Design exor, nand and d latch using 2:1 mux and frequency divide by 3 circuit
For exor using 2:1 mux, connect one input to select line and other to output of nand gate using 2:1 mux
For nand using 2:1 mux, connect one input to select line and other to inverted output of and gate using 2:1 mux
For d latch using 2:1 mux, connect data input to select line and connect inverted output to one input and output to other input
For frequency divide by 3 circuit, use two d flip flops and an...read more
Q56. Find equivalent capacitance for a infinity ladder structure.
Equivalent capacitance for an infinity ladder structure can be found using the concept of series and parallel capacitance.
An infinity ladder structure consists of an infinite number of identical capacitors connected in a ladder-like pattern.
The capacitance of each individual capacitor in the ladder is assumed to be C.
To find the equivalent capacitance, we can consider the structure as a combination of series and parallel capacitors.
The series capacitance of two capacitors is ...read more
Q57. What is physical significance of 2nd order on filtwrs
Second order filters have steeper roll-off and better attenuation of higher frequencies.
Second order filters have a slope of -40 dB/decade.
They have a higher Q factor than first order filters.
They provide better attenuation of higher frequencies.
Examples include Butterworth, Chebyshev, and Bessel filters.
Q58. What is the process involved in calling a mobile?
To call a mobile, the process involves dialing the correct phone number and initiating the call.
Dial the correct phone number
Initiate the call
Wait for the recipient to answer
If the recipient does not answer, leave a voicemail or try again later
Q59. Implement a 3 bit asynchronous counter using T flip flops
Implement a 3 bit asynchronous counter using T flip flops
Use 3 T flip flops connected in cascade
Connect the output of each flip flop to the input of the next
Connect the output of the last flip flop to the input of the first
Apply clock signal to the first flip flop
Use the T input of each flip flop to control the counting sequence
Q60. Explain algorithm to find shortest path from a set of points
Shortest path algorithm finds the shortest path between two points in a graph.
Use Dijkstra's algorithm or A* algorithm to find the shortest path
Create a graph with nodes and edges representing the points and distances between them
Assign weights to the edges based on the distance between the points
Run the algorithm to find the shortest path between the desired points
Q61. Effect of opamp's bandwidth
The bandwidth of an opamp affects its ability to amplify high-frequency signals.
Opamp bandwidth determines the range of frequencies it can amplify effectively.
A higher bandwidth allows the opamp to amplify higher frequency signals accurately.
A lower bandwidth limits the opamp's ability to amplify high-frequency signals.
Opamp bandwidth is typically specified in terms of the -3dB frequency.
Bandwidth can be improved by using compensation techniques or selecting opamps with highe...read more
Q62. Find the current during SC and open circuit conditions
The current during SC (short circuit) and open circuit conditions depends on the specific circuit and components involved.
During short circuit conditions, the current will be very high as there is a direct connection between the power source and ground.
During open circuit conditions, there will be no current flow as the circuit is not complete.
The specific values of current during SC and open circuit conditions can only be determined by analyzing the circuit and its component...read more
Q63. Complex RC circuits
Complex RC circuits are circuits that contain resistors and capacitors in a series or parallel configuration.
The time constant of a complex RC circuit can be calculated using the product of resistance and capacitance.
Complex RC circuits can be used in filters, oscillators, and timing circuits.
The behavior of a complex RC circuit can be analyzed using circuit analysis techniques such as Kirchhoff's laws and nodal analysis.
Q64. Can we declare a static function as virtual?
No, static functions cannot be declared as virtual.
Virtual functions are used for runtime polymorphism, while static functions are resolved at compile-time.
Static functions cannot be overridden in derived classes, which is a requirement for virtual functions.
Declaring a static function as virtual will result in a compilation error.
Q65. Can we get the value of ios format flags?
Yes, we can get the value of ios format flags.
The ios::flags() function can be used to get the current format flags.
The ios::fmtflags enumeration lists all the possible format flags.
Example: ios::flags() & ios::showpos returns true if the showpos flag is set.
Q66. What is a diode and how does it work?
A diode is a semiconductor device that allows current to flow in one direction only.
A diode has two terminals - an anode and a cathode.
It works by allowing current to flow from the anode to the cathode when a forward voltage is applied.
When a reverse voltage is applied, the diode blocks the current flow.
Diodes are commonly used in rectifiers, voltage regulators, and signal demodulation.
Examples of diodes include silicon diodes, Schottky diodes, and light-emitting diodes (LEDs...read more
Q67. Biasing of a diode and it's voltage and current characteristics.
Biasing of a diode refers to applying a DC voltage across the diode to control its voltage and current characteristics.
Biasing a diode involves applying a DC voltage across it in order to control its operation.
Forward biasing occurs when the positive terminal of the voltage source is connected to the anode of the diode.
Reverse biasing occurs when the negative terminal of the voltage source is connected to the anode of the diode.
In forward bias, the diode conducts current and ...read more
Q68. Working and different regions of operations of the mosfet.
MOSFET operates in different regions: cutoff, triode, saturation. Each region has specific characteristics.
Cutoff region: MOSFET is off, no current flows
Triode region: MOSFET acts as a resistor, linear relationship between Vgs and Id
Saturation region: MOSFET acts as a current source, Vds is small and Id is relatively constant
Q69. What happens when a MOSFET is not ideal?
Q70. Circuit diagram of MUX and DEMUX using gates?
A MUX and DEMUX circuit diagram can be created using gates such as AND, OR, and NOT gates.
MUX can be created using AND and NOT gates
DEMUX can be created using OR and NOT gates
MUX and DEMUX can also be created using other gates such as NAND and NOR gates
The circuit diagram for MUX and DEMUX using gates can be found in many textbooks and online resources
Q71. Count the number of one's in the vector
Count the number of one's in a vector.
Iterate through the vector and count the number of ones encountered.
Use built-in functions like count() or accumulate() in C++.
In Python, use the count() method or sum() function with a conditional statement.
Q72. Coverage gaps, wrapper cell issues. Issues faced in post silicon
Issues faced in post silicon for DFT Engineer
Coverage gaps can occur due to incomplete testing of certain functionalities
Wrapper cell issues can arise due to incorrect placement or sizing of the cells
Post silicon issues can also include timing violations, power issues, and signal integrity problems
Debugging post silicon issues can be challenging and time-consuming
Q73. Find the voltage through the resistor
To find the voltage through a resistor, use Ohm's Law: V = I * R
Use Ohm's Law: V = I * R, where V is the voltage, I is the current flowing through the resistor, and R is the resistance of the resistor
If the current flowing through the resistor is 2A and the resistance is 5 ohms, the voltage would be V = 2 * 5 = 10V
Make sure to use the correct units for current (Amps) and resistance (Ohms) to get the voltage in Volts
Q74. While overloading a binary operator can we provide default values?
Yes, default values can be provided while overloading a binary operator.
Default values can be provided for one or both operands.
The default value must be of the same type as the operand.
Example: int operator+(int a, int b=0) { return a+b; }
Q75. explain 8051 registers assembly
8051 registers are used for I/O operations and control of the microcontroller.
8051 has 4 register banks, each with 8 registers
Registers are used for arithmetic, logical, and bit manipulation operations
Special function registers (SFRs) control the microcontroller's peripherals
Examples of SFRs include P0 for I/O operations and TMOD for timer control
Q76. Explain how you face if a problem arise in a given circuit?
Q77. Draw the internal block diagram of a microcontroller?
The internal block diagram of a microcontroller consists of CPU, memory, input/output ports, timers, and other peripherals.
CPU is the central processing unit that executes instructions
Memory includes ROM, RAM, and EEPROM
Input/output ports are used to communicate with external devices
Timers are used for timekeeping and scheduling tasks
Other peripherals include analog-to-digital converters, serial communication interfaces, and interrupt controllers
Q78. Why analog ?
Analog circuits are essential for interfacing with the real world and processing continuous signals.
Analog circuits are used in a wide range of applications, from audio amplifiers to power management systems.
Analog circuits are necessary for interfacing with sensors and other real-world devices that produce continuous signals.
Analog circuits can often provide higher accuracy and lower noise than digital circuits in certain applications.
Analog circuits require a deep understan...read more
Q79. Circuit solving and finding the V-I charecteristics
Q80. Find circuit v ,i and equivalent resistance
To find circuit v, i, and equivalent resistance
Analyze the circuit to determine the voltage (v) and current (i) at specific points
Use Ohm's Law (V = IR) to calculate the voltage or current if resistance is known
To find equivalent resistance, combine resistors in series or parallel using appropriate formulas
Apply Kirchhoff's laws to solve complex circuits
Q81. Explain the concept of rise time, fall time, propagation delay.
Rise time, fall time, and propagation delay are important concepts in signal processing.
Rise time is the time taken by a signal to rise from 10% to 90% of its maximum value.
Fall time is the time taken by a signal to fall from 90% to 10% of its maximum value.
Propagation delay is the time taken by a signal to travel from the input to the output of a system.
Propagation delay is affected by the length of the transmission line, the speed of the signal, and the characteristics of t...read more
Q82. *Properties of Oscillators- I mentioned Barkhausens criterion
Barkhausen's criterion is used to determine the conditions for sustained oscillations in an electronic oscillator.
Barkhausen's criterion states that the loop gain of an oscillator must be equal to unity and the phase shift around the loop must be a multiple of 360 degrees.
It is used to design and analyze electronic oscillators such as LC oscillators, crystal oscillators, and RC oscillators.
Barkhausen's criterion is important in the design of electronic circuits and helps to e...read more
Q83. Find factorial of a given number recursively
Factorial of a given number can be found recursively
Base case: if n is 0 or 1, return 1
Recursive case: return n * factorial(n-1)
Example: factorial(5) = 5 * factorial(4) = 5 * 4 * factorial(3) = ... = 5 * 4 * 3 * 2 * 1 = 120
Q84. What are formatting flags in ios class?
Formatting flags are used to specify the formatting options for text in iOS classes.
Formatting flags are represented by constants in the NSAttributedString class.
They are used to specify options such as font, color, alignment, and spacing.
Examples of formatting flags include NSFontAttributeName, NSForegroundColorAttributeName, and NSParagraphStyleAttributeName.
Q85. Define software for embedded?
Software designed to run on embedded systems with limited resources and specific functions.
Embedded software is tailored to the specific hardware it runs on.
It is often written in low-level languages like C or assembly.
It must be efficient and optimized for limited resources like memory and processing power.
Examples include firmware for a smart thermostat or a car's engine control unit.
Q86. differnce between blocking and non blocking assignmenst
Blocking assignments wait for the assigned value to be calculated before moving on, while non-blocking assignments allow for concurrent execution.
Blocking assignments use '=' operator and execute sequentially
Non-blocking assignments use '<=' operator and allow for concurrent execution
Blocking assignments can cause race conditions if not used carefully
Non-blocking assignments are commonly used in Verilog for modeling hardware behavior
Q87. Design a circuit which predicts majority ones
Design a circuit to predict majority ones in a given input
Use a majority gate to determine if the input has more ones than zeros
Implement a comparator to compare the number of ones and zeros in the input
Utilize flip-flops to store and compare the bits in the input
Q88. Design a circuit to detect a pattern
Design a circuit to detect a pattern
Define the pattern to be detected
Choose appropriate sensors to detect the pattern
Use logic gates to process the sensor data
Output a signal when the pattern is detected
Q89. How to create a netlist for a 100x100x100 circuit
Q90. How to understand the customer requirements (Sales related)
Q91. Rc network with constant current source
An RC network with a constant current source is used to create a voltage output that is proportional to the input current.
RC network consists of a resistor (R) and a capacitor (C) connected in series or parallel.
Constant current source ensures a steady current flows through the network.
The voltage output across the RC network is determined by the time constant (RC) and the input current.
This configuration is commonly used in signal processing circuits and filters.
Q92. Why Engineering Physics?
Engineering Physics offers a unique blend of physics and engineering principles to solve complex problems.
Combines the problem-solving skills of physics with the practicality of engineering
Allows for a deeper understanding of the physical world and its applications
Enables the development of innovative technologies and solutions
Examples include designing medical imaging equipment, developing renewable energy sources, and creating advanced materials
Q93. What is diffrence between xor and elastic codec
XOR is a logical operation that outputs true only when inputs differ, while elastic codec is a compression algorithm used in video streaming.
XOR is a logical operation that outputs true only when inputs differ
Elastic codec is a compression algorithm used in video streaming
XOR is commonly used in cryptography for encryption purposes
Elastic codec helps in reducing the size of video files for efficient streaming
Q94. What are linked lists, trees etc
Linked lists and trees are data structures used to store and organize data.
Linked lists are a collection of nodes that contain data and a reference to the next node.
Trees are a collection of nodes that contain data and references to child nodes.
Binary trees are a type of tree where each node has at most two child nodes.
Binary search trees are a type of binary tree where the left child node is less than the parent node and the right child node is greater than the parent node.
B...read more
Q95. Design a mod counter using any flip flop
A mod counter can be designed using D flip-flops and combinational logic circuits.
Use D flip-flops to store the count value
Use combinational logic circuits to generate the next count value
Connect the output of the last flip-flop to the input of the first flip-flop to create a loop
Use a clock signal to trigger the flip-flops
Use a reset signal to set the counter to zero
Q96. How to divide clock frequency by 2
Q97. Making a full adder using 2 half adders
A full adder can be made using 2 half adders by cascading them together.
Connect the carry output of the first half adder to the carry input of the second half adder.
Connect the sum output of the first half adder to one of the inputs of the second half adder.
Connect the other input of the second half adder to the other input of the full adder.
The sum output of the second half adder is the final sum output of the full adder.
The carry output of the second half adder is connected...read more
Q98. difference between 8051 and arm microprocessor
8051 is an 8-bit microcontroller while ARM is a 32-bit microprocessor with higher performance and more advanced features.
8051 is an 8-bit microcontroller, while ARM is a 32-bit microprocessor.
ARM processors generally have higher performance and more advanced features compared to 8051.
ARM processors are commonly used in mobile devices, embedded systems, and IoT applications, while 8051 is more commonly used in simple embedded systems.
ARM processors support multiple instruction...read more
Q99. What is a Johnson counter?
Q100. How is voice modulated?
Voice is modulated by changing the pitch, volume, and tone of the vocal cords.
Pitch is controlled by the tension of the vocal cords
Volume is controlled by the amount of air passing through the vocal cords
Tone is controlled by the shape of the mouth and throat
Modulation can also be influenced by emotions and intention
Voice modulation is important for effective communication
Top HR Questions asked in null
Interview Process at null
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month