O Object, Class, Inheritance and Polymorphism
O Object, Class, Inheritance and Polymorphism
O Object, Class, Inheritance and Polymorphism
Q1
A. Define the term ‘programming language’ and classify programming languages into
possible categories.
B. List out the procedures you follow to solve a given programming problem.
C. Very Briefly define the following terms:
o Object, Class , inheritance and Polymorphism
D. Draw Compile and Run steps of a C++ source code as well as Java source code [Note: The
diagrams have to be labeled appropriately].
Q2
A. Create a Rectangle class. This class stores only the Cartesian coordinates of the four
corners of the rectangle. The constructor calls a set method that accepts four sets of
coordinates and verifies that each of these is in the first quadrant. The set method also
verifies that the supplied coordinates specify a rectangle. Provide methods to calculate
the length, width, perimeter and area. Include no argument and default argument
constructors in your definition. Write a program to test class Rectangle.
B. Create a class Square, by using the Rectangle class you defined in the above question.
Write a program to test class Square.
Q2. Explain how depletion layer of a pn junction is very important in the characterization of
properties of electronic devices.
Q3. Write the factors that affect the dc gain of a simple BJT and show that for a Darlington
pair the gain is given by βDP = β1β2+ β1 + β2. Where β1 is the gain of the first transistor
and β2 is the gain of the second transistor.
Q4. Draw the transfer function of an enhancement n-channel MOSFET and explain the
different regions briefly.
1
Q5. How do you explain band gap theory of solids and how it enables us categorize materials?
Q6. Define work function of solids and its importance in explaining the properties of
materials.
Q7. Explain briefly how temperature and concentration affects the conductivity and Fermi
levels of semiconductor materials. (Support your explanation with schematic diagrams.)
Q8
Design an op amp circuit that implements a 4 bit digital to analog converter (DAC) with
the following specifications. The circuit accepts a 4 bit input binary word 𝒃𝟑 𝒃𝟐 𝒃𝟏 𝒃𝟎
where 𝒃𝟑 , 𝒃𝟐 , 𝒃𝟏 and 𝒃𝟎 take the values of 0 (0 v) and 1 (+5 v), and it provides an analog
output voltage 𝒗𝟎 proportional to the value of the digital input. The voltage output range
is from 0 to 20 V.
You are required to show the output voltage in terms of the input bits 𝒃𝟑 , 𝒃𝟐 , 𝒃𝟏 and 𝒃𝟎
and the value of the resistors used must be estimated.
[Signal & Systems Analysis, Network Analysis & Synthesis and Digital Signal Processing]
Q2. What would be the Fourier transform of the unit step signal u(t ) .
Q4. An input signal x(n) [ 1, 1, 1 ] has been passed through the system defined by
h(n) [ 1, 2, 1 ] . Find the convoluted output y(n) . Consider the process is under the
linear convolution setup.
2
Q2. Design a 4-bit shift register with serial input and serial output and show the timing
diagram for a high and low serial input(Hint: you can use D latches).
Q3. 8-bit registers AR, BR, CR and DR initially have the following values:
AR = 11110010
BR = 11111111
CR = 10111001
DR = 11101010
Determine the 8-bit values in each register after the execution of the following
sequence of microoperations:
AR ←AR + BR ;Add BR to AR
AR ←AR – CR
Q4. A computer uses RAM chips of 1024x1 capacity. Determine the number of chips required
and how their address lines should be connected to provide a memory capacity of 1024
bytes. Also, determine the type number of pins needed for each IC package.
3
Q2. Give a necessary labeling for the following diagram and sketch its equivalent diagram
Q1.
Q2.
4
b) A signal band limited to 0.5 MHz is sampled at the rate 50% higher than the
Nyquist rate and quantized into 256 levels using a µ-law quantizer with µ
=255.
[Electromagnetic Fields]
Q1. The point charge Q = 16nC has a velocity of v = (0.2ax – 0.5ay + az) 106 m/s. Determine
the force exerted on the charge by the field
Q1. Formulate the transfer function of the electrical network shown in the figure below
R1 __ R2 _____
_
R3
Vi(t) C1 Vo(t)
_
C2
___
where 𝑽𝒊 (𝒕) is the input to the network and 𝑽𝟎 (𝒕) is the output to the network .
c) Draw the bode plot for marginally stable value of K (magnitude plot only).
5
d) Find steady state error for the step input with magnitude of 10 of the transfer
function and draw rough sketch to show the error.