Documente Academic
Documente Profesional
Documente Cultură
Page 1 of 6
PART (B)
For each question select the most suitable answer and write them in the answer script. For each correct
answer you will get two (02) mark.
11. Which of the following is not true about a real time system?
(a) It is an information system
(b) It has to respond to externally generated input events
(c) System should response within a finite and specified period
(d) Response time is not an important issue
12. Which of the following is not true about an embedded system?
(a) Most embedded systems are real time systems
(b) It is a general-purpose computer
(c) Any device that includes a programmable computer
(d) Most processes are made for Embedded system market
13. Which of the following is a way to terminate a process?
(a) Completion of execution of the process body
(b) By execution of a self-terminate statement
(c) Abortion, through the explicit action of another process;
(d) All of the above
14. The two processes A and B are not communicating or synchronize with each other. Which best
describes the relation between the two processes.
(a) Cooperating
(b) Competing
(c) Independent
(d) Interleaving
15. The process P1 fails at time Terro. To which positions the two processes P1 and P2 should fall back as a
result of the failure in order to recover.
Page 2 of 6
(c) ii
(d) iv
23. Which of the following is not suitable for testing and validating real time embedded systems
Page 3 of 6
26. A process is an executing program, including the current values of the program counter, registers, stack,
open files, alarms and open files. Their state may change from time to time. A process is created,
moves into the state of initialization, proceeds to execution. The state change is drawn in the
following figure.
Non-existing
Executing
Created
Initializing
Re-draw the above figure by adding two new states Blocked and Terminated. When a process is
initialized it can be terminated. When a process is executing it can be terminated or blocked. When a
process is blocked it can be executed.
(05 Marks)
27. What is the difference between sequential programming and concurrent programming?
(04 Marks)
28. What is multi programming, multi processing and distributed processing?
(06 Marks)
29. A process initialization means passing information needed for its execution. Briefly explain two ways
that could use to initialize a process?
(02 Marks)
Page 4 of 6
30. What is the difference between fault prevention and fault tolerance?
(04 Marks)
31. List three important differences between conventional software systems and embedded real time
software systems.
(03 Marks)
32. Briefly explain how software faults and hardware faults can be avoided.
(04 Marks)
33. Using examples explain static redundancy (or masking) and dynamic redundancy.
(04 Marks)
34. List two factors that are affecting the success of the N-Version programming.
(02 Marks)
35. Briefly explain the four phases of software dynamic redundancy.
(04 Marks)
36. Write a Java program to read two numbers x and y through the key board. Both x and y are of type
integer and should satisfies the constraints ( x>=0 and x<50, y>50 and y <100).
The program should also find and prints
(i) x + y
(ii) y/x
Use exception handling to detect improper inputs and division by zero.
(10 Marks)
37. Define a class OddNumbers that extends Thread class to print the first n odd numbers. Also, define
another class EvenNumbers that implements Runnable interface to print the first m even numbers.
The class outlines are given below.
public class OddNumbers extends Thread {
private int n;
public OddNumbers(int x) {
// Filled in here to initialize n
}
public void run() {
// Filled in here
}
}
}
public class EvenNumbers implements Runnable {
private int m;
Page 5 of 6
public OddNumbers(int x) {
// Filled in here to initialize m
}
public void run() {
// Filled in here
}
}
}
You must complete the constructors and run methods as appropriately. Also, create another class
(Exam) which contains the main() method and print the first 50 odd numbers and first 100 even
numbers.
(12 Marks)
- - - - END - - - -
Page 6 of 6