Answer:
3) 44 10 44
Explanation:
Given data
int [] val = { 3, 10, 44 };
The total number of parameters of given array are 3, so total length of array is also 3.
The indexing of array starts with '0', Therefore the <u>indexes</u> of array with length zero are: {0,1,2}
The value of array at index 0 is = 3
similarly
value at index 1 = 10
value at index 2 = 44
Any value of index 'i' of an array is selected using array[i].
Therefore,
val[0] is selecting the value of array located at index '0'.
val[0] = 3
val[2] is selecting the value of array located at index '2'.
val[2] = 44
Finally,
val[0] = val[2]; is copying the value placed at index 2 (44) to value placed at index 0 (3). Hence, the output would be { 44 10 44}. So 3rd option is correct.
Answer:
Discretionary Access Control model
Explanation:
Discretionary Access Control (DAC) gives owners of a resource full control of objects/items they have created or been given access to, this also includes sharing the objects/items with other subjects. These owners have control over their data and maintain access through ACLs. The access-control list (ACL), is a list of permissions attached to an object in a computer file system.
The Owners can decide to grant other users access to their files, change their attributes, alter them, or delete them. DACs are discretionary because the owner can transfer information access to other users.
Answer:
G=(A^3 + B) * 4-c^2
To calculate G if A=3, b=4 and C=5
cobegin
p1: A^3 = 27
P2:C^2 =25
P3: p1 +B =31
P4:P3*4 =124
P5:P4-P2 =99
coend
Explanation:
One operation is performed at a time, and on the basis of priority as we have only one processor.