Mid Sem Papers
Mid Sem Papers
The total number of uarks is 30. The reasoning answers should be brief. For exauple, 4 inarks
reasoning quest ion should be answered in not more than four sentences. This is an open notes exarm (No
book or printed material is allowed). The usage of all electronic items/gadgets are prohibited
CXCept the scientilic calculatoIS.
1. CO1-To familiarize the students about different analog modulation and demodulation
schemes
2. CO2- To understand analog-digital conversion techniques.
3. CO3- To analyze the performance of different modulation techniques under noise.
4. CO4- To apply the concept of probability and random processes in analysis of
communication systems.
5. CO5- To performn noise analysis of communication systems
Q.1(a) Let the Fourier transform of a message signal m(t) be M() as plotted below.
Evaluate the following
(1) rm(t) = m(t) ( )
(ii) m{) = m(t) + jrin(t)
(ii) m(t) = m(t) eæpl-j2n ft)]
(iv) m(t) in terms of its in-phase and the quadrature components
(v) Outputs of the two low-pass filters of the block diagram shown below
2
22ECT206: Operating System Concepts
MidTerm Examination-2023
Time Limit: 1hour and 30 minutes
Instructions
The total number of marks is 30. All questions are to be
prohibited except the scientific calculators. Please preciselyattempted. The usage of all electronic items/gadgets are
answer whatever asked in the question, otherwise there
will be deduction of marks.
The course outcomes (COs)
COl: To understand the objectives, structures and functions of modern operating
systems
CO2: To understand the working of processes and threads and their scheduling algorithms
CO3: To understand the problems of synchronization and deadlock in OS and its various solutions
CO4: To understand the memory and storage handling/allocation methods
COS: To understand files, its structures, implementation and protection issues
CO6: To analyze the problems related to OS and suggest viable solutions
(analytically and design issues)
Q. Consider the concurrently running processes A and B as given below. (Shared data:
semaphore s l=0, s2-0;).(CO3) (5)
Process A: Process B:
do { do {
Instruction a; Wait (sl );
Signal (sl); Instruction d;
Instruction b; Instruction c;
Wait (s2); Signal (s2);
Instruction e; } while (true)
} while (true);
a.
How many processes are created, including the main process?
b Draw the process tree diagram to justify your answer.
C. How many "Done!" lines are printed?
Q3. Answer the following (5) (CO2)
a. List any 6 of the attributes that an operating system maintains to keep track of information about a process.
List the 4 most important attributes an operating system maintains to keep track of information about a thread.
Q4.Explain/differentiate the below terms with suitable examples (Restricted to 100 words each) (CO1, CO2, C03)
a Atomic instruction (1)
.Process States with state transition diagram (2)
e Zombie v/s Orphan Process (2)
fAPI vIs System calls (2)
Deadlock vs. starvation (2)
Q5. Given below is a python code,
where two threads have a common thread
implemented: function, and a critical section is
import threading
Counter = 0
iterations = 10000
def increment counter):
global counter
for_in range (iterations):
counter t= |
threadl = threading. Thread(target=increment counter)
thread? threading.
= Thread(target=increment counter)
threadl.start)
thread2.start)
threadl join)
thread2,join)
# Display the final counter value
print("Final counter value (wrong implementation):", counter)
Improve the above code using mutex lock to solve the critical section problem. You may use Lock(),acquire() , and
release() functions of the threading library to initialize, acquire, and release the mutex lock. (4) (CO2,CO3)
National Institute of Technology, Jaipur
Malaviya
Mid Term Examination (2023-2024)
IIYear B.Tech IIISemester
Sub: LIC (21ECT-201)
Branch: ECE Time: 1.5 Hours
Maximum Marks:30
input. Considering OP
For the given integrator in Fig. 2, calculate the output and plot it with respect to
Q8. (4) (CO1)
AMP to be ideal.
40ok
I5KL
Q-6V
m $14KV
-O.6V
P.T.O
Determine the gain of the amplifier'shown in Fig. 3. What is the
value of l, ? (2) (CO1)
DA
Vin
3R2
OA
R1
QÓ. For the circuit shown in Fig. 4, determine the output
voltage V, and output current io.
(4)(CÔI)
bËw
4V( 6k
4 Ka
*******END***** ***