Live Help (Start Chat)
View Count: 0
Duration: 53 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 18 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Sorry!For this module there is no Sample Code.
Question No: 1 of 15
Event Receivers and Event handlers mean the same in SharePoint? 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
Yes both mean the same.

Question No: 2 of 15
Event Handlers are deployed in GAC. 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
Event handler code is compiled into a .dll file and deployed to the GAC. Note:- GAC is located at C:\Windows\Microsoft.NET\assembly\

Question No: 3 of 15
In Synchronous events the code waits for SharePoint to send back the response 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
The main thread is blocked until the event handling thread completes executing its code

Question No: 4 of 15
In Asynchronous events the code does not wait for SharePoint to send back the response. 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
The main thread does not wait for the event handling thread to complete executing its code

Question No: 5 of 15
Before Events occur before data is written to the content database and are Synchronous by default. 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
Before events are always synchronous and occur before the content is added to the content database. Ex:- ItemAdding public override void ItemAdding(SPItemEventProperties properties) { int year = Convert.ToDateTime(properties.AfterProperties["Join Date"]).Year; if (year ”] to access the data

Question No: 6 of 15
After Events occur after the data is written to the content database and are Asynchronous by default. 
Options:
  1. True
  2. False
View Answer/Explanation:
a
Explanation:
Yes after events occur after the content is written into the content database and are Asynchronous by default. Ex:- public override void ItemAdded(SPItemEventProperties properties) { // read field value string Title = properties.ListItem["Title"].ToString(); // write field value properties.ListItem["Title"] = Title.ToUpper(); properties.ListItem.Update(); }

Question No: 7 of 15
Can Before Events be changed to Asynchronous mode? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:
No, before events always execute under Synchronous mode

Question No: 8 of 15
Can After Events be changed to Synchronous mode? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
a
Explanation:
Yes, In Elements.xml, I element change as follows:- Synchronous

Question No: 9 of 15
All Event Receivers inherit from which class? 
Options:
  1. SPEvent
  2. SPEventHandler
  3. SPEventReceiver
  4. None of the above
View Answer/Explanation:
c
Explanation:
SPEventReceiver

Question No: 10 of 15
We can handle events on which of the below components? 
Options:
  1. Lists and List Items
  2. Workflows
  3. Web and Site(ie site and sitecollection)
  4. Email
  5. All the above
View Answer/Explanation:
e
Explanation:
We have the following EventReceiver classes • SPItemEventReceiver • SPListEventReceiver • SPEmailEventReceiver • SPWebEventReceiver • SPWorkflowEventReceiver

  1