微软认证考试题库70-528

合集下载

微软认证题库

微软认证题库

Same type as the certification exams, 70-660 exam preparation is in multiple-choice questions (MCQs).Tested by multiple times before publishingTry free 70-660 exam demo before you decide to buy it in .Note:This pdf demo do not include the question's picture.Exam : Microsoft 70-660Title : TS: Windows(r) Internals1. You are writing an I/O dispatch routine for a Windows device driver. The device driver supports buffered I/O. The dispatch routine transfers 1 KB of data to the user process.You need to retrieve the kernel address of the 1-KB buffer from the I/O request packet (IRP).Which field of the IRP contains the kernel address?A. Irp->AssociatedIrp.SystemBufferB. Irp->erApcContextC. Irp->Tail.Overlay.DriverContext[0]D. Irp->UserBufferAnswer: A2. You are developing an application.You need to ensure that the application can read from COM port 10 by using the CreateFile function.Which device name should you open?A. "COM10"B. "%COM10%"C. "\COM10"D. "\\.\COM10"Answer: D3. You develop a Windows device driver for a hardware device. The hardware device uses a simple direct memory access (DMA) controller. The hardware device does not perform virtual address translation.You need to allocate a 64-KB buffer in Windows that accepts a DMA transfer of 64 KB from the hardware device. Which routine should you use?A. AllocateHeap(655536)B. ExAllocatePoolWithTag(PagePool, 65536, 'abcd')C. ExAllocatePoolWithTag(NonPagePool, 65536, 'abcd')D. MmAllocateContiguousMemory(65536, 0xFFFFFFFF)Answer: D4. You have a device driver that has one monitoring thread named Thread1. The device driver has three worker threads named Thread2, Thread3, and Thread4. The worker threads run every 10 seconds and complete within 1 second. If any worker thread does not run at least once every 30 seconds, Thread1 calls KeBugCheckEx, and then a complete kernel crash dump is generated.The computer generates a bug check and a complete kernel dump is generated.You review the complete kernel dump and notice the following:You need to identify the root cause of the bug check.What caused the bug check to occur?A. the priority of Thread1B. the priority of Thread4C. the state of Thread1D. the state of Thread2 and Thread3Answer: B5. You develop a device driver for Windows X P that runs on uniprocessor systems only. The driver creates a system thread and a deferred procedure call (DPC). The DPC is invoked by a repeating timer.The thread and the DPC must process entries from the same work queue.You need to ensure that the system thread and the DPC are synchronized.Which IRQ Level (IRQL) should you use?A. APC_LEVELB. DISPATCH_LEVELC. LOW_LEVELD. PASSIVE_LEVELAnswer: B6. You plan to update a device driver on a Windows system. You download a copy of the device driver file from the Internet, but you are uncertain that the device driver is legitimate.You need to verify the device driver's digital signature.Which tool should you use?A. Certmgr.exeB. Certmgr.mscC. Makecert.exeD. Signtool.exeAnswer: D7. You are writing a user application that runs on Windows Server 2003.The design specification for the application requires user authentication.You need to ensure that users enter a local user name and password each time the application is started.Which routine should you use?A. CredReadDomainCredentials()B. CredUIParseUserName()C. CredUIPromptForCredentials()D. LsaRegisterLogonProcess()Answer: C8. You develop a device driver for a PCI device. The PCI device runs on Windows Server 2003 computers.You test the device driver's interrupt processing. The computer stops responding.You need to locate the list of interrupt handling routines in the crash dump by using WinDbg.Which command should you use?A. !idtB. !ipiC. !irqlD. !isrAnswer: A9. You are developing a user mode application that contains two processes.You need to allow the two processes to synchronize access to a shared data area.Which synchronization primitive should you use?A. Critical SectionB. ERESOURCEC. MutexD. SpinlockAnswer: C10. You are designing an application.The application fails because of an access violation. The access violation is caused by a heap corruption.You need to identify the cause of the heap corruption.。

microsoft认证考试试题及答案

microsoft认证考试试题及答案

microsoft认证考试试题及答案2017年microsoft认证考试试题及答案微软认证计划进行了全面升级,以涵盖云技术相关的解决方案,并将此类技能的考评引入行业已获得高度认可和备受瞩目的认证考试体系,从而推动整个行业向云计算时代进行变革。

下面是店铺整理的关于microsoft认证考试试题及答案,欢迎大家参考!1. 您有一台具有以下硬件配置的计算机:1.6 千兆赫 (GHz) 处理器(64 位)8 GB RAM500 GB 硬盘具有 128 MB RAM 的`图形卡您需要选择一个 Window 7 版本以满足以下要求:支持 DirectAccess支持 Windows XP 模式使用所有已安装的内存支持加入一个 Active Directory 域您应该选择哪个版本?A. Windows 7 Enterprise(64 位)B. Windows 7Enterprise (x86)C. Windows 7 Professional(64 位)D. Windows 7 Ultimate (x86)Answer: A2. 您有一台运行Windows 7 Professional 的计算机。

有一个USB 磁盘连接到该计算机。

您需要确保可以启用USB 磁盘上的BitLocker To Go。

您应该怎么办?A. 启用加密文件系统 (EFS)。

B. 将计算机升级到 Windows 7 Enterprise。

C. 初始化受信任的平台模块 (TPM) 硬件。

D. 从企业证书颁发机构 (CA) 获取客户端证书。

3. 您有一台运行 Windows Vista Service Pack 2 (SP2) 的计算机。

您需要将这台计算机升级到 Windows 7。

您应该怎么做?A. 从 Windows 7 安装媒体启动计算机并选择“升级”选项。

B. 从Windows 7 安装媒体启动计算机并选择“自定义(高级)”选项。

C. 在Windows Vista 中,从Windows 7 安装媒体运行Setup.exe 并选择“升级”选项。

Microsoft资格认证考试试题

Microsoft资格认证考试试题

Microsoft资格认证考试试题1. 您有两台计算机,分别名为 Computer1 和 Computer2。

您将用户状态数据从 omputer1 迁移到 Computer2。

迁移的文件包含若干Microsoft Office Excel 文件。

您需要确保可以在 Computer2 上通过使用Excel 打开 Excel 文件。

您应该怎么做?A. 安装 Office。

B. 禁用“用户帐户控制”(UAC)。

C. 修改默认程序设置。

D. 运行 Loadstate.exe /i:migapp.xml。

Answer: A2. 您有一台运行 Windows 7 的引用计算机。

您计划部署计算机的一个映像。

您创建名为 answer.xml 的应答文件。

您需要确保在部署映像后安装应用应答文件。

捕获映像之前您应该运行哪一命令?A. Imagex.exe /append answer.xml /checkB. Imagex.exe /mount answer.xml /verifyC. Sysprep.exe /reboot /audit /unattend:answer.xmlD. Sysprep.exe /generalize /oobe /unattend:answer.xmlAnswer: D33. 您的网络由单一的 Active Directory 林组成。

您有 50 台便携式计算机和 50 台台式计算机。

所有计算机都有 32 位硬件。

您计划使用自定义映像将 Windows 7 和 10 个企业应用程序部署到这些计算机。

您需要使用最少的.管理工作量准备部署。

您第一步应该怎么办?A. 在一台计算机上安装 Windows 7 和企业应用程序。

B. 在一台便携式计算机和一台台式计算机上安装 Windows 7 和企业应用程序。

C. 在服务器上,安装并运行 Microsoft Assessment and Planning (MAP) Toolkit。

微软招聘测试题笔试题目及答案_0

微软招聘测试题笔试题目及答案_0

微软招聘测试题笔试题目及答案微软招聘测试题只有5分钟,超过5分钟就放弃,因为你绝对不会被微软录用.test 1烧一根不均匀的绳需用一个小时,如何用它来判断半个小时test 2。

请仅用一笔画四根直线,将上图9各点全部连接。

test 3对一批编号为1~100全部开关朝上(开)的灯进行以下操作:凡是1的倍数反方向拨一次开关;2的倍数反方向又拨一次开关;3的倍数反方向又拨一次开关。

问:最后为关熄状态的灯的编号。

微软公司招聘笔试题目及答案智力题1.烧一根不均匀的绳子,从头烧到尾总共需要1个小时,问如何用烧绳子的方法来确定半小时的时间呢2.10个海盗抢到了100颗宝石,每一颗都一样大小且价值连城。

他们决定这么分:(1)抽签决定自己的号码(1~10);(2)首先,由1号提出分配方案,然后大家表决,当且仅当超过半数的人同意时,按照他的方案进行分配,否则将被扔进大海喂鲨鱼;(3)如果1号死后,再由2号提出分配方案,然后剩下的4个人进行表决,当且仅当超过半数的人同意时,按照他的方案进行分配,否则将被扔入大海喂鲨鱼;(4)依此类推条件:每个海盗都是很聪明的人,都能很理智地做出判断,从而做出选择。

问题:第一个海盗提出怎样的分配方案才能使自己的收益最大化3.为什么下水道的盖子是圆的4.中国有多少辆汽车5.你让工人为你工作7天,回报是一根金条,这根金条平分成相连的7段,你必须在每天结束的时候给他们一段金条。

如果只允许你两次把金条弄断,你如何给你的工人付费6.有一辆火车以每小时15公里的速度离开北京直奔广州,同时另一辆火车以每小时20公里的速度从广州开往北京。

如果有一只鸟,以30公里每小时的速度和两辆火车同时启动,从北京出发,碰到另一辆车后就向相反的方向返回去飞,就这样依次在两辆火车之间来回地飞,直到两辆火车相遇。

请问,这只鸟共飞行了多长的距离7.你有两个罐子以及50个红色弹球和50个蓝色弹球,随机选出一个罐子,随机选出一个弹球放入罐子,怎样给出红色弹球最大的选中机会在你的计划里,得到红球的几率是多少8.想像你站在镜子前,请问,为什么镜子中的影像可以左右颠倒,却不能上下颠倒呢9.如果你有无穷多的水,一个3公升的提捅,一个5公升的提捅,两只提捅形状上下都不均匀,问你如何才能准确称出4公升的水10.你有一桶果冻,其中有黄色、绿色、红色三种,闭上眼睛抓取同种颜色的两个。

微软MCTS认证考试科目详细列表

微软MCTS认证考试科目详细列表
考试70-544
一键复制全文
下载全文
考试70-536

考试70-504
微软SQL Server技术
MCTS :微软SQL Server 2005
考试70-431
MCTS :微软SQL Server 2005商务智能
考试70-445
MCTS:SQL Server 2008中,商业智能开发与维护
考试70-448
MCTS:SQL Server 2008中,数据库开发
考试70-577
MCTS : Windows嵌入式标准7 ,发展
考试70-582
MCTS :视窗基本商业服务器2008年,配置
考试70-654
MCTS : Windows Mobile 5.0的应用
考试70-540
MCTS : Windows移动5.0,实施和管理
考试70-500
MCTS : Windows Server 2003的托管环境,配置和管理
考试70-633
MCTS :微软Office Communications Server 2007 ,配置
考试70-638
MCTS :微软Office Groove 2007中,配置
考试70-555
MCTS :微软Office Live Communications Server 2005中,实施,管理和故障排除
微软的Visual Studio和Microsoft。NET框架技术
MCTS :。 NET框架2.0 Web应用程序
考试70-536

考试70-528
MCTS :。 NET Framework 2.0的Windows应用程序
考试70-536

微软认证70-228-试卷2

微软认证70-228-试卷2

微软认证70-228-试卷2(总分:14.00,做题时间:90分钟)一、单选题(总题数:7,分数:14.00)1.You are the administrator of a SQL Server 2000 computer. Each evening after business hours, you perform database maintenance tasks. You create a Data Transformation Services package to populate the data warehouse. MAPI is not installed on the server.You want to schedule the DTS package to run each night. You want to attend to other duties while the DTS package is executing. You also want to be notified if the DTS package fails.What should you do?(分数:2.00)A.Select the DTS packages log package execution to SQL server check box. Create a SQL server event alert to notify you if the package fails.B.Select the DTS packages write completion status to event log check box. Create a SQL server event alert to notify you if the package fails. √C.Configure the DTS package to include an on failure precedence constraint and a send mail task. Configure the send mail task to notify you if the package fails.D.Configure the DTS package to include an on failure precedence constraint and a send mail task. Configure the execute process task to execute a not send command that will notify you if the package fails.解析:解析:Explanation: When jobs are completed (successfully or not), the subsystem returns a result status (with optional messages) to SQL Server Agent. SQL Server Agent then records the completion status in both the operating system's application log and the job history table in SQL Server and optionally sends an e-mail report or an SQL Server event alert of the job status to the designated operator. Incorrect Answers: A: We are interested to when the package has completed. The completion status, not the log package execution, should be used to trap the completion of a package. The execution status concerns Last run time, Last run status, Last run message, etc. C, D: The Messaging Application Programming Interface (MAPI) isn't installed. MAPI is needed for SQL Server to send e-mail. No e-mail can be send by SQL Server in this scenario.2.server’s msdb database in an e-mail message to the administrator of another SQL Server computer.You create a job that contains the following steps:--Detach the msdb database--Send the database to the administrator in an e-mail message--Reattach the msdb databaseYou test the job, and it fails on the first step. You need to ensure that the msdb database is mailed to the administrator every night.What should you do?(分数:2.00)A.Ensure that the SQLServerAgent service is running under a user account that has database owner access to the msdb databaseB.Delete the first and last steps in the jobC.Configure the job to back up the msdb database to a temporary file. Send the file to the administrator in an e-mail message √D.Insert a new job step before the first step. Configure the new step to terminate all processes that use the msdb database解析:解析:Explanation: The current job fails since the detach msdb statement fails. It fails because detaching a database requires that no one is using the database. The msdb database is used by the SQL Server Agent service, which performs scheduled activities such as backups and replication tasks. We want to send the msdb database. The msdb database could be detached if all processes that use it where terminated. Then we could send the database file and reattach the msdb database. This would stop scheduled tasks from being run during this period. A better approach would to be to backup the database and send the temporary file instead. Note: A new SQL Server2000 installation automatically includes six databases: master, model, tempdb, pubs, Northwind, and msdb. The master, model, and tempdb databases cannot be detached. Incorrect answers: A: The problem that the SQL Service Agent is using the msdb database. This problem would still be there even user account running the SQL Server Agent service is changed. B: The msdb database is used by the SQL Server Agent service and the database file would be locked. It cannot be sent directly in an e-mail message. D: The msdb database could be detached if all processes that use it where terminated. Then we could send the database file and reattach the msdb database. This would stop scheduled tasks from being run during this period.3.You are the database administrator for an accounting company. You are installing SQL Server 2000 on a new Microsoft Windows 2000 Server computer. The computer will run two client/server database applications that your company has purchased. Each application uses a separate database.During the installation, you specify SQL_Latin1_General_CP1_CI_AI as the default collation for the SQL server computer. After completing the installation, you discover that one of the new applications, named Financials, is sorting information incorrectly.You contact the application vendor and discover that the Financials application requires the SQL_Latin1_CP437_BIN collation. You need to configure the correct collation for the applications without diminishing the performance of the SQL Server computer.What should you do?(分数:2.00)A.Rerun the SQL Server Setup and specify the SQL_Latin1_General_CP437_BIN collation.B.Run the rebuildm utility and specify the SQL_Latin1_General_CP437_BIN collation.e the ALTER DATABASE statement to specify the SQL_Latin1_General_CP437_BIN collation for the Financials database. √e the ALTER TABLE statement to specify the SQL_Latin1_General_CP437_BIN collation for each table in the Financials database.解析:解析:Explanation: The collation of a database can be specified in the COLLATE clause of the ALTER DATABASE statement. This will change the default collation of the database that was specified when the database was created, or to alter the collation for a database where the collation was not specified when the database was created and thus the default collation of the server was used. Incorrect Answers: A: The collation of a database can be altered using the COLLATE clause of the ALTER DATABASE statement. It is therefore not necessary to reinstall the instance of SQL Server 2000 or to rerun the setup program. Furthermore, rerunning the SQL Server 2000 setup program would disrupt the performance of the SQL Server computer. B: The rebuildm utility alters the master database and can be used to change the collation settings for an instance of SQL Server 2000. However, it is only the Financial database that needs to be altered as it is financial application is the only application that uses the SQL_Latin1_General_CP437_BIN collation. D: The COLLATE clause can be specified at different levels. It can be specified for the database, a table, a column or an expression. In this scenario the collation can be altered at the database level as this will reduce administrative effort when new tables are added to the database.4.You are the database administrator of a SQL Server 2000 computer. The server contains your company's Accounts database. Hundreds of users access the database each day.Because you have had power interruptions in the past, you want to perfect the physical integrity of the Accounts database. You do not want to slow down server operations.What should you do?(分数:2.00)A.Enable the torn page detection database option for each database.B.Disable write caching on all disk controllers.C.Ensure that write caching disk controllers have battery backups. √D.Create a database maintenance plan to check database integrity and make repairs each night. 解析:解析:Explanation: The scenario states that power interruptions have occurred in the past. By buying a battery backup solution for the disk controllers the power interruption problem wouldbe prevented. Incorrect Answers: A: Torn page detection is a reactive solution which would slow down performance since restores would have to be made. It would better to use a preventive solution. Note: Torn page detection: If a torn page is detected, the database must be restored from backup because it will be physically inconsistent. B: Caching is very import for performance. Disabling write-caching would be a bad idea. D: Repairing the database every night is not a good solution. Database errors cannot be accepted. It is better to prevent the problem instead of trying to fix it after it has happened.5.You are the administrator of a SQL Server 2000 computer. The server contains a database namedInventory. The database is configured as shown in the Users frequently need details about parts. Users search for data by using the following query.SELECT Parts.SKU, Locations.Description, , PartsLocations.Qty,stInventoriedFROM PartsINNER JOIN Manufacturer ON Parts.ManufacturerID= Manufacturer.ManufacturerIDINNER JOIN PartsLocation ON Parts.PartID =Parts.Location.PartsIDINNER JOIN Locations ON Parts.LocationID= Locations.LocationIDWHERE SKU?You need to accelerate query response time. What should you do?(分数:2.00)A.Create a parameterised stored procedure to retrieve the data.B.Create a denormalized table that is maintained by triggers.e ad hoc queries to retrieve the data.D.Create a nonclustered index on the primary key of each table. √解析:解析:Explanation: A nonclustered index is similar to an index in a textbook. The data is stored in one place, the index in another, with pointers to the storage location of the data. The index contains entries describing the exact location in the table of the data values being searched for in the queries and should be used for columns that contain a large number of distinct values; queries that do not return large result sets; columns frequently involved in search conditions of a query that return exact matches; and decision-support-system applications for which joins and grouping are frequently required. Create multiple nonclustered indexes on columns involved in join and grouping operations, and a clustered index on any foreign key columns. Note: A better solution, not listed here, would to create clustered indexes on the primary keys and nonclustered indexes on the foreign keys. Incorrect Answers: A: A parameterized query would not improve performance. Parameterized queries are SQL queries written for reusability. They contain parameter markers as placeholders for data that will change from execution to execution. In the Data Transformation Services (DTS) tasks that use parameterized queries. B: Reasonable normalization often includes few regularly executed queries that use joins involving more than four tables. In this scenario four tables are being joined in the query. The normalization here is thus permissible. Note: Database normalization often improves query performance. When useful indexes are available, the SQL Server 2000 query optimizer can select rapid, efficient joins between tables. Normalization is advantageous as it aids faster sorting and index creation; enables a larger number of clustered indexes; allows for narrower and more compact indexes; reduces the number of indexes per table, which improves the performance of INSERT, UPDATE, and DELETE statements; and reduces null values and the opportunity for inconsistency, which increase database compactness. However, as normalization increases, so do the number and complexity of joins required to retrieve data. Too many complex relational joins between too many tables can hinder performance. C: An ad hoc query is a query that is composed for a particular task. The code in this scenario is an example of an ad hoc query.6.You are the administrator of a SQL Server 2000 computer. The server contains a database that stores inventory data. Another database administrator has created a number of scheduled jobs to maintain the inventory database. Each weeknight the following jobs occur.-- A BULK INSERT jobimports data at 10:00 P.M.-- Indexes are rebuilt at 10:15 P.M.-- Data integrity checks are performed at 10:30 P.M.-- A differential backup is performed at 10:45 P.M.-- A DBCC SHRINKDATABASE job runs at 11:00 P.M.You notice that the final job often fails and returns the following error message: "Server Msg 3140, Level 16, State 3. Could not adjust the space allocation for file 'inventory_data'."You need to ensure that the final job runs without errors. What should you do? (分数:2.00)A.Create a new DBCC SHRINKFILE job to shrink the inventory_data file. Schedule the new job to run at the same time as the DBCC SHRINKDATABASE job.B.Modify the DBCC SHRINKDATABASE job so that it uses DBCC SHRINKFILE statement to shrink each file individually.C.Increase the time between the data integrity checks and the differential backup.D.Increase the time between the differential backup and the DBCC SHRINKDATABASE job. √解析:解析:Explanation: The DBCC SHRINKDATABSE cannot be executed until the previous job step, the differential backup, has been completed. We should increase the time between these two job steps, or even better configure the last job step to run only after the differential backup has been completed. Note: The DBCC SHRINKDATABASE statement shrinks data files on a per-file basis but shrinks log files as if all the log files existed in one contiguous log pool. The target size for the data and log files cannot be smaller than the minimum size of a file that was specified when the file was originally created, or the last explicit size set with a file size changing operation such as the ALTER DATABASE statement with the MODIFY FILE option or the DBCC SHRINKFILE statement. Incorrect Answers: A: The DBCC SHRINKDATABASE command shrinks the whole database. Shrinking a single data file would not be the optimal solution to shrink the database. Note: The DBCC SHRINKFILE statement shrinks the size of the specified data or log file in the related database and is used to reduce the size of a file to smaller than its originally created size. The minimum file size for the file is then reset to the newly specified size. By using the EMPTYFILE argument in conjunction with the DBCC SHRINKFILE statement before executing the ALTER DATABASE statements, we can remove the data in a file. Other users can be working in the database when the file is shrunk, thus the database being shrunk does not have to be in single-user mode when using the DBCC SHRINKFILE statement. The DBCC SHRINKDATABASE statement shrinks data files on a per-file basis but shrinks log files as if all the log files existed in one contiguous log pool. The target size for the data and log files cannot be smaller than the minimum size of a file that was specified when the file was originally created, or the last explicit size set with a file size changing operation such as the ALTER DATABASE statement with the MODIFY FILE option or the DBCC SHRINKFILE statement. These two functions thus adjust the space allocation on a per-file basis and cannot run at the same time. B: The DBCC SHRINKDATABASE statement shrinks data files on a per-file basis already. There is no need to use the DBCC SHRINKFILE statement to shrink each file individually. Note: The DBCC SHRINKDATABASE statement shrinks log files as if all the log files existed in one contiguous log pool. The target size for the data and log files cannot be smaller than the minimum size of a file that was specified when the file was originally created, or the last explicit size set with a file size changing operation such as the ALTER DATABASE statement with the MODIFY FILE option or the DBCC SHRINKFILE statement. C: Database integrity checks such as the DBCC CHECHDB statement should be run before any major system changes, such as a hardware or software upgrade, or after a hardware failure, or if a system problem is suspected. It is not necessary to run database integrity checks as part of the normal backup or maintenance procedures.7.You are the administrator of a SQL Server 2000 computer in your company's personnel department. Employee data is stored in a SQL Server 2000 database. A portion of the database schema is shownin the You want to create a text file that lists these data columns in the following format title, FirstName, LastName, WorkPhone, PositionName, DepartmentName.You want to createthe text file as quickly as possible. You do not expect to re-create this file, and you want to avoid creating new database objects if possible.What should you do?(分数:2.00)e the bcp utility to export data from each table to a separate text file. Use format files to select the appropriate columns. Merge the data from each text file into a single text file.B.Create a view that joins data from all three tables include only the columns you want to appear in the text file. Use the bcp utility to export data from the view.C.Create a SELECT query that joins the data from the appropriate columns in the three tables. Add an INTO clause to the query to create a local temporary table. Use the bcp utility to export data from the local temporary table to a text file.D.Create a SELECT query that joins the data from the appropriate columns in the three tables. Add an INTO clause to the query to create a global temporary table. Use the bcp utility to export data from the global temporary table to a text file. √解析:解析:Explanation: As the columns that we want in the text file are on different tables in the database, we would have to combine the column into a table or view. Because we will not need to reproduce the file, we can we can combine the column from the various tables into a global temporary table by using the SELECT INTO statement. Then we use the bcp utility to export the data from the global temporary file to a text file. Note: Temporary tables are not stored in the current database; they are stored in the tempdb system. There are two types of temporary tables: local temporary tables, which are visible only to the connection that created them, and global temporary tables, that are visible to all connections. If global temporary tables are not dropped explicitly before the connection that created them disconnects, they are dropped as soon as all other tasks stop referencing them. No new tasks can reference a global temporary table after the connection that created it disconnects. The bcp utility copies data between an instance of SQL Server 2000 and a data file in a user-specified format. It can be used to transfer data from a SQL Server table to a data file for use in other programs. Furthermore, data can also be transferred out by specifying a SELECT statement. The bcp utility can use global temporary tables, but not local temporary tables. Incorrect Answers: A: Creating a global temporary table by using the SELECT statement and using the bcp utility to export data from that table would require less administrative effort than using bcp to export the required columns from each table into a separate text file and then merging those text files into a single text file. B: Because we would not need to re-create the data file again, it would be easier to use the SELECT statement to create a global temporary table as these tables are dropped automatically when nothing reference them. C: The bcp utility cannot use local temporary tables. Note: Temporary tables are not stored in the current database; they are stored in the tempdb system. There are two types of temporary tables: local temporary tables, which are visible only to the connection that created them, and global temporary tables, that are visible to all connections.。

MCP 70-528 考试题库

MCP 70-528 考试题库

D. Add the following code segment to the Web site's configuration file.<pages theme="ThemeName" />Answer: C2. You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults.You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form.Which code segment should you use?A. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.ErrorlblResults.Text = e.ToString()e = NothingEnd SubB. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.Error?lblResults.Text = Server.GetLastError().ToString()Server.ClearError()End SubC. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.Error?Response.Write(e.ToString())e = NothingEnd SubD. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.ErrorResponse.Write(Server.GetLastError().ToString())Server.ClearError()End SubAnswer: D3. You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.Each resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings.You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do?A. Add the following configuration section to the Web.config file.<globalization culture="Auto" />B. Set the directive for each page in your site as follows:<%@ Page UICulture="Auto" %>C. Add the following code segment to the pages load event.lblName.Text = @"{myStrings}Name";lblAddress.Text = @"{myStrings}Address";lblEmail.Text = @"{myStrings}Email";lblPhone.Text = @"{myStrings}Phone";D. Add the following code segment to the pages load event.lblName.Text = ;lblAddress.Text = Resources.myStrings.Address;lblEmail.Text = Resources.myStrings.Email;lblPhone.Text = Resources.myStrings.Phone;Answer: D4. You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults.You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form.Which code segment should you use?A. protected void Page_Error(object sender, EventArgs e) {lblResults.Text = e.ToString();e=null;}B. protected void Page_Error(object sender, EventArgs e) {lblResults.Text = Server.GetLastError().ToString();Server.ClearError();}C. protected void Page_Error(object sender, EventArgs e) {Response.Write(e.ToString());e=null;}D. protected void Page_Error(object sender, EventArgs e) {Response.Write(Server.GetLastError().ToString());Server.ClearError();}Answer: D5. You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database.When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields.You need to ensure that the Web Form does not update if the user has not entered data in all of the fields.Which code segment should you use?A. protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e) {foreach (DictionaryEntry entry in e.Keys) {if (entry.Value.ToString() == System.String.Empty) {e.Cancel = true;return;}}}B. protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) {foreach (DictionaryEntry entry in e.NewValues) {if (entry.Value.Equals("")) {e.KeepInEditMode = true;return;}}}C. protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e) {foreach (DictionaryEntry entry in e.NewValues) {if (entry.Value.Equals("")) {e.Cancel = true;return;}}}D. protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) {foreach (DictionaryEntry entry in e.Keys) {if (entry.Value.ToString() == System.String.Empty) {e.KeepInEditMode = true;return;}}}Answer: C6. You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows.The user utilizes a Web Form to delete the first product.You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown. To which value should you set the DataTabless DefaultView.RowStateFilter?A. DataViewRowState.ModifiedOriginalB. DataViewRowState.ModifiedCurrentC. DataViewRowState.CurrentRowsD. DataViewRowState.AddedAnswer: C7. You are creating a Web Form. You write the following code segment to create a SqlCommand object.You need to display the number of customers in the Customers table.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. object customerCount = cmd.ExecuteScalar();lblCompanyName.Text = customerCount.ToString();B. int customerCount = cmd.ExecuteNonQuery();lblCompanyName.Text = customerCount.ToString();C. SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr[0].ToString();D. SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr.ToString();Answer: A AND C8. You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.IAsyncResult ar = cmd.BeginExecuteReader();You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing.Which code segment should you use?A. while (ar.AsyncWaitHandle == null) {DoWork();}dr = cmd.EndExecuteReader(ar);B. while (!ar.IsCompleted) {DoWork();}dr = cmd.EndExecuteReader(ar);C. while (Thread.CurrentThread.ThreadState == ThreadState.Running) {DoWork();}dr = cmd.EndExecuteReader(ar);D. while (!ar.AsyncWaitHandle.WaitOne()) {DoWork();}dr = cmd.EndExecuteReader(ar);Answer: B9. Your Web site processes book orders. One of the application methods contains the following code segment.You need to remove the discount element from X mlDocument.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. Dim root As X mlNode = doc.DocumentElementroot.RemoveChild(root.FirstChild)B. Dim root As X mlNode = doc.DocumentElementroot.RemoveChild(root.SelectSingleNode("discount"))C.doc.RemoveChild(doc.FirstChild)D.doc.DocumentElement.RemoveChild(doc.FirstChild)Answer: B AND A10. You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed.What should you do?A. Add the following code segment after line 05.dc.ExtendedProperties("Total") = "Price * Quantity"B. Add the following code segment after line 05.dc.Expression = "Price * Quantity"C. Write an event handler for the DataTable's TableNewRow event that updates the row's Total.D. Write an event handler for the DataTable's ColumnChanged event that updates the row's Total.Answer: B11. You create a Web Form that displays a GridView. The GridViews data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.)You need to find the cause of the exception being raised in line 05.What should you do?A. Ensure that the child column and the parent column have the same names.B. Ensure that the child table and the parent table have the same names.C. Ensure that the child column and the parent column have the same data types.D. Ensure that each row in the child table has a corresponding row in the parent table.E. Ensure that the tables have an explicit relationship defined by a foreign key constraint in the database.Answer: C12. Your Web site uses custom Themes. Your Web site must support additional Themes based on the user's company name.The company name is set when a user logs on to the Web site. The company's Theme name is stored in a variable named ThemeName. You need to use this variable to dynamically set the Web site's Theme.What should you do?A. Add the following code segment to the markup source of each page on the Web site.<%@ Page Theme="ThemeName" ... %>B. Add the following code segment to the Load event of each page on the Web site.Page.Theme = ThemeNameC. Add the following code segment to the PreInit event of each page on the Web site.Page.Theme = ThemeNameD. Add the following code segment to the Web site's configuration file.<pages theme="ThemeName" />Answer: C13. You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows.The user utilizes a Web Form to delete the first product.You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown. To which value should you set the DataTabless DefaultView.RowStateFilter?A. DataViewRowState.ModifiedOriginal;B. DataViewRowState.ModifiedCurrent;C. DataViewRowState.CurrentRows;D. DataViewRowState.Added;Answer: C14. Your Web site processes book orders. One of the application methods contains the following code segment.You need to remove the discount element from X mlDocument.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A.X mlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild);B.X mlNode root = doc.DocumentElement;root.RemoveChild(root.SelectSingleNode("discount"));C.doc.RemoveChild(doc.FirstChild);D.doc.DocumentElement.RemoveChild(doc.FirstChild);Answer: B AND A15. You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.Each resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings.You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference. What should you do?A. Add the following configuration section to the Web.config file.<globalization culture="Auto" />B. Set the directive for each page in your site as follows:<%@ Page UICulture="Auto" %>C. Add the following code segment to the pages load event.lblName.Text = "{myStrings}Name"lblAddress.Text = "{myStrings}Address"lblEmail.Text = "{myStrings}Email"lblPhone.Text = "{myStrings}Phone"D. Add the following code segment to the pages load event.lblName.Text = lblAddress.Text = Resources.myStrings.AddresslblEmail.Text = Resources.myStrings.EmaillblPhone.Text = Resources.myStrings.PhoneAnswer: D16. You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed.What should you do?A. Add the following code segment after line 05.dc.ExtendedProperties["Total"] = "Price * Quantity";B. Add the following code segment after line 05.dc.Expression = "Price * Quantity";C. Write an event handler for the DataTable's TableNewRow event that updates the row's Total.D. Write an event handler for the DataTable's ColumnChanged event that updates the row's Total.Answer: B17. You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database.When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields.You need to ensure that the Web Form does not update if the user has not entered data in all of the fields.Which code segment should you use?A. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _Handles FormView1.ItemUpdatingDim entry As DictionaryEntryFor Each entry In e.KeysIf entry.Value.ToString() = System.String.Empty Thene.Cancel = TrueReturnEnd IfNext entryEnd SubB. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _Handles FormView1.ItemUpdatedDim entry As DictionaryEntryFor Each entry In e.NewValuesIf entry.Value.Equals("") Thene.KeepInEditMode = TrueReturnEnd IfNext entryEnd SubC. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _Handles FormView1.ItemUpdatingDim entry As DictionaryEntryFor Each entry In e.NewValuesIf entry.Value.Equals("") Thene.Cancel = TrueReturnEnd IfNext entryEnd SubD. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _Handles FormView1.ItemUpdatedDim entry As DictionaryEntryFor Each entry In e.KeysIf entry.Value.ToString() = System.String.Empty Thene.KeepInEditMode = TrueReturnEnd IfNext entryEnd SubAnswer: C18. You create a Web Form that displays a GridView. The GridView's data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.)You need to find the cause of the exception being raised in line 05.What should you do?A. Ensure that the child column and the parent column have the same names.B. Ensure that the child table and the parent table have the same names.C. Ensure that the child column and the parent column have the same data types.D. Ensure that each row in the child table has a corresponding row in the parent table.E. Ensure that the tables have an explicit relationship defined by a foreign key constraint in the database.Answer: C19. You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader()You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing.Which code segment should you use?A. While ar.AsyncWaitHandle Is NothingDoWork()End Whiledr = cmd.EndExecuteReader(ar)B. While Not ar.IsCompletedDoWork()End Whiledr = cmd.EndExecuteReader(ar)C. While Thread.CurrentThread.ThreadState = ThreadState.RunningDoWork()End Whiledr = cmd.EndExecuteReader(ar)D. While Not ar.AsyncWaitHandle.WaitOne()DoWork()End Whiledr = cmd.EndExecuteReader(ar)Answer: B20. You are creating a Web Form. You write the following code segment to create a SqlCommand object.You need to display the number of customers in the Customers table.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. Dim customerCount As Object = cmd.ExecuteScalar()lblCompanyName.Text = customerCount.ToString()B. Dim customerCount As Integer = cmd.ExecuteNonQuery()lblCompanyName.Text = customerCount.ToString()。

微软认证考试模拟题库。70-536模拟题

微软认证考试模拟题库。70-536模拟题

QUESTION 1You work as the application developer at Certkiller .com. Certkiller .com uses Visual 2005 as its application development platform.You are in the process of storing numerical values up to 2,100,000,000 into a variable and may require storing negative values using a .NET Framework 2.0 application. You are required to optimize memory usageWhat should you do?A. Int32B. UInt16C. UInt32D. Int16Answer: AQUESTION 2You work as an application developer at Certkiller .com. You are currently in the process of creating a class that stores data about Certkiller .com's customers. Certkiller .com customers are assigned unique identifiers and various characteristics that may include aliases, shipping instructions, and sales comments. These characteristics can change in both size and data type.You start by defining the Customer class as shown below:public class Customer{private int custID;private ArrayList attributes;public int CustomerID{get {return custID;}}public Customer (int CustomerID){this.custID = CustomerID;this.attributes = new ArrayList ();}public void AddAttribute (object att){attributes.Add (att);}}You have to create the FindAttribute method for locating attributes in Customer objects no matter what the data type is.You need to ensure that the FindAttribute method returns the attribute if found,and you also need to ensure type-safety when returning the attribute.What should you do?A. Use the following code to declare the FindAttribute method:public T FindAttribute (T att){//Find attribute and return the value}B. Use the following code to declare the FindAttribute method:public object FindAttribute (object att){//Find attribute and return the value}C. Use the following code to declare the FindAttribute method:public T FindAttribute <T> (T att){//Find attribute and return the value}D. Use the following code to declare the FindAttribute method:public string FindAttribute (string att){//Find attribute and return the value}Answer: CQUESTION 3You work as an application developer at Certkiller .com. You are creating a custom exception class named ProductDoesNotExistException so that custom exception messages are displayed in a new application when the product specified by users is unavailable.This custom exception class will take the ProductID as an argument to its constructor and expose this value through the ProductID. You are now in the process of creating a method named UpdateProduct. This method will be used to generate and manage the ProductDoesNotExistException exception if the ProductID variable contains the value 0.You need to ensure that use the appropriate code for the UpdateProduct method.What should you do?A. Make use of the following code:public void UpdateProduct (){try{if (ProductID == 0)throw new ProductDoesNotExistException (ProductID);}catch (ProductDoesNotExistException ex){MessageBox.Show ("There is no Product" + ex. ProductID);}}B. Make use of the following code:public void UpdateProduct (){try{if (ProductID = = 0)throw new Exception ("Invalid ProductID");}catch (ProductDoesNotExistException ex){MessageBox.Show (ex.Message);}}C. Make use of the following code:public void UpdateProduct (){if (ProductID = = 0)throw new ProductDoesNotExistException (ProductID);}D. Make use of the following code:public void UpdateProduct (){if (ProductID = = 0)throw new Exception ("Invalid ProductID");}Answer: AQUESTION 4You work as the application developer at Certkiller .com. Certkiller .com uses Visual 2005 as its application development platform.You have recently finished development of a class named TestReward and package the class in a .NET 2.0 assembly named TestObj.dll. After you ship the assembly and it is used by client applications, you decide to move the TestReward class from TestObj.dll assembly to the TestRewardObj.dll Assembly. You are to ensure when you ship the updated TestObj.dll and TestRewardObj.dll assemblies that the client applications continue to work and do not require recompiling.What should you do?A. The TypeForwardedTo attribute should be usedB. The TypeConvertor.ConvertTo method should be usedC. The InternalsVisibleTo attribute should be usedD. The Type Convertor.ConvertFrom method should be usedAnswer: AQUESTION 5You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below.* Name* AisleNumber* OnDiscountYou are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?A. public class ShoppingList : ICollection{// Class implementation}B. public class ShoppingList : IEnumerator, IEnumerable{// Class implementation}C. public class ShoppingList : Ilist{// Class implementation}D. public class ShoppingList : Enum{// Class implementation}Answer: BQUESTION 6You work as the application developer at Certkiller .com. Certkiller .com uses Visual 2005 as its application development platform.You are developing a .NET Framework 2.0 application used to store a type-safe list of names and e-mail addresses. The list will be populated all at ones from the sorted data which means you well not always need to perform insertion or deletion operations on the data. You are required to choose a data structure that optimizes memory use and has good performance.What should you do?A. The System.Collections.Generic.SortedList class should be usedB. The System.Collections.HashTable class should be usedC. The System.Collections.Generic.SortedDictionary class should be usedD. The System.Collections.SortedList class should be usedAnswer: AQUESTION 7You work as an application developer at Certkiller .com. You are currently in theprocess of reviewing an application that was created by a fellow developer.The application that you are reviewing includes a declaration for a collection named EmployeeList, which stores Employee objects. The declaration is shown below: public class EmployeeList : Enumerator, IEnumerable{// Class implementation}You require the ability to iterate through the EmployeeList with minimum development effort.What should you do?A. Utilize the switch statementB. Utilize the dowhile statementC. Utilize the foreach statementD. Utilize the if statementAnswer: CQUESTION 8You work as an application developer at Certkiller .com. Certkiller .com has been contracted to develop an application for the local bank.You have been given the responsibility of creating this application and need to store each transaction record, which is identified using a complex transaction identifier,in memory. The bank informs you that the total amount of transaction records could reach 200 per day.To achieve this, you decide to utilize one of the existing collection classes in the .NET 2.0 class library. You need to ensure that you the collection class you select is the most efficient one for storing transaction records.What should you do?A. Select the ListDictionary collection class.B. Select the HashTable collection class.C. Select the Queue collection class.D. Select the StringCollection collection class.Answer: BQUESTION 9You work as an application developer at Certkiller .com. Certkiller .com has been hired by a small local private school to develop a class library that will be used in an application named ManageAttendance for the purpose of managing student records.You are responsible for developing this class library. Certkiller .com has instructed you to create a collection in the application to store learners' results.The school has informed you that they currently only have seven learners, but that this value will triple in the following year. Due to the limited resources, you need to ensure that the collection you create consumes a minimum amount of resources. What should you use to create the collection?A. The HybridDictionary collection class.B. The HashTable collection class.C. The ListDictionary collection class.D. The StringCollection collection class.Answer: AQUESTION 10You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves client information by means of a unique account number.You create a custom collection class, which implements the IDictionary interface,named ClientDictionary. The following code have been included into the new application.//Create Client objectsClient c1 = new Client ("AReid", "Andy Reid", Status.Current);Client c2 = new Client ("DAustin", "Dean Austin", Status.New);//Create ClientDictionary objectIDictionary cData = new ClientDictionary ();cData.Add ("10001", c1);cData.Add ("10002", c2);You use the same method to add other Client objects to the collection. You need to ensure that you are able to retrieve client information associated with the account number 10111.What should you do?A. Use the following code:Client foundClient;foundClient = (Client) cData.Find ("10111");B. Use the following code:Client foundClient;if (cData.Contains ("10111"))foundClient = cData ["10111"];C. Use the following code:Client foundClient;if (cData.Contains ("10111"))foundClient = (Client) cData ["10111"];D. Use the following code:Client foundClient;foreach (string key in cData.Keys{if (key == "10111")foundClient = (Client) cData.Values ["10111"];}Answer: CQUESTION 11You work as an application developer at Certkiller .com. Certkiller .com has instructed you to create a class named MetricFormula. This class will be used to compare MetricUnit and EnglishUnit objects.The MetricFormula is currently defined as follows (Line numbers are used for reference purposes only):1. public class MetricFormula2. {3.4. }You need to ensure that the MetricFormula class can be used to compare the required objects. What should you do? (Choose two)A. Add the following code on line 1:: IComparable{B. Add the following code on line 1:: IComparer{C. Add the following code on line 3:public int Compare (object x, object y){// implementation code}D. Add the following code on line 3:public int CompareTo (object obj){// implementation code}Answer: B, CQUESTION 12You work as an application developer at Certkiller .com. You are developing an application that makes use of a Queue class object named MyQueue. This Queue class object will be used to store messages sent by the user during application run time. The application that you are developing provides an interface for administrators and an interface for users to create message reports.You want to ensure that all user messages stored in the MyQueue object are removed when an administrator selects the reset option.What should you do?A. Use the Enqueue method of the MyQueue object.B. Use the Clear method of the MyQueue object.C. Use the Dequeue method of the MyQueue object.D. Use the TrimToSize method of the MyQueue object.Answer: BQUESTION 13You work as an application developer at Certkiller .com. You are developing an application that will store user messages collectively and the process the messages in sequence. The order in which the messages are processed will depend on the orderin which it is received. To add messages to the collection, users will specify the message that should be stored in a TextBox control named txtMsg and then click a Button control named btnAdd. You need to ensure that the appropriate code is used tocreate the collection. What should you use? (Choose two)A. Queue msgCollection = new Queue ();B. Stack msgCollection = new Stack ();C. msgCollection.Enqueue (txtMSG.Text);D. msgCollection.Push (txtMSG.Text);Answer: A, CQUESTION 14You work as an application developer at Certkiller .com. You are developing an application that makes use of a Queue class object named MyQueue. This Queue class object will be used to store messages sent by the user during application run time.You would like to access the message at the beginning of the queue, prior to processing the user messages, without removing it. What should you do?A. Use the Enqueue method of the MyQueue object.B. Use the Contains method of the MyQueue object.C. Use the Dequeue method of the MyQueue object.D. Use the Peek method of the MyQueue object.Answer: DQUESTION 15You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves employee information by means of a unique staff number.You create a custom collection class, which implements the type-safe IDictionary interface. This collection class is named EmployeeCollection, and is defined using the following code.public class EmployeeCollection : IDictionary <int, Employee>{// Implementation code}You need to ensure that an EmployeeCollection object is instantiated and that Employee objects are added to it.What should you do?A. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add (new KeyValuePair <string, Employee> (e1.ID, e1));eData.Add (new KeyValuePair <string, Employee> (e2.ID, e2));B. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add ((string) e1.ID, e1);eData.Add ((string) e2.ID, e2);C. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add (e1.ID, e1);eData.Add (e2.ID, e2);D. Use the following code:Employee e1, e2;e1 = new Employee (1001, "Andy Reid", "Manager");e2 = new Employee (1002, "Kara Lang", "Sales Engineer"); EmployeeCollection eData = new EmployeeCollection();eData.Add (new KeyValuePair (e1.ID, e1));eData.Add (new KeyValuePair (e2.ID, e2));Answer: CQUESTION 16You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that stores and retrieves staff information by means of a unique staff number.You have already written the following code for the purpose of storing Employee objects.Employee e1 = new Employee (1001, "Andy Reid", "Manager");Employee e2 = new Employee (1002, "Kara Lang", "Sales Engineer");Dictionary <int, Employee> eData = new Dictionary <int, Employee> ();eData.Add (e1.ID, e1);eData.Add (e2.ID, e2);All other Employee objects have been added in the same way. You are required to display all key/value pairs within the Dictionary collection.What should you do?A. Use the following code:foreach (KeyValuePair<int, Employee> keyPair in eData)Console.WriteLine ("{0} key : {1} value", keyPair.Key, keyPair.Value);B. Use the following code:foreach (string key in eData.Keys)Console.WriteLine ("{0} key : {1} value", Key, (Employee) eData [key]);C. Use the following code:foreach (KeyValuePair keyPair in eData)Console.WriteLine ("{0} key : {1} value", keyPair.Key, keyPair.Value);D. Use the following code:foreach (object value in eData.Values)Console.WriteLine ("{0} key : {1} value", eData [value], value);Answer: AQUESTION 17You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com's parking lot. The application has to store and retrieve vehicle information using a vehicle identification number (VIN).You need to use the correct code to ensure type-safety. What should you do?A. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005);ArrayList vList = new ArrayList ();vList.Add (v1);vList.Add (v2);B. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005); SortedList <string, Vehicle> vList = new SortedList <string, Vehicle> ();vList.Add (v1.VIN, v1);vList.Add (v2.VIN, v2);C. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005);List vList = new List ();vList.Add (v1);vList.Add (v2);D. Use the following code:Vehicle v1, v2;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1F2569122491234574", "Mitsubishi Lancer", 2005); SortedList vList = new SortedList ();vList.Add (v1.VIN, v1);vList.Add (v2.VIN, v2);Answer: BQUESTION 18You work as an application developer at Certkiller .com. Certkiller .com wants you to develop an application that handles passes for Certkiller .com's parking lot. The application has to store and retrieve vehicle information in a contiguous list that allows for advanced navigation techniques.You have already written and executed the following code:Vehicle v1, v2, v3, v4, v5;v1 = new Vehicle ("1M2567871Y91234574", "Nissan Silvia", 1996);v2 = new Vehicle ("1H2569122493456960", "Honda Civic", 1999);v3 = new Vehicle ("1F2569106891234589", "Mitsubishi Lancer", 2001);v4 = new Vehicle ("1F7969122491234589", "Mazda MX7", 1998);v5 = new Vehicle ("1T2569122493456123", "Toyota Supra", 2000);LinkedList <Vehicle> vList = new LinkedList < Vehicle > ();LinkedListNode < Vehicle > vNode;vNode = vList.AddFirst (v1);vNode = vList.AddLast (v2);vNode = = vList.AddAfter (vNode, v3);vNode = = vList.AddAfter (vNode, v4);vList.AddLast (v5);foreach (Vehicle v in vList){Console.WriteLine ("{0} {1} ({2})", v.MakeModel, v.Year, v.Vin);}What output will be produced in the console?A. Nissan Silvia 1996 (1M2567871Y91234574)Honda Civic 1999 (1H2569122493456960)Mitsubishi Lancer 2001 (1F2569106891234589)Mazda MX7 1998 (1F7969122491234589)Toyota Supra 2000 (1T2569122493456123)B. Nissan Silvia 1996 (1M2567871Y91234574)Mazda MX7 1998 (1F7969122491234589)Mitsubishi Lancer 2001 (1F2569106891234589)Honda Civic 1999 (1H2569122493456960)Toyota Supra 2000 (1T2569122493456123)C. Nissan Silvia 1996 (1M2567871Y91234574)Mazda MX7 1998 (1F7969122491234589)Mitsubishi Lancer 2001 (1F2569106891234589)Toyota Corolla 2002 (1T2569122493456123)Honda Civic 1999 (1H2569122493456960)D. Nissan Silvia 1996 (1M2567871Y91234574)Mitsubishi Lancer 2001 (1F2569106891234589)Mazda MX7 1998 (1F7969122491234589)Honda Civic 1999 (1H2569122493456960)Toyota Supra 2000 (1T2569122493456123)Answer: BQUESTION 19You work as an application developer at Certkiller .com. You are developing a collection class named ClientCollection, which is to be used for storing the names ofCertkiller .com's clients that are situated in various geographical areas.These client names are represented by the Client class. You are planning to create a method named SortClients in the ClientCollection class to arrange Client objects in ascending order. You need to ensure that the appropriate interface is implemented by the Client class to allow sorting.What interface should be used?A. IDictionaryB. IComparableC. IComparerD. IEqualityComparerAnswer: BQUESTION 20You work as an application developer at Certkiller .com. You have been given the responsibility of creating a class named CalcSalary that will determine the salariesof Certkiller .com's staff.The CalcSalary class includes methods to increment and decrement staff salaries.You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application when needed. After viewing the information displayed in the exhibit, you decide to use the Salary delegate to invoke these methods.using System;public delegate boolSalary (Employee Emp, double Amount);public class CalcSalary{// for promotionspublic static bool IncrementSalary (Employee Emp, double Amount){// implementation details}// for demotionspublic static bool DecrementSalary (Employee Emp, double Amount){// implementation details}What code should you use?A. public void Review (Employee emp, double amount){Salary salaryDel;if (emp.Status = = QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel.Invoke (CalcSalary.IncrementSalary (emp, amount));elsesalaryDel.Invoke (CalcSalary.DecrementSalary (emp, amount));}B. public void Review (Employee emp, double amount)Salary salaryDel;if (emp.Status == QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel.Method = CalcSalary.IncrementSalary;elsesalaryDel.Method = CalcSalary.DecrementSalary;salaryDel.Invoke (emp, amount);}C. public void Review (Employee emp, double amount){Salary salaryDel;if (emp.Status == QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel.IncrementSalary (emp, amount);elsesalaryDel.DecrementSalary (emp, amount);}D. public void Review (Employee emp, double amount){Salary salaryDel;if (emp.Status = = QuarterlyReview.OnTarget | | emp.Status = = QuarterlyReview.AboveGoals)salaryDel = CalcSalary.IncrementSalary;elsesalaryDel = CalcSalary.DecrementSalary;salaryDel.Invoke (emp, amount);}Answer: DQUESTION 21You work as an application developer at Certkiller .com. You have been given the responsibility of creating a class named CalcSalary that will determine the salaries of Certkiller .com's staff. The CalcSalary class includes methods to increment and decrement staff salaries. The following code is included in the CalcSalary class: public class CalcSalary{// for promotionspublic static bool IncrementSalary (Employee Emp, double Amount){if (Emp.Status == QuarterlyReview.AboveGoals)Emp.Salary += Amount;return true;}return false;}//for demotionspublic static bool DecrementSalary (Employee Emp, double Amount){if (Emp.Status == QuarterlyReview.AboveGoals)Emp.Salary -= Amount;return true;}elsereturn false;}}You would like to invoke the IncrementSalary and DecrementSalary methods dynamically at runtime from the sales manager application, and decide to create a delegate named SalaryDelegate to invoke them.You need to ensure that you use the appropriate code to declare the SalaryDelegate delegate.What is the correct line of code?A. public delegate bool Salary (Employee Emp, double Amount);B. public bool Salary (Employee Emp, double Amount);C. public event bool Salary (Employee Emp, double Amount);D. public delegate void Salary (Employee Emp, double Amount);Answer: AQUESTION 22You work as an application developer at Certkiller .com. You have recently created a Windows service application and need to define a Windows service class. What should you do?A. Use the following code:public class TestService : System.ServiceProcess.WindowsService{//Implementation details}B. Use the following code:public class TestService : System.ServiceProcess.IWindowsService{//Implementation details}C. Use the following code:public class TestService : System.ServiceProcess.ServiceBase{//Implementation details}D. Use the following code:public class TestService : System.ServiceProcess.IService{//Implementation details}Answer: CQUESTION 23You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer.This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application:public class EnumerateService : ServiceBase{public static EnumerateService (){this.ServiceName = "Enumerate Service";this.CanStop = true;}protected override void OnStart (string[] args){// Enumerate all services and initialize the FileSystemWatcher}protected override void OnStop (){// Stop the FileSystemWatcher and perform cleanup}public static void Main (){EnumerateService service = new EnumerateService();}}You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?A. Override the OnBoot method instead of the OnStart method.B. Replace the Main method code with the following code:EnumerateService service = new EnumerateService ();Service.Run ();C. Override the OnLoad method instead of the OnStart method.D. Replace the Main method code with the following code:EnumerateService service = new EnumerateService ();Run (service);Answer: DQUESTION 24You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application allows administrators to control Windows services dynamically without using the Services MMC.You start by creating a class named LocalServiceController. You need to add the correct code to the LocalServiceController class to ensure that administrators are able to start local Windows services.What code should you use?A. public static bool StartService (string serviceName){try {ServiceBase.Run (serviceName);return true;}catch{return false;}}B. public static bool StartService (string serviceName){ServiceController controller = new ServiceController (serviceName);if (controller.Status != ServiceControllerStatus.Running){controller.Start ();return true;}elsereturn false;}C. public static bool StartService (string serviceName){ServiceManager manager = new ServiceManager (serviceName);if (manager.Status != ServiceManagerStatus.Running){manager.Start ();return true;}elsereturn false;}。

云计算微软认证题库

云计算微软认证题库

1.SaaS 类型的云计算服务以下哪些不是其主要特点?A 用户主要通过标准的 Web 浏览器来使用互联网上的软件服务。

B 多主租用 。

C 不能放置于公司内部环境中。

D 用户不必购买软件,只需按需租用软件或通过广告模式免费使用。

C第一章2.下列哪些属于云计算的特点?(多选)A. 按需服务B. 高扩展性C. 便捷的网络访问D. 资源池E. 服务可度量ABCDE第一章3.目前公有云面临的最大的问题是什么?A. 隐私问题B. 安全问题C. 价格问题D. 政治因素AB第一章4.()提供云用户请求服务的交互界面,也是用户使用云的入口,用户通过Web浏览器可以注册、登录及定制服务、配置和管理用户。

打开应用实例与本地操作桌面系统一样。

A. 云服务端B. 服务目录C. 管理系统和部署工具D. 监控端A第一章5.()是指用户可通过 Internet获取IT基础设施硬件资源。

A. SaaSB. PaaSC. IaaSD. HaaSC第二章6.()有校验数据,提供数据容错能力。

A. RAID5B. RAID2C. RAID1D. RAID0A第二章7.通过虚拟化分离的构件有哪些?A. 服务器虚拟化B. 网络虚拟化C. 存储虚拟化D. 桌面虚拟化E. 应用虚拟化ABCDE第二章8.下面哪些是 Hyper-V 服务器虚拟化的经典应用场景()A 服务器整合。

B 业务连续性和灾难修复。

C 测试与开发。

D 动态数据中心。

ABCD第二章9.下列说法正确的是A Hyper-V 通过一种称为分区的方式实现隔离。

B 分区本身可以直接访问物理处理器。

C 驱动程序都存在于各个分区的底层。

D 分区之间是不同通信的。

A第二章10.下列哪些不属于 Hyper-V 的技术特性A广泛的 OS 支持。

B 对称式多处理器(Symmetric Multiprocessors ,SMP)支持。

C 新的硬件分享架构。

D 快速迁移。

E自动修复。

E11. 关于网络虚拟化下列说法正确的是()A可实现灵活的工作负荷放置–无需 VLAN 的网络隔离以及 IP 地址的重新使用。

微软认证对应考试

微软认证对应考试

从NT 4.0 升級到MCSE2003 (3)MCSD(5门考试) (3)MCSE2003(7门考试) (5)MCSE2003:信息方向( 8 门考试) (7)MCSE2003:安全方向(8门考试) (8)MCDBA on Microsoft SQL Server 2000 认证(4门) (9)SQL2005认证 (10)MCITP:数据库开发人员(3门) (10)MCITP:数据库系統管理员(4门) (10)MCITP:商业智慧开发人员(3门目前末发布) (10)MCTS认证 (12)MCTS:.NET Framework 2.0 Web Applications(2门) (12)MCTS:.NET Framework 2.0 Windows Applications(2门) (12)MCTS:.NET Framework 2.0 Distributed Applications(2门) (12)MCTS:SQL Server 2005 (1门) (12)MCTS:BizTalk Server 2006(1门) (13)Microsoft Windows Vista, Configuring70-620 TS:Configuring Windows Vista Client70-624 TS:Deploying & Maintaining Vista & Client Office System 07 DT70-622 Pro:Microsoft Desktop Support - Enterprise.时间说明:所有考试时间都按分钟计算,但没有计入非英语国家的加时,加时一般会在30-40分钟之间.考试总时长包括考生签署协议及提交考试后浏览题目的时长.补考说明:微软规定考生对同一科目进行考试,如果通过则不可再考,如果没有通过,第一次考试与第二次补考之间没有时间限定,但第三次补考要与第二次间隔14天以上.从NT 4.0 升級到MCSE2003 必考科目 (需要 6 项考试)MCSD(5门考试)MCSE2003(7门考试) 必考科目 (需要 6 项考试)选考科目 (需要 1 项考试)MCSE2003:信息方向( 8 门考试)MCSE2003:安全方向(8门考试)安全方向专门科目(需要3项考试)MCDBA on Microsoft SQL Server 2000 认证(4门)SQL2005认证该认证分为三个方向,分别如下: MCITP:数据库开发人员(3门)MCTS认证MCTS:.NET Framework 2.0 Distributed Applications(2门)。

微软的考题

微软的考题

微软的考题微软的考题微软,是世界著名的IT巨头之一,创始人盖茨是全球首富之一。

所以,成为微软员工是无数IT从业者的梦想和追求。

然而,想要进入微软,必须经过诸如面试等一系列严格的考核程序。

那么,微软的考题都有哪些呢?以下是微软的考题:1. 写一个计算1到100的累加器2. 一个字符串,里面有多个单词,需要将每个单词的首字母都变为大写3. 一个不规则的二维数组,需要实现数组的转置功能4. 一个二叉树,需要实现节点的插入、删除、查找等基本操作5. 实现一个股票价格预测算法,需要考虑历史股票价格、市场情况、公司业绩等多个因素6. 设计一个聊天工具,需要实现个人账户管理、好友功能、消息发送与接收、消息记录等7. 写一个支持多线程的FTP客户端8. 设计一个多人在线游戏,需要实现游戏登录与验证、游戏进程控制、游戏玩家间的交互等以上题目,都是微软面试中经常出现的考题。

这些考题并不简单,需要有扎实的编程基础、丰富的开发经验、深厚的计算机科学知识,以及对工程实践经验的掌握。

此外,微软的考试还注重应试者的软实力,通常会出现一些简单的谈话环节,用来考察应试者的沟通能力、表达能力、团队协作能力等等。

综合来说,微软的考试可谓是实战性很强的程序员综合素质考试,需要全方位的才能和考察人员的综合素质。

如果你想要成为微软员工,这些考题就是你必须要面对的。

微软的考题(续)继续上文的话题,今天我们继续来谈论微软的考题。

正如前面所说,微软的考题通常很实战性,在开发中常常会遇到这些问题,需要面试者用自己的能力去解决。

下面是我们仍旧会遭遇到的一些微软面试考题:9. 设计一个电子商务平台,需要实现商品管理、交易、支付、客户服务、评论与反馈等功能这个题目其实非常实用,像天猫、淘宝这些电商平台,实际上就是由这些基本功能组成。

在这个平台上,用户可以在线购买商品,在平台上支付,同时还能查看自己的订单等信息。

如果你能实现一个稳定、安全、易用的电商平台,那无疑是一项非常大的成就。

微软认证模拟试题

微软认证模拟试题

微软认证模拟试题微软认证模拟试题微软认证从1992年设立至今,在业界的影响力也越来越大,全球共计有8万位MCSE2003和3万多位MCSD产生,是具备相当含金量和实用价值的高端证书。

以下是关于微软认证模拟试题,希望大家认真练习!1. 两ISDN adapter, 每个adapter有两B-channel,用dial-up networking连RAS server, RAS server也有两ISDN adaptic, 每个B-channel有自己的`phone number.如何config multilink来使用所有4 个channel.A. create a PhoneBook Entry for each ISDN B-channel connect to RAS server by using all four entries.B. create one phonebook that has the four phone number. connect to the RAS server by using this entries.C. create one PhoneBook Entry for each ISDN adaptic connect to RAS server by using both entries.D. create one PhoneBook Entry that is configed to use multiple lines, Assign a phone number for each line.connect to RAS server by using this entry.答案:D2. 用dialup networking 连NT WS 到PPP server, ISP 要求备份logon to a server 并select a menu option that actives PPP support on the server. 如何配置NT WS , 自动active the ISP 的PPP support?A. create a script, config DUN to run script after dialing.B. config DUN to open a terminal Windows after dialing.C. config DUN to open a terminal Windows before dialing.D. NT WS 4.0 不支持.答案:B3. NT WS map a network drive 到NT server (sales)的report 文件夹, sales通过internet 互联, A. eportsB. \eports.C. /reportsD. /reports答案:B4. NT WS 3.51升级到4.0 在单HPFS下.A. convert to NTFS, 升级B. convert to FAT.C. 升级再convert to NTFSD. 升级不动HPFS.答案:A5. Multilink enabled for 3 modems in NT WS, RAS server用call back,有何影响.A. RAS的server can call back all 3 modems.B. NT WS 自动联3个modem after call back.C. use a separate phonebook entry for each modem.D. 不能用multilink.答案:D6. 安NT WS 无卡, 但需配置协议.A. select MS loopback adpatic, binding 协议到卡.C. select generic NE 2000, ignore any error.答案:C7. 装了不对的卡 driver, 出现blank blue screen without text.A. Restore registry using ER disk.B. using last known good.答案:B8.When you upgrade NT 3.51 to NT 4.0, what should you do?A) Install from NT 4.0 CD-ROM and install NT 4.0 on the same directory of NT 3.51B) Run winnt32.exe under NT 3.51, and install NT 4.0 on the same directory of NT 3.51C) Run winnt32.exe under NT 3.51, and install NT 4.0 on the different directory of NT 3.51D) Install from NT 4.0 CD-ROM and install NT 4.0 the different directory of NT 3.51Answer: A, B9.What is the minimum amount of hard disk space required to install Windows NT Server on an x86-based computer?A) 125MBB) 110MBC) 130MBD) 135MBAnswer: A10.You want to upgrade your Windows NT 3.51 Server to 4.0, preserving the existing configuration settings. What are two ways to perform this upgrade? (Choose two)A) Boot from NT 4.0 setup boot disks. Install the Windows NT 4.0 files in a different directory from the one that contains your NT 3.51 files.B) Boot from the NT 4.0 setup boot disks. Install the windows NT 4.0 files in the directory that contains your NT 3.51 files.C) Start Windows NT 3.51 server. Run Winnt.exe from the command prompt. Install the NT 4.0 files in the directory that contains your NT 3.51 files.D) Start Windows NT 3.51 Server. Run winnt32.exe from the command prompt. Install the Windows NT 4.0 files in the directory that contains your NT 3.51 files.Answer: B, D-11.You want to migrate the files and user accounts froma NetWare server to a Windows NT Server computer. What do you need to install on the Windows NT Server before you can perform the migration?A) RIP for NWLINKB) Gateway Service for NetwareC) SAP agentD) FTPAnswer: B12.Which of the following file system support DOS and Win16 applications, as well as has the read/write operation?A) FATB) NTFSC) HPFSD) CDFSAnswer: A, B13.The operating system files on a Windows NT computer are stored on the:A) SYS: volumeB) Boot partitionC) System partitionD) C: drive always.Answer: B【微软认证模拟试题】。

2022微软认证试卷试题

2022微软认证试卷试题

2022微软认证试卷试题2022微软认证试卷试题一、判断题(共50题,共100分)1.对于企业来说,给用户进行各种促销或者实施运营策略的时机也比较重要,而且对不同兴趣偏好的用户最好集中处理。

2.啤酒与尿布的经典案例,充分体现了实验思维在大数据分析理念中的重要性。

3.简单随机抽样,是从总体N个对象中任意抽取n个对象作为样本,最终以这些样本作为调查对象。

在抽取样本时,总体中每个对象被抽中为调查样本的概率可能会有差异。

4.信息生命周期管理是据生命周期管理的来源,最早由英国企业提出。

5.决策树是一种基于树形结构的预测模型,每一个树形分叉代表一个分类条件,叶子节点代表最终的分类结果,其优点在于易于实现,决策时间短,并且适合处理非数值型数据。

6.在噪声数据中,波动数据比离群点数据偏离整体水平更大。

7.对于大数据而言,最基本、最重要的要求就是减少错误、保证质量。

因此,大数据收集的信息量要尽量精确。

8.一般而言,分布式数据库是指物理上分散在不同地点,但在逻辑上是统一的数据库。

因此分布式数据库具有物理上的独立性、逻辑上的一体性、性能上的可扩展性等特点。

9.具备很强的报告撰写能力,可以把分析结果通过文字、图表、可视化等多种方式清晰地展现出来,能够清楚地论述分析结果及可能产生的影响,从而说服决策者信服并采纳其建议,是数据分析能力对大数据人才的基本要求。

10.谷歌流感趋势充分体现了数据重组和扩展对数据价值的重要意义。

11.奥巴马认为,对大数据的占有与控制,反映的是一个国家的核心能力之大小。

因此,他已经将大数据上升到国家战略高度。

12.移动互联网实现了人人相连、人物相联、物物相连。

13.林雅华博士指出,目前中国的是一个复杂社会,是一个转型社会。

14.《促进大数据发展行动纲要》指出,要加快政府数据开放共享,推动资源整合,提升治理能力。

15.中远物流有100多个配送中心,装GPS的上万辆车每月产生2亿条信息,据此优化运输路线,减排10%。

微软认证工程师认证考试试题

微软认证工程师认证考试试题

微软认证工程师认证考试试题2017年微软认证工程师认证考试试题一位业内人士说,微软认证在国外IT认证中知名度是最高的,参加考试和通过认证的人数也是最多的.,因为在计算机操作系统中微软所占的市场份额是最大的,所以,通过微软认证相对而言更具有普遍意义。

以下是店铺整理的关于微软认证工程师认证考试试题,欢迎大家参考!1. how do you print to a tcp/ip printer?a. host name and printer nameb. hostname and ip addressc. printer name and ip addressd. printer name and host nameans. c2. how do you trap packets of tcp/ip?a. network monitorb. snmpc. tcp/ipd. streams monitoringans: b2+. what protocol/service do you need to send tcp/ip trap messages to another computer?a snmpb simple tcp/ip servicesc nwlinkd network monitor agente dhcpanswer: a (may refer to 15 and 33 and 50)3. nt workstation is member of workgroup. you want to mapnetwork driver on your computer to a nt server in the corp domain. the guest accounts disable in the corp domain. ( 2 selection )a. logon to your ntws by using a user name from the corp domain.b. logon to ntws by the same user name you use to access to the nt server.c. select corp domain from logon dialog box.d. select connect as is the map network drive dialog box.ans: a,d3+. your computer is member of a workgroup. you want to map a network drive to a share on a server pdc in the xyz domain. the server has had the guest account disabled. choose two options.a log on to your workstation using your domain user accountb log on to your workstation using the account of a domain memberc in the log on box choose the domain named in the map network drive box in explorer choose 'log on using account' optione in the map network drive box in explorer choose 'connect as' optionanswer: a, e4. client service for netware :a. allow netware client to use share directory and printer on nt workstation.b. connect volumes or directory on netware.c. connect printer queues on netware.d. connect netware 4.1 volume on server that do not run bindery emulation.e. run netware 3.1 syscon utility from ntws.f. function as gateway to ntws for them ntws that do not have csnw installed.ans : b,c, e ,d pls refer 16.5. nt workstation needs access nt server and netware server on network. what must you install on nt workstation ( select 2 )a. dlcb. tcp/ipc. netbueid. sap agent.e. csnw.f. nwlink ipx/spx compatable tranport.g. pptp.ans : e,f6. how do you start the backup program in a minimized window with low priority?a. start /min /low ntbackup.b. cmd /min /low ntbackup.c. net start /min /low ntbackupd. bat /min /low ntbackupans. a**7. several ms-dos share tsr program be loaded :a start it in its own ntvdmb start it in the default ntvdmc start it using config.ntd start it using autoexec.ntans: d8. you are planning to install nt workstation and 5 applications on 200 intel pc's. all pcs already have the same hardware and the same applications installed. you will install overthe network with an nt server as the source of installation. which3 files do you need:a. unattend.txt (answer file)b. setup.infc. sysdiff.exed. a udf filee. poleditans: a, c, d9. when you try to establish a ras connection with your department's server, the connectin is dropped after having been connected for a number of seconds. what is the best way to start investigating this problem?a. activate the device.log file, establish a connection and then view the contents of device. log.b. examine the connection error in the application log using event viewerc. examine the connection error in the system log using event viewerd. view the connection status using dial-up networking monitor.ans: d (a)10. you want to enable auditing for the hp printer attached to your windows nt workstation computer. which type of auditing events should you enable in user manager on your workstation?a. file and object accessb. use and user rightsc. user and group managementd. process trackingans: a来源:考试大-微软认证【2017年微软认证工程师认证考试试题】。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Microsoft 70-528 Framework 2.0-Web-based Client DevelopmentQ&A V3.79English: BIG5: GB: TestInside,help you pass any IT exam!1. Your Web site uses custom Themes. Your Web site must support additional Themes based on the user's company name.The company name is set when a user logs on to the Web site. The company's Theme name is stored in a variable named ThemeName.You need to use this variable to dynamically set the Web site's Theme.What should you do?A. Add the following code segment to the markup source of each page on the Web site.<%@ Page Theme="ThemeName" ... %>B. Add the following code segment to the Load event of each page on the Web site.Page.Theme = ThemeName;C. Add the following code segment to the PreInit event of each page on the Web site.Page.Theme = ThemeName;D. Add the following code segment to the Web site's configuration file.<pages theme="ThemeName" />Answer: C2. Your Web site uses custom Themes. Your Web site must support additional Themes based on the user's company name.The company name is set when a user logs on to the Web site. The company's Theme name is stored in a variable named ThemeName.You need to use this variable to dynamically set the Web site's Theme.What should you do?A. Add the following code segment to the markup source of each page on the Web site.<%@ Page Theme="ThemeName" ... %>B. Add the following code segment to the Load event of each page on the Web site.Page.Theme = ThemeNameC. Add the following code segment to the PreInit event of each page on the Web site.Page.Theme = ThemeNameD. Add the following code segment to the Web site's configuration file.<pages theme="ThemeName" />3. You write a Web application. This application must support multiple languages. You store the localized strings in the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.Each resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings.You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference.What should you do?A. Add the following configuration section to the Web.config file.<globalization culture="Auto" />B. Set the directive for each page in your site as follows:<%@ Page UICulture="Auto" %>C. Add the following code segment to the pages load event.lblName.Text = @"{myStrings}Name";lblAddress.Text = @"{myStrings}Address";lblEmail.Text = @"{myStrings}Email";lblPhone.Text = @"{myStrings}Phone";D. Add the following code segment to the pages load event.lblName.Text = ;lblAddress.Text = Resources.myStrings.Address;lblEmail.Text = Resources.myStrings.Email;lblPhone.Text = Resources.myStrings.Phone;Answer: Din the application as resources. You want these resources to be accessed according to a users language preference. You create the following resource files in the App_GlobalResources folder of your application.Each resource file stores a localized version of the following strings: Name, E-mail, Address, and Phone. You create a Web Form that contains one label for each of these strings.You need to ensure that the correct localized version of each string is displayed in each label, according to a users language preference.What should you do?A. Add the following configuration section to the Web.config file.<globalization culture="Auto" />B. Set the directive for each page in your site as follows:<%@ Page UICulture="Auto" %>C. Add the following code segment to the pages load event.lblName.Text = "{myStrings}Name"lblAddress.Text = "{myStrings}Address"lblEmail.Text = "{myStrings}Email"lblPhone.Text = "{myStrings}Phone"D. Add the following code segment to the pages load event.lblName.Text = lblAddress.Text = Resources.myStrings.AddresslblEmail.Text = Resources.myStrings.EmaillblPhone.Text = Resources.myStrings.PhoneAnswer: D5. You create a Web Form. The Web Form allows users to calculate values and display the results in a label namedlblResults.You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form.Which code segment should you use?A. protected void Page_Error(object sender, EventArgs e) {lblResults.Text = e.ToString();e=null;}B. protected void Page_Error(object sender, EventArgs e) {lblResults.Text = Server.GetLastError().ToString();Server.ClearError();}C. protected void Page_Error(object sender, EventArgs e) {Response.Write(e.ToString());e=null;}D. protected void Page_Error(object sender, EventArgs e) {Response.Write(Server.GetLastError().ToString());Server.ClearError();}Answer: D6. You create a Web Form. The Web Form allows users to calculate values and display the results in a label named lblResults.You need to capture all unhandled exceptions on the Web Form through the Error event. The Error event must capture each unhandled exception and display it on the Web Form.Which code segment should you use?A. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.ErrorlblResults.Text = e.ToString()End SubB. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.Error?lblResults.Text = Server.GetLastError().ToString()Server.ClearError()End SubC. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.Error?Response.Write(e.ToString())e = NothingEnd SubD. Protected Sub Page_Error(ByVal sender As Object, _ByVal e As System.EventArgs) Handles Me.ErrorResponse.Write(Server.GetLastError().ToString())Server.ClearError()End SubAnswer: D7. You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database.When the user clicks the Update button on the FormView control, the application must validate that the user has entered data in all of the fields.You need to ensure that the Web Form does not update if the user has not entered data in all of the fields.Which code segment should you use?A. protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e) {foreach (DictionaryEntry entry in e.Keys) {if (entry.Value.ToString() == System.String.Empty) {e.Cancel = true;return;}}B. protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) {foreach (DictionaryEntry entry in e.NewValues) {if (entry.Value.Equals("")) {e.KeepInEditMode = true;return;}}}C. protected void FormView1_ItemUpdating(object sender, FormViewUpdateEventArgs e) {foreach (DictionaryEntry entry in e.NewValues) {if (entry.Value.Equals("")) {e.Cancel = true;return;}}}D. protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) {foreach (DictionaryEntry entry in e.Keys) {if (entry.Value.ToString() == System.String.Empty) {e.KeepInEditMode = true;return;}}}Answer: C8. You create a Web Form. The Web Form uses the FormView control to enable a user to edit a record in the database.When the user clicks the Update button on the FormView control, the application must validate that the user hasYou need to ensure that the Web Form does not update if the user has not entered data in all of the fields. Which code segment should you use?A. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _Handles FormView1.ItemUpdatingDim entry As DictionaryEntryFor Each entry In e.KeysIf entry.Value.ToString() = System.String.Empty Thene.Cancel = TrueReturnEnd IfNext entryEnd SubB. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _Handles FormView1.ItemUpdatedDim entry As DictionaryEntryFor Each entry In e.NewValuesIf entry.Value.Equals("") Thene.KeepInEditMode = TrueReturnEnd IfNext entryEnd SubC. Protected Sub FormView1_ItemUpdating(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdateEventArgs) _Handles FormView1.ItemUpdatingDim entry As DictionaryEntryFor Each entry In e.NewValuesIf entry.Value.Equals("") ThenEnd IfNext entryEnd SubD. Protected Sub FormView1_ItemUpdated(ByVal sender As Object, _ByVal e As System.Web.UI.WebControls.FormViewUpdatedEventArgs) _Handles FormView1.ItemUpdatedDim entry As DictionaryEntryFor Each entry In e.KeysIf entry.Value.ToString() = System.String.Empty Thene.KeepInEditMode = TrueReturnEnd IfNext entryEnd SubAnswer: C9. You are creating a Web Form. You write the following code segment to create a SqlCommand object.You need to display the number of customers in the Customers table.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. object customerCount = cmd.ExecuteScalar();lblCompanyName.Text = customerCount.ToString();B. int customerCount = cmd.ExecuteNonQuery();lblCompanyName.Text = customerCount.ToString();lblCompanyName.Text = dr[0].ToString();D. SqlDataReader dr = cmd.ExecuteReader();dr.Read();lblCompanyName.Text = dr.ToString();Answer: A AND C10. You are creating a Web Form. You write the following code segment to create a SqlCommand object.You need to display the number of customers in the Customers table.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. Dim customerCount As Object = cmd.ExecuteScalar()lblCompanyName.Text = customerCount.ToString()B. Dim customerCount As Integer = cmd.ExecuteNonQuery()lblCompanyName.Text = customerCount.ToString()C. Dim dr As SqlDataReader = cmd.ExecuteReader()dr.Read()lblCompanyName.Text = dr(0).ToString()D. Dim dr As SqlDataReader = cmd.ExecuteReader()dr.Read()lblCompanyName.Text = dr.ToString()Answer: A AND C11. You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing.Which code segment should you use?A. while (ar.AsyncWaitHandle == null) {DoWork();}dr = cmd.EndExecuteReader(ar);B. while (!ar.IsCompleted) {DoWork();}dr = cmd.EndExecuteReader(ar);C. while (Thread.CurrentThread.ThreadState == ThreadState.Running) {DoWork();}dr = cmd.EndExecuteReader(ar);D. while (!ar.AsyncWaitHandle.WaitOne()) {DoWork();}dr = cmd.EndExecuteReader(ar);Answer: B12. You have an SQL query that takes one minute to execute. You use the following code segment to execute the SQL query asynchronously.Dim ar As IAsyncResult = cmd.BeginExecuteReader()You need to execute a method named DoWork() that takes one second to run while the SQL query is executing. DoWork() must run as many times as possible while the SQL query is executing.Which code segment should you use?A. While ar.AsyncWaitHandle Is NothingDoWork()End Whiledr = cmd.EndExecuteReader(ar)B. While Not ar.IsCompletedDoWork()End Whiledr = cmd.EndExecuteReader(ar)C. While Thread.CurrentThread.ThreadState = ThreadState.RunningDoWork()End Whiledr = cmd.EndExecuteReader(ar)D. While Not ar.AsyncWaitHandle.WaitOne()DoWork()End Whiledr = cmd.EndExecuteReader(ar)Answer: B13. You create a Web Form that displays a GridView. The GridViews data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.)You need to find the cause of the exception being raised in line 05.What should you do?A. Ensure that the child column and the parent column have the same names.B. Ensure that the child table and the parent table have the same names.C. Ensure that the child column and the parent column have the same data types.D. Ensure that each row in the child table has a corresponding row in the parent table.E. Ensure that the tables have an explicit relationship defined by a foreign key constraint in the database.Answer: C14. You create a Web Form that displays a GridView. The GridView's data source is a DataSet named dsOrders. The DataSet contains two DataTables named Orders and OrderDetails. You create a relation between the two DataTables using the following code segment. (Line numbers are included for reference only.)You need to find the cause of the exception being raised in line 05.What should you do?A. Ensure that the child column and the parent column have the same names.B. Ensure that the child table and the parent table have the same names.C. Ensure that the child column and the parent column have the same data types.D. Ensure that each row in the child table has a corresponding row in the parent table.E. Ensure that the tables have an explicit relationship defined by a foreign key constraint in the database. Answer: C15. You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed.What should you do?A. Add the following code segment after line 05.dc.ExtendedProperties["Total"] = "Price * Quantity";B. Add the following code segment after line 05.dc.Expression = "Price * Quantity";C. Write an event handler for the DataTable's TableNewRow event that updates the row's Total.D. Write an event handler for the DataTable's ColumnChanged event that updates the row's Total.Answer: B16. You are creating a DataTable. You use the following code segment to create the DataTable. (Line numbers are included for reference only.)You need to ensure that the Total column is set to the value of the Price column multiplied by the Quantity column when new rows are added or changed.What should you do?A. Add the following code segment after line 05.dc.ExtendedProperties("Total") = "Price * Quantity"B. Add the following code segment after line 05.dc.Expression = "Price * Quantity"C. Write an event handler for the DataTable's TableNewRow event that updates the row's Total.D. Write an event handler for the DataTable's ColumnChanged event that updates the row's Total.Answer: B17. You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows.The user utilizes a Web Form to delete the first product.You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown.To which value should you set the DataTabless DefaultView.RowStateFilter?A. DataViewRowState.ModifiedOriginal;B. DataViewRowState.ModifiedCurrent;C. DataViewRowState.CurrentRows;D. DataViewRowState.Added;Answer: C18. You are creating a Web Form. The Web Form allows users to rename or delete products in a list. You create a DataTable named dtProducts that is bound to a GridView. DataTable has the following four rows.The user utilizes a Web Form to delete the first product.You need to set the RowStateFilter property of the DataTables DefaultView so that only products that have not been deleted are shown.To which value should you set the DataTabless DefaultView.RowStateFilter?A. DataViewRowState.ModifiedOriginalB. DataViewRowState.ModifiedCurrentC. DataViewRowState.CurrentRowsD. DataViewRowState.AddedAnswer: C19. Your Web site processes book orders. One of the application methods contains the following code segment.You need to remove the discount element from XmlDocument.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A.XmlNode root = doc.DocumentElement;root.RemoveChild(root.FirstChild);B.XmlNode root = doc.DocumentElement;root.RemoveChild(root.SelectSingleNode("discount"));C.doc.RemoveChild(doc.FirstChild);D.doc.DocumentElement.RemoveChild(doc.FirstChild);Answer: B AND A20. Your Web site processes book orders. One of the application methods contains the following code segment.You need to remove the discount element from XmlDocument.Which two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.FirstChild)B. Dim root As XmlNode = doc.DocumentElementroot.RemoveChild(root.SelectSingleNode("discount"))C.doc.RemoveChild(doc.FirstChild)D.doc.DocumentElement.RemoveChild(doc.FirstChild) Answer: B AND A21. You load an XmlDocument named doc with the following XML.You need to use an XPath query string to select the two book nodes. Which code segment should you use?A.XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes(".");B.XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes("book");C.XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes("bookstore//book");D.XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes("books/book"); Answer: D22. You load an XmlDocument named doc with the following XML.You need to use an XPath query string to select the two book nodes. Which code segment should you use?A. Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes(".")B. Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("book")C. Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("bookstore//book")D. Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book") Answer: D23. You load an XmlDocument named doc with the following XML.You need to change the value for the genre attribute to NA for all book attributes.First, you add the following code segment to your class.XmlElement root = doc.DocumentElement;XmlNodeList nodes = root.SelectNodes("books/book");Which additional two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A.foreach (XmlNode node in nodes){node.Attributes[0].Value = "NA";}B.foreach (XmlNode node in nodes){node.Attributes[1].Value = "NA";}C.foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode("/genre");genre.Value = "NA";}D.foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode("@genre");genre.Value = "NA";}E.foreach (XmlNode node in nodes){XmlNode genre = node.SelectSingleNode("genre");genre.Value = "NA";}Answer: A AND D24. You load an XmlDocument named doc with the following XML.You need to change the value for the genre attribute to NA for all book attributes.First, you add the following code segment to your class.Dim root As XmlElement = doc.DocumentElementDim nodes As XmlNodeList = root.SelectNodes("books/book")Which additional two code segments can you use to achieve this goal? (Each correct answer presents a complete solution. Choose two.)A. Dim node As XmlNodeFor Each node In nodesnode.Attributes(0).Value = "NA"Next nodeB. Dim node As XmlNodeFor Each node In nodesnode.Attributes(1).Value = "NA"Next nodeC. Dim node As XmlNodeFor Each node In nodesDim genre As XmlNode = node.SelectSingleNode("/genre")genre.Value = "NA"Next nodeD. Dim node As XmlNodeFor Each node In nodesDim genre As XmlNode = node.SelectSingleNode("@genre")genre.Value = "NA"Next nodeE. Dim node As XmlNodeFor Each node In nodesDim genre As XmlNode = node.SelectSingleNode("genre")genre.Value = "NA"Next nodeAnswer: A AND D25. You develop a Web control to manage credit card information. The Web control is shown in the exhibit. (Click the Exhibit button.)You register the control on the Web Form by using the following code segment.You need to declare the control on the Web Form.Which code segment should you use?A. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server" Name="test"></cc1:CreditCardDetails><asp:TextBox ID="TxtName" runat="server" Text="<%#%>"></asp:TextBox>B. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server" Name="%#%"> </cc1:CreditCardDetails>C. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"><Template><asp:TextBox ID="TxtName" runat="server"Text="<%#%>"></asp:TextBox></Template></cc1:CreditCardDetails>D. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"><Template><asp:TextBox ID="TxtName" runat="server"Text="<%#Container.Template%>"></asp:TextBox></Template></cc1:CreditCardDetails>Answer: C26. You develop a Web control to manage credit card information. The Web control is shown in the exhibit. (Click the Exhibit button.)You register the control on the Web Form by using the following code segment.You need to declare the control on the Web Form.Which code segment should you use?A. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server" Name="test"></cc1:CreditCardDetails> <asp:TextBox ID="TxtName" runat="server" Text="<%#%>"></asp:TextBox>B. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"Name="<%#%>"></cc1:CreditCardDetails>C. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"><Template><asp:TextBox ID="TxtName" runat="server" Text="<%#%>"></asp:TextBox></Template></cc1:CreditCardDetails>D. <cc1:CreditCardDetails ID="CreditCardDetails1" runat="server"><Template><asp:TextBox ID="TxtName" runat="server" Text="<%#Container.Template%>"></asp:TextBox> </Template></cc1:CreditCardDetails>Answer: C27. You define a composite control to capture a users birth date. You use the following class declaration.You need to ensure that the Web control supports templates.Which four code segments should you use? (Each correct answer presents part of the solution. Choose four.) To answer, move the appropriate code segments from the list of code segments to the answer area.List of Code Segments Answer AreaA. private Label _prompt = new Label();private TextBox _date = new TextBox();B. private string _prompt = "Enter date of birth ";private DateTime _date = DateTime();private ITemplate _template = null;C. [Bindable(true)]public string Prompt {get {EnsureChildControls();return _prompt.Text;}set {EnsureChildControls();_prompt.Text = value; }}[Bindable(true)]public string Date {get {EnsureChildControls(); return _date.Text;}set {EnsureChildControls(); _date.Text = value; }}D. [Bindable(true)]public string Prompt {get {EnsureChildControls(); return _prompt;}set {EnsureChildControls(); _prompt = value;}}[Bindable(true)]public DateTime Date {get {EnsureChildControls(); return _date;}set {EnsureChildControls();_date = value;}}E. [Browsable(false)][PersistenceMode(PersistenceMode.InnerProperty)][TemplateContainer(typeof(DateOfBirth))]public ITemplate Template {get {return _template;}set {_template = value;}}F. protected override void CreateChildControls() {if (Template != null) {Controls.Clear();_template.InstantiateIn(this);}}protected override void CreateChildControls() {this.Controls.Add(_prompt);this.Controls.Add(_date);base.CreateChildControls();}Answer: B AND D AND E AND F28. You define a composite control to capture a users birth date. You use the following class declaration.You need to ensure that the Web control supports templates.Which four code segments should you use? (Each correct answer presents part of the solution. Choose four.) To answer, move the appropriate code segments from the list of code segments to the answer area.List of Code Segments Answer AreaA.Private _prompt As New Label()Private _date As New TextBox()B.Private _prompt As String = "Please enter " & _your date of birth: "Private _date As New DateTime()Private _template As ITemplate = NothingC.<Bindable(True)> _Public Property Prompt() As StringGetEnsureChildControls()Return _prompt.TextEnd GetSet(ByVal value As String)EnsureChildControls()_prompt.Text = valueEnd SetEnd Property<Bindable(True)> _Public Property [Date]() As StringGetEnsureChildControls()Return _date.TextEnd GetSet(ByVal value As String)EnsureChildControls()_date.Text = valueEnd SetEnd PropertyD.<Bindable(True)> _Public Property Prompt() As StringGetEnsureChildControls()Return _promptEnd GetSet(ByVal value As String)EnsureChildControls()_prompt = valueEnd SetEnd Property<Bindable(True)> _Public Property [Date]() As DateTimeGetEnsureChildControls()Return _dateEnd GetSet(ByVal value As DateTime)EnsureChildControls()_date = valueEnd SetEnd PropertyE.<Browsable(False),PersistenceMode(PersistenceMode.InnerProperty), TemplateContainer(GetType(DateOfBirth))> _ Public Property Template() As ITemplateGet。

相关文档
最新文档