当前位置:MCPD(70-511)题库

问题:

[单选]

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.  
You plan to store the name of the file to a variable named SoundFilePath. 
You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays. 
What should you do?()

A . Write the following code segment in the button onclick event. System.Media. SoundPlayer player = new System.Media. SoundPlayer(SoundFilePath); player.play();
B . Write the following code segment in the button onclick event. MediaPlayer player = new MediaPlayer(); player.Open(new URI(SoundFilePath), UriKind.Relative)); player.play();
C . Use the following code segment from the PlaySound() Win32 API function and call the PlaySound function in the button onclick event. [sysimport(dll="winmm.dll")] public static extern long PlaySound(String SoundFilePath, long hModule, long dwFlags);
D . Reference the Microsoft.DirectX Dynamic Link Libraries. Use the following code segment in the button onclick event. Audio song = new Song(SoundFilePath); song.CurrentPosition = song.Duration; song.Play()

在施工合同履行中,由于承包人的原因造成工程竣工结算价款不能及时支付,则() 发包人无权要求交付工程。 发包人有权要求交付工程。 发包人未要求交付工程的,承包人仍应承担工程照管责任。 发包人未要求交付工程的,承包人不再承担工程照管责任。 承包人可以留置该工程。 假定在名称为教学库的数据库中包含有学生、课程和选课三个表,它们的定义如下所示:         学生(学生号char(7),姓名char(8),性别char(2),专业char(10),年级int)         课程(课程号char(4),课程名char(10),课程学分int)         选课(学生号char(7),课程号char(4),成绩int) 在下面查询语句中,包含有的子句(选项)个数为()。       select*       from学生       where性别=’男’ 1。 2。 4。 3。 田间检验时,对大于10公顷的禾谷类常规种子的种子田,可采用与播种方向成多少度的样区?() 30。 45。 60。 90。 喷油泵柱塞套筒装入泵体后,将柱塞套筒上的定位螺钉孔对正,拧紧定位螺钉后,柱塞套筒应()。 没有上下移动量和转动量。 能上下移动1~2mm,但不能有转动。 上下移动1~2mm,并能微量转动。 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a class that contains the following code segment. (Line numbers are included for reference only.)  01 Public Function GetCachedProducts( _ ByVal conn As SqlConnection) As Object  02  03 If Cache("products") Is Nothing Then  04 Dim cmd As New SqlCommand("SELECT * FROM Products", conn)  05 conn.Open()  06 Cache.Insert("products", GetData(cmd))  07 conn.Close()  08 End If  09 Return Cache("products")  10 End Function  11  12 Public Function GetData(ByVal prodCmd As SqlCommand) As Object  13 14 End Function  Each time a Web form has to access a list of products, the GetCachedProducts method is called to provide this list from the Cache object.  You need to ensure that the list of products is always available in the Cache object. Which code segment should you insert at line 13?() A。 B。 C。 D。

You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. 
You want to add an audio player that plays .wav or .mp3 files when the user clicks a button.  
You plan to store the name of the file to a variable named SoundFilePath. 
You need to ensure that when a user clicks the button, the file provided by SoundFilePath plays. 
What should you do?()

参考答案:

  参考解析

本题暂无解析

相关题目:

在线 客服