Sharepoint学习笔记—习题系列--70-576习题解析 -(Q124-Q127)
Question 124
You are designing a SharePoint 2010 application. You need to design a single feature that includes content types, fields, modules, and list instances. Which scope should you design?
A. Farm scoped
B. Site scoped
C. Web Application scoped
D. Web scoped
解析:
你计划在创建的一个Sharepoint2010功能(Feature)中包含内容类型,字段,模块和列表实例等元素(Element),你应该采用哪个作用域范围呢?
下表根据元素类型的作用域列出相应的元素类型。:
|
Scope |
Element |
|
Web (Web site) |
Content Type |
|
Content Type Binding |
|
|
Control |
|
|
Custom Action |
|
|
Custom Action Group |
|
|
Custom View |
|
|
Event |
|
|
Field |
|
|
Hide Custom Action |
|
|
List Instance |
|
|
List Template |
|
|
Module |
|
|
Property Bag |
|
|
Workflow Actions |
|
|
Web Template |
|
|
Site (site collection) |
Content Type |
|
Content Type Binding |
|
|
Control |
|
|
Custom Action |
|
|
Custom Action Group |
|
|
Event |
|
|
Field |
|
|
Hide Custom Action |
|
|
List Instance |
|
|
List Template |
|
|
Module |
|
|
Property Bag |
|
|
Template Association |
|
|
Workflow |
|
|
Workflow Actions |
|
|
Workflow Association |
|
|
WebApplication (Web application) |
Control |
|
Custom Action |
|
|
Custom Action Group |
|
|
Document Converter |
|
|
Hide Custom Action |
|
|
Template Association |
|
|
Web Template |
|
|
Workflow Association |
|
|
Farm (farm) |
Control |
|
Custom Action |
|
|
Custom Action Group |
|
|
Hide Custom Action |
|
|
Template Association |
|
|
Workflow Association |
从上表看到Site Scope与Web Scope均包含了本题所描述的元素(content types, fields, modules, and list instances),但考虑到Feature定义的重用性,即如果部署到网站集(Site Scope)则其下的所有Web均可使用。所以相对而言 Site Scope更佳。
因此本题答案应该选 B
参考
http://msdn.microsoft.com/en-us/library/ms454835(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ms441146(v=office.14).aspx
Question 125
You are designing a SharePoint 2010 application. You need to provision a custom document converter for the application. Which scope should you design?
A. Farm scoped
B. Site scoped
C. Web scoped
D. Web Application scoped
解析:
你想要创建一个Custom Document Convert,你应该采用什么作用域范围?
参照Question124的表格,我们可以直接定位选项D,即Web Application scoped。
因此本题答案应该选 D
参考
http://msdn.microsoft.com/en-us/library/ms454835(v=office.14).aspx
http://msdn.microsoft.com/zh-cn/library/ms441146(v=office.14).aspx
Question 126
You are designing a SharePoint 2010 intranet site for your company. Your design needs to meet the following requirements:
.A SharePoint feature (feature A) must make a custom list definition available for the entire site collection.
.Another SharePoint feature (feature B) must provision an instance of that custom list definition in the particular site where the feature is activated.
Which approach should you recommend?
A. Set the scope of feature A to Web and the scope of feature B to Site. Add feature A to the set of Activation Dependencies in feature B.
B. Set the scope of feature A to Web and the scope of feature B to Site. Add feature B to the set of Activation Dependencies in feature A.
C. Set the scope of feature A to Site and the scope of feature B to Web. Add feature A to the set of Activation Dependencies in feature B.
D. Set the scope of feature A to Site and the scope of feature B to Web. Add feature B to the set of Activation Dependencies in feature A.
解析:
你需要按照下面要求为公司创建一个Sharepoint2010内部网站:
要求1.Sharepoint功能A可以为整个网站集提供用户列表定义
要求2.Sharepoint功能B可以基于功能A中所创建的列表定义来在它所被激活的网站创建一个列表实例。
你该如何操作呢?
根据要求1,功能A应该是Site Scope, 根据要求2,功能 B应该是Web Scope,并且功能B依赖于功能A,根据这样的逻辑,直接可以定位到选项C。
因此本题答案应该选 C
参考
http://msdn.microsoft.com/en-us/library/aa543162(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/ee231535.aspx
Question 127
You are designing a SharePoint 2010 feature that will be included in a solution package. You have added a feature receiver to your feature. You need to ensure that the code in the feature receiver executes when the solution package is deployed to the Web front-end servers. Which approach should you recommend?
A. Add your code to the Feature Installed method of the feature receiver.
B. Add your code to the Feature Activated method of the feature receiver.
C. Add a Feature Installed node referencing the feature receiver assembly to the solution manifest file.
D. Add a Feature Activated node referencing the feature receiver assembly to the solution manifest file.
解析:
你需要为一个解决方案包中所含的功能创建一个Feature Receiver,此Feature Receiver中包含的代码会在此解决方案包被部署到WFE服务器时被执行,该如何操作才能达到此效果呢?
本题涉及Feature Receiver的相关Events,我们知道Sharepoint的功能事件接收器用于指定在功能的生存期中作为四个关键事件(Events)的一部分调用的服务器端代码例程:
- 安装(A feature is installed)
- 激活(A feature is activated)
- 停用(A feature is deactivated)
- 删除(A feature is removed)
本题要求在解决方案包被部署到WFE服务器时Feature被执行,应该属于A feature is installed事件,即Feature被安装好后立即执行,所以选项A正确。
选项B. A feature is activated功能都被激活了还用启动它吗?
选项C.D涉及Solution Manifest File,解决方案清单(通常称为 manifest.xml)存储在解决方案文件的根位置。此文件定义要处理的功能、网站定义、资源文件、Web 部件文件和程序集的列表。它不定义文件结构。如果文件包含在解决方案中,但未列在 manifest.xml 文件中,则无论如何都不会处理这些文件。在此文件的架构中,你可以找到FeatureManifests节点,但不存在Feature Installed与Feature Activated节点。所以选项C.D被排除。
因此本题答案应该选 A
参考
http://msdn.microsoft.com/zh-cn/library/ee231604.aspx
http://msdn.microsoft.com/zh-cn/library/ms442108.aspx
Sharepoint学习笔记—习题系列--70-576习题解析 -(Q124-Q127)的更多相关文章
- Sharepoint学习笔记—ECM系列—文档列表的Metedata Navigation与Key Filter功能的实现
如果一个文档列表中存放了成百上千的文档,想要快速的找到你想要的还真不是件容易的事,Sharepoint提供了Metedata Navigation与Key Filter功能可以帮助我们快速的过滤和定位 ...
- Sharepoint学习笔记—ECM系列--文档集(Document Set)的实现
文档集是 SharePoint Server 2010 中的一项新功能,它使组织能够管理单个可交付文档或工作产品(可包含多个文档或文件).文档集是特殊类型的文件夹,它合并了唯一的文档集属性以及文件夹和 ...
- Sharepoint学习笔记—习题系列--70-576习题解析 --索引目录
Sharepoint学习笔记—习题系列--70-576习题解析 为便于查阅,这里整理并列出了70-576习题解析系列的所有问题,有些内容可能会在以后更新. 需要事先申明的是: 1. ...
- Sharepoint学习笔记—习题系列--70-573习题解析 --索引目录
Sharepoint学习笔记—习题系列--70-573习题解析 为便于查阅,这里整理并列出了我前面播客中的关于70-573习题解析系列的所有问题,有些内容可能会在以后更新, ...
- Deep Learning(深度学习)学习笔记整理系列之(五)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(八)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(七)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(六)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(四)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(三)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
随机推荐
- jQuery 2.0.3 源码分析Sizzle引擎 - 高效查询
为什么Sizzle很高效? 首先,从处理流程上理解,它总是先使用最高效的原生方法来做处理 HTML文档一共有这么四个API: getElementById 上下文只能是HTML文档 浏览器支持情况:I ...
- .NET平台开源项目速览(3)小巧轻量级NoSQL文件数据库LiteDB
今天给大家介绍一个不错的小巧轻量级的NoSQL文件数据库LiteDB.本博客在2013年也介绍过2款.NET平台的开源数据库: 1.[原创]开源.NET下的XML数据库介绍及入门 2.[原创]C#开源 ...
- Web APi之手动实现JSONP或安装配置Cors跨域(七)
前言 照理来说本节也应该讲Web API原理,目前已经探讨完了比较底层的Web API消息处理管道以及Web Host寄宿管道,接下来应该要触及控制器.Action方法,以及过滤器.模型绑定等等,想想 ...
- Windws Server 2008 R2 WEB环境配置之MYSQL 5.6.22安装配置
版本选择 因为MySql的版本越来越多,而作为中小网站者可能没有足够的经济去购买商业版本,所以一般选择免费版,而且功能也是足够使用的. 有钱任性就下载企业版,哈哈. 目前使用最多的版本是mysql i ...
- 原生JS实现jquery的链式编程。
这是我根据之前遇到的一个面试题,题目:用原生JS实现$("#ct").on("click",fn).attr("id"). 然后看了篇jqu ...
- Android之vector代码修改颜色
前言:google给了很多material design icon,在开发过程中,可以下载下来直接使用,下载地址为https://materialdesignicons.com/ . 1.下载图标,并 ...
- ECMAScript 6 开篇准备
1前言 该系列文章均为学习阮一峰老师<ECMAScript 6 入门>一书的学习笔记.原著:http://es6.ruanyifeng.com/ 各大浏览器的最新版本,对ES6的支持可以查 ...
- (十五)WebGIS中平移功能的设计和实现
文章版权由作者李晓晖和博客园共有,若转载请于明显处标明出处:http://www.cnblogs.com/naaoveGIS/. 1.前言 这一章我们将详细讲解WebGIS工具栏中另一个基础工具——平 ...
- Mybatis-update - 数据库死锁 - 获取数据库连接池等待
最近学习测试mybatis,单个增删改查都没问题,最后使用mvn test的时候发现了几个问题: update失败,原因是数据库死锁 select等待,原因是connection连接池被用光了,需要等 ...
- $\LaTeX$笔记:首字下沉
$\LaTeX$系列根目录: Latex学习笔记-序 首字下沉 \IEEEPARstart{W}{ith} ,第一个参数W会变大,占用两行,第二个参数”ith”变会大写. 如代码 \IEEEPARst ...