0% found this document useful (0 votes)
33 views6 pages

O Object, Class, Inheritance and Polymorphism

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 6

Part I [10 pts] [Recommended Time 20Min]

[Introduction to Computing and Object Oriented Programming]

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.

Part II [22 pts] [Recommended Time 30Min]

[Applied Electronics I & II , Electrical Materials and Technology]

Q1. How do you classify Semiconductor materials as intrinsic and extrinsic?

 N-Type and P-Type

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.

Part III [20 pts] [Recommended Time 30Min]

[Signal & Systems Analysis, Network Analysis & Synthesis and Digital Signal Processing]

Q1. Obtain the fundamental period of the signal x(n)  e  j 7 t .

Q2. What would be the Fourier transform of the unit step signal u(t ) .

Q3. Determine the DTFT of the signum function sgn(n) .

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.

Part IV [15 pts] [Recommended Time 20Min]

[Digital Logic Design and Computer Architecture and Organization]

Q1. Design a 3-to-8-line decoder with NAND gates.

a) write the truth table;


b)draw the logic diagram.

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

CR ← CRΛDR, BR<- BR+1 ;AND DR to CR, increment BR

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.

Part V [8 pts] [Recommended Time 20Min]

[Introduction to Electrical Machines]

Q1. Describe the distinction between the following electrical terms:

a) Salient and non Salient pole generators.


b) Squirrel gauge and slip ring rotor machines.
c) Synchronous and Asynchronous machines.
d) Single phase and three phase transformers.

3
Q2. Give a necessary labeling for the following diagram and sketch its equivalent diagram

Part VI [8 pts] [Recommended Time 20Min]

[Introduction to Communication Systems]

Q1.

a) Explain why modulation required in a communication system.

b) A superheterodyne receiver designed to receive frequency band of 1 to 20 MHz with


IF frequency of 455 KHz.
i. What is the range of frequencies generated by the local oscillator for this
receiver?
ii. Determine the minimum and maximum ratio of the capacitor in the Local
Oscillator of the receiver.
iii. What are the image frequencies at the extreme (band) frequencies?

Q2.

a) An Angle modulated signal with carrier frequency ωc = 6.283* 108 is described by


the equation

Φ(t) = 10 cos (ωc t+ 20 sin 1000 πt+10 sin 5000 πt)

i. Find the power of the modulated signal


ii. Find the frequency deviation ▲f

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.

i. Determine the SQR.


ii. Also determine the transmission bit rate.

Part VII [8 pts] [Recommended Time 20Min]

[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

a) E = –6ax + 8ay + 12az kV/m


b) B = –6ax + 8ay + 12az mT
c) E and B acting together

Part VIII [8 pts] [Recommended Time 20Min]

[Introduction to Control Engineering]

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 .

Q2. For a unity feedback system with transfer function Gs  


K
ss  1s  3

a) Determine the range of k for stability.

b) Find the point of root locus with j -axis.

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.

You might also like