Crash#2 (2ND Year) Comp-2024
Crash#2 (2ND Year) Comp-2024
Crash#2 (2ND Year) Comp-2024
2. Which one of the following types of processing has grouped transactions, executed in a sequence?
A. Real time C. Time sharing
B. Batch D. Distributed
3. By default, argument in C++ are:
A. Pass by constant B. Pass by reference
C. Pass by value D. Pass by character
4. When function is overloaded which type will not consider.
A. Return type B. Data type
C. Parameters D. Default argument
5. Suppose that a process is in blocked state waiting for some I/O service. When the service is
completed, it goes to the:
A. Running state C. Suspended state
B. Ready state D. Terminated state
SECTION –C(5*2=10)
Q3: Answer the following questions
I. (a) Explain function overloading in detail and also demonstrate it with proper C+
+ code.
(b) Explain the "Blocked" state in the context of process management. What kind of
events can cause a process to move into this state, and what needs to happen for it to
transition back to the "Ready" state?
II. Write a program that inputs marks in main function and passes these marks to a
function. The function finds grade of students on the basis of the following
criteria:
The function returns grade back to main function where it is displayed on the screen.