HOTSPOT
You are reviewing the following code:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
HOTSPOT
You are reviewing the following code:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:
yes
yes
yes
yes, yes, yes!
Yes Yes Yes
A user can be member of ONLY one single group! There is only one property Usergroup.
If “lt;” in the last question is meant to be “==”, then NO.
The correct answers are:
no
yes
no
What about user.UserGroup = Group.Administrators | Group.Managers; ?
So for me it is
Yes
Yes
False (if lt; is meant ==)
lt = less then
There is only one property UserGroup but Group is flag enum, which means if for example UserGroup = 5 it belongs to Users and Managers. That what the flags are for. So the answer is yes.
5 = Users (1) + Managers (4)