Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
70-536 [BrainDumps

70-536 [BrainDumps

Ratings: (0)|Views: 197|Likes:
Published by api-26214845

More info:

Published by: api-26214845 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

Question: 1 [1, 16, 237]

You are writing a custom dictionary. The custom-dictionary class is
named MyDictionary. You need to ensure that the dictionary is type safe.
Which code segment should you use?

A.
Class MyDictionary Implements Dictionary(Of String, String)
B.
Class MyDictionary Inherits HashTable
C.
Class MyDictionary Implements IDictionary

D.
Class MyDictionary
End Class
Dim t As New Dictionary(Of String, String)
Dim dict As MyDictionary = CType(t, MyDictionary)

Answer: A
Question: 16 [1, 16, 237]

You are writing a custom dictionary. The custom-dictionary class is
named MyDictionary. You need to ensure that the dictionary is type safe.
Which code segment should you use?

A.
class MyDictionary : Dictionary<string, string>
B.
class MyDictionary : HashTable
C.
class MyDictionary : IDictionary

D.
class MyDictionary { ... }
Dictionary<string, string> t = new Dictionary<string, string>();
MyDictionary dictionary = (MyDictionary)t;

Answer: A
Question: 237 [1, 16, 237]

You are writing a custom dictionary. The custom-dictionary class is
named MyDictionary. You need to ensure that the dictionary is type safe.
Which code segment should you use?

A.
public ref class MYDictionary : public Dictionary<String, String>{};
B.
public ref class MYDictionary : public Hashtable{};
C.
public ref class MYDictionary : public IDictionary{};

D.
public ref class MYDictionary {};
Distionary<String, String>t = new Dictionary<String, String>();
MyDictionary dictionary = (MyDictionary)t;

Answer: A
Question: 2 [2, 163, 196]
You write a class named Employee that includes the following code
segment.

Private m_EmployeeId As String
Private m_EmployeeName As String
Private m_JobTitleName As String
Public Function GetName() As String

Return m_EmployeeName
End Function
Public Function GetTitle() As String

Return m_JobTitleName
End Function
End Class

You need to expose this class to COM in a type library. The COM
interface must also facilitate forward-compatibility across new
versions of the Employee class. You need to choose a method
for generating the COM interface.
What should you do?

A.
Add the following attribute to the class definition.
<ClassInterface(ClassInterfaceType.None)>
_Public Class Employee

B.
Add the following attribute to the class definition.
<ClassInterface(ClassInterfaceType.AutoDual)>
_Public Class Employee

C.
Add the following attribute to the class definition.
<ComVisible(True)>
_Public Class Employee

D.
Define an interface for the class and add the following attribute to
the class definition.
<ClassInterface(ClassInterfaceType.None)>
_Public Class Employee Implements IEmployee

Answer: D
Question: 163 [2, 163, 196]
You write a class named Employee that includes the following code
segment.

public class Employee {
string employeeId, employeeName, jobTitleName;
public string GetName() { return employeeName;

}public string GetTitle() {
return jobTitleName;
}You need to expose this class to COM in a type library. The COM

interface must also facilitate forward-compatibility across new
versions of the Employee class. You need to choose a method for
generating the COM interface.
What should you do?

A.
Add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.None)]
public class Employee {

B.
Add the following attribute to the class definition.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class Employee {

C.
Add the following attribute to the class definition.
[ComVisible(true)]
public class Employee {

D.
Define an interface for the class and add the following attribute to
the class definition.
[ClassInterface(ClassInterfaceType.None)]
public class Employee : IEmployee
{Answer: D

Question: 196 [2, 163, 196]
You write a class named Employee that includes the following code
segment.

public ref class Employee{
String employeeId;
String employeeName;
String jobTitleName;
public:String GetName() {

return employeeName;
}String GetJobTitle() {
return jobTitleName;
}
You need to expose this class to COM in a type library. The COM
interface must also facilitate forward-compatibility across new

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->