Microsoft
70-573 · Question #128
70-573 Question #128: Real Exam Question with Answer & Explanation
Sign in or unlock 70-573 to reveal the answer and full explanation for question #128. The question stem and answer options stay visible for context.
Question
You need to programmatically add a user named User1 to a group named Group1. You write the following code segment. (Line numbers are included for reference only.) 01 Dim login As String = "User1" 02 Dim grpName As String = "Group1" 03 Dim user As SPUser = SPContext.Current.Web.EnsureUser(login) 04 Dim group As SPGroup = SPContext.Current.Web.Groups(grpName) 05 06 group.Update() Which code segment should you add at line 05?
Options
- Agroup.AddUser(user)
- Bgroup.Owner = user
- Cuser.AllowBrowseUserInfo = True
- Duser.Update()
Unlock 70-573 to see the answer
You've previewed enough free 70-573 questions. Unlock 70-573 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.