Live Help (Start Chat)
View Count: 0
Duration: 38 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 16 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 11 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 15 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 15 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 24 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 41 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
Which of the following is true regarding a webpart? 
Options:
  1. A Web Part is a class that inherits from the WebPart class in System.Web.UI.WebControls.WebParts.
  2. It is an ASP.NET server control which can be added to a webpart Zone on a webpart page at runtime.
  3. It is used to modify the content appearance and behavior of webpages directly from the browser.
  4. You can use both custom controls and user controls to create webparts
  5. All of the above.
View Answer/Explanation:
e
Explanation:
A Web Part, also called a Web Widget, is an ASP.NET server control which is added to a Web Part Zone on Web Part Pages by users at run time. The controls enable end users to modify the content, appearance, and behavior of Web pages directly from a browser

Question No: 2 of 15
Which of the following is true regarding a custom control? 
Options:
  1. It is harder to create as we need to control the HTML that has to be rendered
  2. A single copy a single copy of the control is required in the global assembly cache which can be shared between multiple applications, so maintenance is easy.
  3. They can be added to the toolbox in Visual Studio
  4. Full visual design tool support for example if properties of the control are changed, they are reflected in the design view.
  5. They are useful for creating a dynamic layout
  6. All the above
View Answer/Explanation:
f
Explanation:
No Explanation

Question No: 3 of 15
Which of the following is true regarding a User Control? 
Options:
  1. It is easy to create as we can add other controls to it.
  2. A separate copy of the control is required in each application where it needs to be used as they cannot be compiled into an assembly.It has a .ascx file along with a .cs file.
  3. They cannot be added to the toolbox in Visual Studio
  4. There is limited visual design tool support for example if properties of the control are changed, they are not reflected in the design view but only in the browser.
  5. They are useful for creating a static layout
  6. All the above
View Answer/Explanation:
f
Explanation:
No Explanation

Question No: 4 of 15
Which namespace do you need to inherit to create a simple webpart in SharePoint 2013? 
Options:
  1. Microsoft.SharePoint.WebPartPages
  2. System.Web.UI.WebControls.WebParts.WebPart
  3. Either a or b
  4. None of the above
View Answer/Explanation:
c
Explanation:
SharePoint web part is built on ASP.NET Webpart infrastructure. We can create webparts by inheriting either i) System.Web.UI.WebControls.WebParts.WebPart or ii) Microsoft.SharePoint.WebPartPages but ii) is provided for mainly backward compatibility and i) is recommended. However ii) provides certain extra features such as cross page connections, webpart communication, client-side connections and data caching infrastructure.

Question No: 5 of 15
Which method in the WebPart class is used to render the HTML onto the webpart? 
Options:
  1. OnPreRender
  2. Render
  3. RenderContents
  4. None of the above
View Answer/Explanation:
c
Explanation:
The RenderContents method uses HTMLTextWriter to render HTML on the webpart. Ex:- protected override void RenderContents(HtmlTextWriter writer) { writer.Write(“

Hello

”); }

Question No: 6 of 15
Which of the following is true regarding the CreateChildControls method in the WebPart class? 
Options:
  1. It is used to render the webpart
  2. It is used for adding the controls to the webpart
  3. Both a and b
  4. None of the above
View Answer/Explanation:
b
Explanation:
protectedoverridevoid CreateChildControls() { ddlAlign = newDropDownList(); ddlAlign.Items.Add("Left"); ddlAlign.Items.Add("Right"); ddlAlign.Items.Add("Center"); this.Controls.Add(ddlAlign); }

Question No: 7 of 15
What does the EnsureChildControls method do? 
Options:
  1. It ensures that the CreateChildControls method has been executed
  2. It creates the child controls if no controls are created by the CreateChildControls method
  3. Both a and b
  4. None of the above
View Answer/Explanation:
a
Explanation:
It ensures that the CreateChildControls method has been executed. It must be called to prevent any null reference exceptions. It makes sure that all child controls are created before we access them.

Question No: 8 of 15
What does the attribute [WebBrowsable] do when applied to a webpart property? 
Options:
  1. It is used to make the value of the property persistent in the backend
  2. It is used to make the property visible in the Editor Pane of the webpart
  3. Both a and b
  4. None of the above
View Answer/Explanation:
b
Explanation:
if you provide a property with [WebBrowsable], the end user will be able to modify it in the editor component.

Question No: 9 of 15
What does the attribute [Personalizable] do when applied to a webpart property? 
Options:
  1. It is used to make the value of the property persistent in the backend
  2. It is used to make the property visible in the Editor Pane of the webpart
  3. Both a and b
  4. None of the above
View Answer/Explanation:
a
Explanation:
If you provide a property with [Personizable], the value will be persisted. For example, if the font is changed to red and you close the browser. Nxt time the font color will still remain red only.

Question No: 10 of 15
What is a composite webpart? 
Options:
  1. It is used to create the webpart using built-in asp.net controls
  2. We need to render the HTML of each built-in asp.net control used in the composite webpart
  3. Both a and b
  4. None of the above
View Answer/Explanation:
a
Explanation:
A Composite webpart is created by adding the built-in asp.net controls to the Controls collection of the webpart. There is no need to render the HTML of the webpart as we are using already existing asp.net controls.

  1