exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 79 discussion

Actual exam question from Microsoft's 70-483
Question #: 79
Topic #: 1
[All 70-483 Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mpa
Highly Voted 5 years, 7 months ago
Correct answer is: Yes, Yes, Yes
upvoted 41 times
Stnash
5 years ago
why for the last question?
upvoted 1 times
...
founderDev
4 years, 10 months ago
correct except for the last option.
upvoted 2 times
...
...
slobex
Highly Voted 4 years, 6 months ago
YES, YES, YES, Here is proof: https://dotnetfiddle.net/WCiCmL
upvoted 12 times
...
merry
Most Recent 3 years, 10 months ago
can a user be an admin and a supervisor at the same time?
upvoted 1 times
...
DaGrooveNL
3 years, 10 months ago
FINAL ANSWER: Yes Yes No
upvoted 1 times
...
ruif90
4 years, 3 months ago
I don't get A -> YES
upvoted 2 times
kurokyuu
4 years, 2 months ago
It's easy. The FlagAttribute makes this enum binary (or a bit field). With that you can now store more than one value into the enum by using the bitwise OR operator | For example var adminOnly = UserGroup.Administartor // adminOnly = 8 var moreGroups = UserGroup.Administrator | UserGroup.User // moreGroups = 9 var oneMOre = UserGroup.User | UserGroup.Manager | UserGroup.Supervisor // oneMOre = 7 The enum then also has a method called "HasFlag" to check if a variable contains a certain enum flag. moreGroups.HasFlag(UserGroup.Manager) // false => 9 - 4 = 5, there is no enum with value 5. moreGroups.HasFlag(UserGroup.User) // true 9 - 1 = 8 => 8 admin does exist and user so this matches
upvoted 3 times
...
...
HgstExam
4 years, 3 months ago
The full Question is not there: //Que. 1 var user1 = new user(); user1.usergroup = Group.manager | Group.admin; Console.WriteLine( "Ans.1 - {0}", user1.usergroup); //Que. 2 var user2 = new user(); user2.usergroup = Group.admin; Console.WriteLine( "Ans.2 - {0}", user2.usergroup == Group.admin); //Que. 3 var user3 = new user(); user3.usergroup = Group.Supervisors; Console.WriteLine( "Ans.3 - {0}", user3.usergroup < Group.admin);
upvoted 1 times
HgstExam
4 years, 3 months ago
Ok from the text, above code is correct and so , YES,YES,YES
upvoted 1 times
...
...
Multima
4 years, 10 months ago
No, Yes, Yes - user can be only in one group (there is not any collection) - 8 == 8 - lt means <, then value 2 < 8
upvoted 3 times
Multima
4 years, 10 months ago
sorry yes, yes, yes
upvoted 4 times
...
...
founderDev
4 years, 10 months ago
correct except for the last option.
upvoted 1 times
...
jose1024
4 years, 11 months ago
I think last question as a typo and lt; should display as <. If that is true, then the correct answer is true, true, true.
upvoted 11 times
...
maly007
5 years ago
Answers are yes,yes,no. First yes is because of FlagsAtrribute(see official doc),second yes is trivial, but for last question answer is no because " lt; " doesn't mean nothing in c#. Thats my opninion!!!
upvoted 7 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago