MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

OPERATING SYSTEM

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which method is considered one of the general methods to pass parameters?
A
Exchange information on the same computer
B
Pass the parameters in registers
C
Allocating resources to multiple jobs running at the same time.
D
Interrupts computer after specified period
Explanation: 

Detailed explanation-1: -memory protection and synchronization.

Detailed explanation-2: -There are two ways by which we can pass the parameters to the functions: Call by value. Call by reference.

Detailed explanation-3: -There are different ways in which parameter data can be passed into and out of methods and functions. It is beyond the scope of these notes to describe all such schemes, so we will consider only the two most common methods used in C++ and Java: “pass by value” and “pass by reference".

Detailed explanation-4: -By putting the address of some parameter in memory in an address register, this technique can be used to implement passing by reference.

Detailed explanation-5: -1C:Enterprise script supports two methods of passing parameters to procedures and functions: by reference and by value.

There is 1 question to complete.