188
Question Bank Adv .Net and Security in .Net Project 1. The Obsolete attribute, which is used to specify a method as obsolete, is provided with the .NET framework. [0. 5] a ) True b ) False 2. The Conditional attribute enables access to the Win32 API. [0. 5] a ) True b ) False 3. When a program is compiled in debug mode, a file with an extension _______ is created. [0. 5] a ) .DBP b ) .PDB 4. In .NET, a dynamic link library is created by default when a project of type console application is built. [0. 5] a ) True b ) False 5. ______ are used in C# to add MetaData to classes and assemblies. [0. 5]

Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

  • Upload
    hakhue

  • View
    224

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

Question Bank Adv .Net and Security in .Net Project

1. The Obsolete attribute, which is used to specify a method as obsolete, is provided with the .NET framework.

[0.5]

a) True b) False

2. The Conditional attribute enables access to the Win32 API. [0.5]

a) True b) False

3. When a program is compiled in debug mode, a file with an extension _______ is created.

[0.5]

a) .DBP b) .PDB

4. In .NET, a dynamic link library is created by default when a project of type console application is built.

[0.5]

a) True b) False

5. ______ are used in C# to add MetaData to classes and assemblies. [0.5]

a) Attributes b) Properties

6. C# provides the _______ attribute for interoperability with Windows DLLs.

[0.5]

a) Conditional b) DllImport

7. When a program is compiled into a release version, it has fewer overheads and also executes faster compared to a debug version.

[0.5]

a) True b) False

Page 2: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

8. Windows DLLs have deployment problems like registering the DLL in the Windows registry and versioning issues.

[0.5]

a) True b) False

9. The code residing inside the Windows Dll is known as _________ code as it has direct access to the memory.

[0.5]

a) Managed b) Unmanaged

10. Symbol definition should occur ____________ the program. [0.5]

a) anywhere in b) only at the beginning of

11. The Win32 API consists of a set of dlls that contain the necessary methods for invoking the system calls.

[0.5]

a) True b) False

12. The _________ attribute is used to conditionally prevent or allow execution of a block of code.

[0.5]

a) DllImport b) Conditional

13. An attribute in C# is a declarative tag, which can be used to provide information to the runtime about the behaviour of the C# elements such as classes only.

[1.0]

a) True b) False

14. Statement 1: An obsolete method executes as any normal method.Statement 2: Specifying a method as obsolete makes the C# compiler generate an error when the program is compiled.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

Page 3: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

15. Which of the following are the steps involved in creating an attribute? [1.0]

a) Enclose the attribute in square brackets.

c) Multiple attributes for a single method can be specified by specifying them one after another just before the method name or class element they apply to.

b) Pass any number of parameters required to the attribute within parenthesis.

d) All of the above.

16. Which of the following is true? [1.0]

a) The DllImport attribute is used to interoperate with code in unmanaged and legacy components.

c) The methods contained within Windows DLLs can be called within C# programs using the DllImport attribute.

b) The unmanaged code is the code that has been generated outside the .NET environment.

d) All of the above.

17. Which namespace has to be imported in applications for working with legacy code?

[1.0]

a) System.Runtime.Services c) System.Services

b) System.InteropServices d) System.Runtime.InteropServices

18. Which of the following is true when the first parameter passed to AttributeUsage attribute is AttributeTargets.All enumerator?

[1.0]

a) The attribute can be applied to any class element.

c) The attribute can be applied only to Enums.

b) The attribute can be applied only to constructors.

d) The attribute can be applied only to Modules.

Page 4: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

19. Which of the following is true when the first parameter passed to AttributeUsage attribute is AttributeTargets.Constructor enumerator?

[1.0]

a) The attribute can be applied to any class element.

c) The attribute can be applied only to Enums.

b) The attribute can be applied only to constructors.

d) The attribute can be applied only to Modules.

20. Which of the following is true when the first parameter passed to AttributeUsage attribute is AttributeTargets.Module enumerator?

[1.0]

a) The attribute can be applied to any class element.

c) The attribute can be applied only to Enums.

b) The attribute can be applied only to constructors.

d) The attribute can be applied only to Modules.

21. Statement 1: The AllowMultiple property for the AttributeUsage attribute indicates whether the attribute may be applied to the same item more than once. Statement 2: The Inherited property for the AttributeUsage attribute indicates whether the attribute applied to a certain class or interface applies to all inherited classes or interfaces.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

22. Which of the following is/are true regarding the AttributeUsage attribute?

[1.0]

a) If the Inherited property is set to true, the attribute applied to a certain class or interface will be applied to all inherited classes or interfaces.

c) If the AllowMultiple property is set to false, the compiler will generate an error if the attribute is applied to the same item more than once.

b) If the Inherited property is set to false, the attribute applied to a certain class or interface will

d) If the AllowMultiple property is set to true, the compiler will generate an error if the

Page 5: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

be applied to all inherited classes or interfaces.

attribute is applied to the same item more than once.

23. Statement 1: To read MetaData from a .NET component, the assembly is first loaded into the running process.Statement 2: Assembly.Load(assemblyName) is a static member method of the Assembly namespace.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

24. Which of the following is/are true? [1.0]

a) The .NET components expose their MetaData through a process known as Reflection.

c) The classes necessary for Reflection can be found in the Namespace System.Reflection.

b) Reflection covers the various .NET base classes allowing finding out information about the types in programs or assemblies.

d) All of the above.

25. Which of the following is/are true in relation with the features of Assemblies?

[1.5]

a) As assemblies are Self-Describing, they do not require registry keys.

d) The installation of one application does have adverse effects on the other applications.

b) Due to Versioning, each assembly file reflects or rather exposes the version number to all .NET applications.

e) All of the above.

c) Installation of applications are as simple as copying the files from one directory to another.

Page 6: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

26. Consider the snippet given below:

static void Main(string[] args){Assembly asm = Assembly.Load("AttrEx");Type ty =asm.GetType();Attribute[] atb=Attribute.GetCustomAttributes(ty);Object ob = atb[0];Console.WriteLine("The attribute value is :" + ob.ToString());

Which of the following is/are true?

[1.5]

a) The code above will give a compile time error.

c) The code above will give a run time error.

b) The code above will display the parameter value passed to attribute existing in the class AttrEx on console.

d) None of the above.

27. Consider the snippet below:

public class CoderAttribute : Attribute{

private string cname;

public CoderAttribute(string cName){

this.cname =cName;}

}

Which of the following is/are true regarding the snippet?

[1.5]

a) It is mandatory for CoderAttribute class to inherit the Attribute class.

c) It is not necessary for the CoderAttribute class to have a constructor defined within it.

b) Attribute class belongs to the System namespace.

d) If the Coder attribute has a single parameter of string type, then the CoderAttribute

Page 7: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

class can have a constructor with any number of string parameter.

28. Consider the snippet given below.

[CoderAttribute(“Martin”)]public void CalculateBonus{//Method Implementation}

Which of the following is/are true?

[1.5]

a) The compiler appends the string ‘Attribute’ to the name CoderAttribute forming the name CoderAttributeAttribute.

c) CoderAttribute is the only custom attribute defined for the method CalculateBonus.

b) The compiler does not append the string ‘Attribute’ to the name but leaves the name as CoderAttribute.

d) All of the above.

29. Which of the following snippet is correct for the class WriterAttribute with the attribute “Writer” that can be applied only to the properties?

[1.5]

a) [AttributeUsage(AttributeTargets.Method, AllowMultiple=false,Inherited=false)] public class WriterAttribute { ….

b) [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property, AllowMultiple=false,Inherited=false)] public class WriterAttribute : Attribute{ ….

c) [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property,AllowMultiple=false,

Inherited=false)] public class WriterAttribute { ....

d) [AttributeUsage(AttributeTargets. Property, AllowMultiple=false,Inherited=false)]

Page 8: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

public class WriterAttribute : Attribute{ ….

30. Which of the following is the correct syntax, if there are two attributes associated with a method?

[1.5]

a) … [AttributeName1,AttributeName2](Parameters) MethodName(Parameters)

[ //Method Implementation ]

[AttributeName1(Parameters)]

b) … [AttributeName1(Parameters), AttributeName2(Parameters)] MethodName(Parameters)

[ //Method Implementation ]

c) … [AttributeName1(Parameters)] [AttributeName2(Parameters)] MethodName(Parameters)

[ //Method Implementation ]

d) … MethodName(AttributeName1(Parameters) AttributeName2(Parameters))

[ //Method Implementation ]

31. Which of the following is/are true? [1.5]

a) A .NET component is a piece of executable code

d) The CLR can only execute code in assemblies.

Page 9: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

referred to as Assemblies.

b) An assembly is a collection of all information required by the runtime to execute an application.

e) All of the above.

c) An assembly can be only a DLL file.

32. Consider the snippet below:

[DllImport("Calculation.dll")]public static extern int Addition(int a, int b); static void Main(string[] args) {

int ans = Addition(5,2);Console.WriteLine("Result : {0}",ans);Console.ReadLine();

}

Which of the following is/are true?

[1.5]

a) Windows DLL named Calculation.dll must exist either in the application directory or System32 folder inside the Windows installation directory.

d) The Addition method, imported from the Calculation.dll, takes in two integer parameters and returns the result as an integer.

b) The DLL to import is passed as the parameter to the DllImport attribute.

e) The extern keyword in the declaration of imported method is necessary for using any external methods residing in Dlls.

c) All of the above.

33. Which of the following is/are true? [1.5]

a) An assembly that has been compiled into a PE file has an extension of .exe.

d) The assembly handles versioning and security permissions.

Page 10: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) The *.exe file in .NET Framework is the same as a standalone executable created by a C++ compiler.

e) All of the above.

c) The PE assembly consists of code in the form of IL that requires the .NET platform to be installed on the system in order to execute.

34. Consider the snippet below:

[Conditional("DEBUG")] public static void Msg(string message){

Console.WriteLine(message);}

static void Main(string[] args){ Console.WriteLine("Before calling

Msg()");Msg("Working with Attributes");

Console.ReadLine();}

Which of the following is/are true?

[1.5]

a) The Conditional attribute marking the Msg() method ensures that the Msg() method will be used only in debug versions of the solution.

d) The compiler will not generate an error if the method Msg() does not return a void.

b) The calls to the Msg() method from anywhere in the code in the release version will not be entertained.

e) All of the above.

c) The Msg() method is not called in the Release version, but compile time errors are thrown.

35. Which of the following is/are true regarding the conditional attribute? [2.0]

Page 11: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) It can only be applied to a complete method as a unit.

c) If the condition is met, the compiler ignores any lines of code anywhere else in the source file that calls up the method.

b) If the condition is not met, the compiler will not compile the code for the method.

d) It cannot be applied to a complete method as only a unit.

36. Statement 1: Attributes are translated into statements in the compiled code.Statement 2: Attributes serve as directives to the compiler.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

37. Statement 1: Attributes can also be applied to individual arguments of a method.Statement 2: Attribute name can be declared anywhere with respect to the definition of the item in the code.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

38. Which of the following statements is/are true regarding the attribute DllImport?Statement 1: It is used to mark a method as being defined in an external Dll rather than in any assembly.Statement 2: It is used to mark a method as being defined in any assembly.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

39. Which of the following is/are true regarding the Conditional attribute? [2.0]

Page 12: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) Any method that returns a void can be marked with it.

d) It is used to mark a method as being defined in an external Dll.

b) It is used to give conditional compilation.

e) All of the above.

c) It can be used for debug builds.

40. Which of the following is/are true regarding Reflection?Statement 1: It allows finding out information about the types in programs or assemblies.Statement 2: It can be used to read meta data from assembly manifests.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

41. Which of the following is/are true?Statement 1: The Assembly class allows access to the metadata for a given assembly.Statement 2: The Assembly class provides methods to allow execute an assembly, which is an executable file.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

42. Which of the methods is/are used to load the corresponding assembly into the running process?

[2.0]

a) Assembly.AssemblyLoad() c) Assembly.Load()

b) Assembly.OnLoad() d) Assembly.LoadFrom()

43. Consider the snippet given below:

#define DEBUG

[2.5]

Page 13: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

……[Conditional(“DEBUG”)][Obsolete()]public static void DisplayMessage(){Console.WriteLine(“Hello”);}

Which of the following is/are true regarding the method DisplayMessage()?

a) The above method runs if a debug build takes place.

c) It gives error during compilation.

b) It is an obsolete method. d) On using the method the compiler generates a warning.

44. Consider the snippet given below:

… class ExClass { [Conditional(“Using42.dll”)] public static extern int MessageBox(int hparent, string Message, string caption, int type); }

Which of the following is/are true?

[2.5]

a) The code above generates an error.

c) The code above must have DllImport attribute to make use of the windows API function MessageBox.

b) The code above compiles successfully.

d) The MessageBox() API function is defined in Using42.dll.

45. Which of the following is/are true regarding the windows API function MessageBox()?

[2.5]

a) While using the DllImport attribute, the declaration of the

d) The fourth parameter of the method if set to 0, ensures

Page 14: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

method MessageBox must contain the keyword extern.

that the message box has a button OK.

b) The second parameter of the method indicates a string or message to be displayed.

e) All of the above

c) The third parameter of the method indicates a caption to be displayed in title bar.

46. Which of the following is/are true? [2.5]

a) The Assembly.GetTypes() returns an array of type System.Type containing objects that contain the details of all the types defined in the assembly.

d) The Assembly.GetAttributes() is used to get the custom attributes attached to an assembly .

b) The Assembly.GetTypes() is used to return an array of System.Type references that contains details of only one type.

e) All of the above.

c) The Assembly.GetCustomAttributes() is used to get the custom attributes attached to an assembly .

47. Which of the following is/are true? [2.5]

a) AttributeUsage is primarily used to indicate the items that the custom attribute can be applied to.

c) An attribute applied to an assembly can be placed anywhere in the code but need not be marked with the keyword assembly.

b) An attribute can be applied to an assembly as a whole instead of to an element in the code.

d) An attribute applied to an assembly can be placed anywhere in the code but must be marked with the

Page 15: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

keyword assembly.

48. Which of the following is/are true? [2.5]

a) Assemblies include metadata such as the types exported from the assembly and a manifest.

c) .NET allows different versions of the same assembly to be used in a single process.

b) The version of a referenced assembly is stored in the manifest of the assembly.

d) All of the above.

49. Statement 1: Application Domains allow applications to run independently inside a single process.Statement 2: Application Domains do not allow applications to run independently inside a single process.

[2.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

50. Statement 1: Private assemblies require registration and versioning.Statement 2: Private assemblies can have versioning problems, which need to be addressed during development time.Statement 3: Windows 2000 introduced the side-by-side feature that allows different versions of the same DLL to be used on a system.

[2.5]

a) Only statements 1 and 2 are true.

c) Only statements 2 and 3 are true.

b) Only statements 1 and 3 are true.

d) None of the above statements is true.

51. An assembly can exist completely within a single file or can span across multiple files.

[0.5]

a) True b) False

Page 16: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

52. The .NET metadata is a collection of information existing in ___________ form inside a Portable Executable file.

[0.5]

a) Hexadecimal b) Binary

53. In Global Assembly Cache, two assemblies with the same name but different versions can exist.

[0.5]

a) True b) False

54. The .NET compilers compile the source code into an Intermediate Language called _______.

[0.5]

a) SMIL b) MSIL

55. The files that contain only IL code are known as ___________. [0.5]

a) .NET Modules b) .NET Packages

56. Splitting the code across various modules enables the .NET cross language support.

[0.5]

a) True b) False

57. A Resource file is a collection of resources like images and sounds. [0.5]

a) True b) False

58. The _________ utility comes along with the .NET framework SDK. This utility is used to create resource files.

[0.5]

a) Resgenerate.exe b) Resgen.exe

59. The Image class belongs to the __________ namespace. [0.5]

Page 17: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) System.Drawing b) System

60. A cache is used for storing information __________ [0.5]

a) Permanently b) Temporarily

61. Global Assembly Cache is a ________. [0.5]

a) File b) Directory

62. Private assemblies are the default type of assemblies. [0.5]

a) True b) False

63. Which of the following is/are the part(s) of an assembly? [1.0]

a) Assembly Metadata d) Resources

b) Type Metadata e) All of the above

c) MSIL Code

64. Statement 1: Version numbers for an assembly are set in the Asembly.cs file that accompanies the project.Statement 2: The ILDASM tool can be used to view the assembly version number being written into the assembly manifest.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

65. Which of the following can be found in an assembly version number? [1.0]

a) Majority c) Revision

Page 18: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Minority d) Build

66. Statement 1: Strong or unique name must be generated for each and every shared assembly created.Statement 2: In case of a shared assembly, the assembly file is copied into the applications directory.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

67. Which of the following is/are true? [1.0]

a) The gacutil.exe can be used to install and uninstall assemblies from the GAC using the command line.

c) The gacutil.exe can be used to list assemblies on the GAC using the command line.

b) Private assemblies can be shared across different applications.

d) All of the above.

68. Which of the following is/are true? [1.0]

a) The GAC is a cache for Assemblies.

c) GAC physically is a directory or a folder.

b) Private assemblies need to be stored in GAC.

d) All of the above.

69. Which of the command line options is used to get information regarding the assemblies residing in the native image cache?

[1.0]

a) /view c) /show

b) /display d) /open

70. Which of the following methods in System.Reflection.Assembly [1.0]

Page 19: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

class is used to get the resource names?

a) GetManifestResourceNames()

c) GetResources()

b) GetResourceNames() d) GetManifestNames()

71. Statement 1: The return type for the GetObject() method is Object.Statement 2: The return type for the GetObject() method is Int32.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

72. Which of the following is/are true? [1.0]

a) ResourceWriter class belongs to the System.Resources namespace.

c) The method AddResource() is used to add a resource.

b) ResourceWriter class allows resources up to 4 Gigabytes.

d) ResourceWriter class allows adding only pictures files to an assembly.

73. Consider the syntax of resgen utility below:

Resgen sub.txt sub.resX

Which of the following is/are true?

[1.0]

a) It creates a file called sub.resX.

d) It creates a file called sub.resources.

b) It creates HTML-based resource files.

e) It creates XML-based resource files.

74. Statement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly.Statement 2: Modules written in different languages such as C#,

[1.0]

Page 20: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

VB.NET and JScript.NET cannot be clubbed into a single assembly.

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

75. Which of the following is/are true regarding the assembly version number?

[1.5]

a) Change in the major number indicates that the assembly is incompatible with the previous versions of that assembly.

d) Change in the build number indicates that a very minor change has been made to the assembly.

b) Change in the minor number indicates that the assembly is compatible with the previous versions of that assembly.

e) All of the above

c) Change in the revision number indicates that the assembly maybe compatible with previous versions of that assembly.

76. Which of the following is/are true? [1.5]

a) Resources can exist either as part of the .NET assembly or as a separate file.

d) The .NET modules contain the Type Metadata only.

b) The .NET modules contain the Type Metadata and the IL code.

e) The MSIL code can exist in separate files.

c) Assembly Metadata is stored in a module.

77. Which of the following is the functionality of the /upre option of GACUtil utility?

[1.5]

Page 21: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) Lists the assemblies from the GAC

c) Uninstalls the specified assembly on the GAC

b) Installs the specified assembly on the GAC

d) Uninstalls the assembly from the native image cache

78. Which of the following is/are true? [1.5]

a) Modules can contain manifests but no assembly metadata inside the manifest.

d) A web browser can get the repeatedly requested data from the cache rather than the original server.

b) It is possible to version a module.

e) Due to cache, network traffic increases.

c) A cache is used for temporarily storing frequently used information.

79. Consider the snippet given below:

ResourceWriter rw = new ResourceWriter("sub.resources"); using(Image img = Image.FromFile("face.jpg")) {

rw.AddResource("Picture", img); rw.AddResource("Description", "My face”);

rw.Close(); }

Which of the following is/are true?

[1.5]

a) An instance of Image class is created in a using statement.

d) FileNotFound exception is thrown if the image file face.jpg is not present in the applications directory.

b) The object img of the Image class will be disposed once the execution reaches the end of the using construct.

e) All of the above.

Page 22: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

c) If the file sub.resources does not exist, an exception is generated.

80. Consider the code below that uses the namespace Ex2 with the resource file sub.

Assembly ass = Assembly.GetExecutingAssembly();ResourceManager resman=new ResourceManager("Ex2.sub", ass);PictureBox1.Image = (Image)resman.GetObject("Picture");label1.Text = resman.GetString("Description");

Which of the following is/are true?

[1.5]

a) An object ass of type Assembly is declared to hold the reference to the executing assembly.

d) Error is generated due to the wrong syntax of instantiating a ResourceManager object.

b) System.Resources namespace has to be imported.

e) All of the above.

c) Text property of the Label label1 is set with the value referred by the key Description in the corresponding resource file.

81. Which of the following is/are true? [1.5]

a) There is a need to make an assembly a shared assembly to use it in more than one application.

d) The sn.exe makes use of various cryptographic or encryption algorithms.

b) Shared assembly must not have naming clashes with other assemblies.

e) All of the above.

c) The sn.exe is the utility to make a unique identifier

Page 23: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

across the entire system for shared assembly.

82. Which of the following is the functionality of the /i option of GACUtil utility?

[1.5]

a) Lists the assemblies from the GAC.

c) Uninstalls the specified assembly on the GAC.

b) Installs the specified assembly on the GAC.

d) Uninstalls the assembly from the native image cache.

83. Which of the following is/are true? [1.5]

a) The Global Assembly Cache is a part of Native Image Cache.

d) Ngen.exe utility is used to install an assembly onto the Native Image Cache.

b) The Native Image Cache stores assemblies in their native machine independent native code.

e) All of the above.

c) GAC stores assemblies in IL format.

84. Which of the following is the functionality of the /u option of GACUtil utility?

[1.5]

a) Lists the assemblies from the GAC.

c) Uninstalls the specified assembly from the GAC.

b) Installs the specified assembly on the GAC.

d) Uninstalls the assembly from the native image cache.

85. Which of the following is/are the part(s) of manifest of an assembly? [2.0]

a) A list of referenced assemblies.

d) Exported types included from a module.

Page 24: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) A set of permission requests. e) All of the above.

c) A list of files belonging to this assembly.

86. Statement 1: The reflection mechanism can use the information about the exported types for late binding to classes.Statement 2: Type-library can be easily generated out of manifest for the use of COM clients.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

87. Which of the following is/are true regarding modules? [2.0]

a) They are only loaded when needed.

d) They can be used for slower startup of assemblies.

b) They are DLLs without assembly attributes.

e) All of the above.

c) Usually they do not have assembly metadata and have no version information present within it.

88. Which of the following namespaces has/have classes that can be used for the assembly attributes arguments?

[2.0]

a) System.Reflection c) System.Reflection.InteropServices

b) System.Runtime.Compiler Services

d) System.Runtime.InteropServices

89. Statement 1: An assembly can use a resource, not embedded within a DLL file, by referencing through assembly metadata.Statement 2: An assembly metadata can be used to reference a .netmodule file.

[2.0]

a) Statement 1 is true c) Statement 2 is true

Page 25: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Statement 1 is false d) Statement 2 is false

90. Which of the following is/are true? [2.0]

a) The attribute, [assembly] is a global attribute.

c) The attribute, [module] is a global attribute.

b) The attribute, [import] is a global attribute.

d) Global attributes are not attached to a specific language element.

91. Which of the following is/are true? [2.0]

a) Manifest must contain list of files belonging to an assembly.

c) A single assembly can contain any number of files.

b) A single assembly must have at least one file.

d) All of the above.

92. Statement 1: Manifest is a part of metadata that describes the assembly with all information needed to reference it.Statement 2: Manifest consists of identity name, culture and version but no public key.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

93. Which of the following is/are true regarding integrity using strong names of .NET assemblies?

[2.5]

a) When creating a shared component, a public /private key pair must be used.

d) The strong name utility generates a public/private key pair.

b) The private key is stored within the assembly.

e) All of the above.

Page 26: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

c) The compiler usually writes public key to the manifest.

94. Which of the following is/are returned by the FullName property of Assembly class?

[2.5]

a) The name of the class. d) The public key token of the class.

b) The version of the class. e) All of the above.

c) The locality of the class.

95. Consider the snippet given below:

[assembly: AssemblyVersion(“1.0.*”)]

Which of the following is/are true?

[2.5]

a) The above code generates error.

c) The minor version is 0.

b) The major version is 1. d) The build and revision numbers are auto generated.

96. Which of the following is/are true? [2.5]

a) After compiling the assembly to native code, the original assembly with the MSIL code can be deleted.

d) An assembly stored on the Native Image Cache executes faster.

b) The native code will be rebuilt if the security changes on the system.

e) All of the above.

c) By using the native image generator Ngen.exe, IL code is compiled to native code at the time of installation.

Page 27: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

97. Which of the following is/are true regarding assemblies? [2.5]

a) Private assemblies will be used when applications and components are built within the same company.

d) Private assemblies will be used to build assemblies when the component is built by a different vendor than the application

b) Shared assemblies will be used when the component is built by a different vendor than the application.

e) All of the above.

c) Shared assemblies will be used when a large application is split into sub-projects.

98. Which of the following are the assembly attributes from the System.Reflection namespace?

[2.5]

a) AssemblyCompany d) AssemblyCopyright

b) AssemblyInitialization e) AssemblyProduct

c) AssemblyConfiguration

99. Which of the following is/are true regarding GAC? [2.5]

a) Shared assemblies can be installed in GAC.

d) When .NET components within HTML pages are downloaded to the client, it stores assemblies in GAC.

b) Private assemblies can be installed in GAC.

e) All of the above.

c) The compiled native code goes into GAC if a private assembly is compiled to native code using the native image

Page 28: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

generator.

100. Which of the following are true regarding assemblies? [2.5]

a) A private assembly can exist in the same directory as the application.

d) A single namespace can spread across various assemblies.

b) A private assembly cannot exist within one of the subdirectories of the application.

e) All of the above.

c) Different namespaces can exist in a single assembly.

101. .NET can be thought of as a component technology similar to COM. [0.5]

a) True b) False

102. The ________ is an acronym for Type Library Export. [0.5]

a) TylbExp b) TlbExp

103. Visual Studio .NET while generating a wrapper for the COM component creates a namespace with a different name than the COM component.

[0.5]

a) True b) False

104. _________ is the proxy used to make the .NET client interact with COM component.

[0.5]

a) CRW b) RCW

Page 29: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

105. Runtime Callable Wrapper is a .NET assembly. [0.5]

a) True b) False

106. The _______ interface keeps count of clients connected to a component.

[0.5]

a) Iknown b) IUnknown

107. Regarding the lifetime of the RCW, exactly one copy of the RCW object is created irrespective of the number of clients requesting the same COM component.

[0.5]

a) True b) False

108. A non-.NET client can call .NET components by referring to them once a .TLB file has been created.

[0.5]

a) True b) False

109. The _______ utility is used to convert a COM Type Library into a .NET assembly.

[0.5]

a) TlbExp b) TlbImp

110. _________ is the wrapper object created when a .NET component is called from COM.

[0.5]

a) CWO c) CCW

111. ________ CCW object(s) is/are created for a managed .NET component irrespective of the number of COM clients trying to access it.

[0.5]

a) One b) Two

112. The .NET clients and the COM clients can simultaneously make calls [0.5]

Page 30: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

to the same .NET Component.

a) True b) False

113. Statement 1: COM components manage the lifetime of their object by reference counting whereas in .NET, the CLR manages the lifetime of the object.Statement 2: Marshalling of data is taken care of by RCW.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

114. Which of the following is/are the way(s) in which COM and .NET components differ?

[1.0]

a) COM components use interfaces whereas .NET clients use reflection to learn about the functionality of the object.

c) The .NET components manage their lifetime whereas the CLR manages the lifetime for COM components.

b) COM components use reflection whereas .NET clients use interfaces to learn about the functionality of the object.

d) COM components manage their lifetime whereas the CLR manages the lifetime in .NET.

115. Statement 1: The .NET client talks to a COM component directly without any RCW interface.Statement 2: Type casting of data types is taken care of by RCW.

[1.0]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

116. Which of the following is/are true regarding calling a COM component from .NET?

[1.0]

a) Visual Studio.net creates a namespace with the same name as the COM component within which all the classes and

Page 31: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

interfaces exist.

b) Objects of the COM wrapper can be created using the namespace created by Visual Studio.net.

c) Objects of the COM wrapper cannot be instantiated using the namespace created by Visual Studio.net.

d) Objects of the COM wrapper cannot be referenced using the namespace created by Visual Studio.net.

117. Statement 1: Interoperability between .NET and COM is achieved by creating a proxy class for every COM component that the .NET client tries to access.Statement 2: The proxy talks directly to the COM component, and not to the .NET client.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

118. Which of the following is/are true? [1.0]

a) COM provides language independent code re-use.

b) A COM component exposes its functionality through a set of standard interfaces that a COM client uses to communicate.

c) A COM component with its GUID needs to be registered in the Windows registry.

d) All of the above.

119. Which of the following is/are true regarding the deployment of .NET application that refers to a COM component?

[1.0]

a) The deployment of only RCW and the client is not sufficient.

b) The deployment of only RCW and the client is sufficient.

c) The COM component must also be registered on the

Page 32: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

machine.

d) The COM component need not be registered on the machine.

120. Statement 1: The RCW maintains pointers to the interface of the COM object it wraps. Statement 2: The RCW releases its reference on the COM object when it is no longer used.

[1.0]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

121. Which of the following is/are true regarding CCW and RCW? [1.0]

a) The CCW is COM Clearable Wrapper object.

c) RCW and CCW both contain business logic.

b) The CCW always executes in a managed execution environment.

d) The CCW marshals types from the .NET environment to the COM environment.

122. Which of the following is the syntax for using the RegAsm utility on the file EXAssembly.dll?

[1.0]

a) RegAsm/install EXAssembly.dll

c) RegAsm /p EXAssembly.dll

b) RegAsm /o EXAssembly.dll d) RegAsm / upr EXAssembly.dll

123. Statement 1: In order to call a .NET component from a COM client, one needs to register the assembly using the RegAsm utility first and then export a type library from the components manifest using the TlbExp utility. Statement 2: In order to call a .NET component from a COM client. one needs to register only the assembly using the RegAsm utility.

[1.0]

a) Statement 1 is true. c) Statement 2 is true.

Page 33: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Statement 1 is false. d) Statement 2 is false.

124. Which of the following utility ventures into the assembly’s metadata and manifest and outputs a corresponding COM type library with an extension .TLB?

[1.0]

a) TlibExp c) TlibExport

b) TlbExp d) TlbExport

125. Which of the following is true regarding CCW? [1.5]

a) It is created when a .NET component is called from COM.

d) It acts as a proxy between the COM component and the .NET client.

b) It is generated by runtime that reads the metadata information within the assembly.

e) All of the above.

c) It bridges the gap between the two environments COM and.NET.

126. Which of the following is true? [1.5]

a) RegAsm.exe is the Assembly Registration Tool.

d) RegAsm.exe adds information about the .NET component to the system registry.

b) RegAsm.exe is used to register a .NET class in the windows registry so that COM clients can access it.

e) All of the above.

c) RegAsm.exe is not used to unregister a .NET component.

Page 34: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

127. Which of the following is/are true? [1.5]

a) The RCW manages the pointer locations by making a cache of pointers.

d) RCW acts as a mediator to .NET client and the COM component.

b) The RCW object is allocated on the heap by the CLR.

e) All of the above.

c) The CLR performs the automatic garbage collection of the RCW once it has been de-referenced.

128. Statement 1: COM components return a memory pointer to an object.Statement 2: COM components must reside in the same memory location throughout the lifetime of the object.Statement 3: .NET objects can shift between virtual and physical memory freely as and when either becomes more available.

[1.5]

a) Only statement 1 is true d) Only statement 1 and 3 are true.

b) Only statement 2 is true. e) Statements 1, 2, 3 are true.

c) Only statement 1 and 2 are true.

129. Which of the following is/are the way(s) in which COM components differ from the .NET components?

[1.5]

a) Lifetime of the object. c) Memory Usage.

b) Interfaces vs. Reflection. d) All of the above.

130. Statement 1: The process of reflection exposes the type information stored in the form of Metadata in RCW.Statement 2: The process of reflection helps Visual Studio.net in reading the type information of RCW to provide the IntelliSense.

[1.5]

a) Statement 1 is true c) Statement 2 is true

Page 35: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Statement 1 is false d) Statement 2 is false

131. Consider a method of a COM component to be called by the .NET client that takes in a string parameter. Which of the following is/are the type(s) that RCW marshals before passing the call to the COM component?

[1.5]

a) BSTR d) BSRT

b) BTSR e) None of the above.

c) BRST

132. Which of the following is/are true? [1.5]

a) The RCW is a .NET assembly automatically created by Visual Studio.net in the applications directory.

d) The RCW type information is marshaled from COM types into .NET types and then written into the assembly.

b) The RCW contains business logic.

e) Marshalling is the process of converting data from one type to another.

c) RCW does not contain the type information of the elements contained within the COM component.

133. Which of the following is/are true? [1.5]

a) The .NET code executes in an execution environment managed by the .NET CLR.

d) .NET exposes the classes and methods in an assembly using metadata and reflection.

b) COM code executes in an unmanaged environment.

e) All of the above.

c) COM exposes its classes and

Page 36: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

methods through interfaces.

134. Which of the following is/are true regarding COM components? [1.5]

a) It is uniquely identified by a 128-bit GUID.

d) provides cross-language inheritance.

b) It has to be registered in the Windows registry with the GUID.

e) All of the above.

c) It provides cross-language code re-use capability.

135. Statement 1: Microsoft provides tools in the .NET SDK for generating COM proxies for .NET components.Statement 2: Microsoft provides tools in the .NET SDK for generating .NET proxies for COM components.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

136. Statement 1: COM components can be difficult to code.Statement 2: COM components are very easy to deploy.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

137. Which of the following are the binding techniques used by the .NET clients to determine the memory addresses of the methods and properties of COM objects.

[2.0]

a) Early c) No

b) Late d) All of the above.

Page 37: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

138. Statement 1: Once a COM dll is located through the references dialog box and added to the list of COM references, the COM component can be used in the .NET code.Statement 2: VS.NET creates a namespace bearing the same name as the original COM component but the classes provided by that COM component are not placed within that namespace.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

139. Which of the following is/are true regarding the options of type library importer provided by .NET SDK?

a) The option /verbose displays command syntax and options for the tool.

c) The option /silent suppresses the display of successful messages.

[2.0]

b) The option /? displays additional information about the imported type library.

140. Statement 1: VS.NET creates a wrapper not only for every COM DLL that is imported but also for every COM DLL that the imported COM DLL references in its public interface.Statement 2: VS.NET creates a wrapper only for COM DLL that is imported but not for every COM DLL that the imported COM DLL references in its public interface.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

141. Statement 1: The NET assemblies require less runtime support than COM components.Statement 2: The NET assemblies require more runtime support than COM components.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false.

Page 38: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

142. Statement 1: A single .NET client can simultaneously reference component projects in several different .NET languages.Statement 2: A single .NET client can simultaneously reference component projects only in same .NET language.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false.

143. Which of the following is/are true? [2.5]

a) The utility RegAsm can register a .NET component with COM services.

c) The utility TlbExp can be used to export a COM type library for the client and reference it from the non-.NET languages.

b) The utility TlbExp can be used to interrogate an assembly’s manifest.

d) All of the above are true.

144. Which of the following is/are true when a reference is added to the COM DLL using references dialog in VS.NET?

[2.5]

a) A .NET proxy component is generated for it and its copy is placed in the .NET projects directory.

c) The .NET client only talks to the proxy and receives data the proxy relays back from the COM DLL.

b) The .NET proxy component generated describes the COM DLL and serves as a delegate for it to forward the calls from the .NET client through COM services to the COM DLL that it wraps.

d) All of the above.

145. Which of the following is/are true regarding COM? [2.5]

a) COM components do not provide cross-language

d) COM compliant languages have facilities for getting

Page 39: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

communication. the value of a COM component’s GUID.

b) COM components can provide the count of number of clients that are referencing it.

e) All of the above.

c) COM class can make use of prewritten functionality for security object pooling and resource conservation.

146. Which of the following is/are true? [2.5]

a) The .NET component file encapsulates its own description in an internal segment known as the manifest.

c) Deploying .NET components is as easy as just copying it into the folder of the executable that references it.

b) Different versions of the same .NET component can exist side by side on the same machine and it can be in the same folder.

d) All of the above.

147. Statement 1: When the TlbImp program is executed against a COM DLL, it interrogates the COM DLL’s type library and translates the information therein into a .NET format, converting COM standard data types into those recognized by .NET.Statement 2: When the utility TlbImp.exe is run against a COM DLL, its output file (the RCW) is placed into the folder of the client executable that will use it.

[2.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

148. Which of the following is/are the drawback(s) of static linking of library files?Statement 1: Wastage of storage space by placing redundant copies

[2.5]

Page 40: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

of identical functions in multiple executables.Statement 2: A bug existing in one of the utility functions causes a need to recompile and redistribute every executable that called that function.

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

149. Which of the following is/are true? [2.5]

a) Late binding is slow as compared to early binding.

d) Late binding in C# can be achieved through reflection.

b) Writing a late bound code can be difficult and time consuming.

e) All of the above.

c) In C# programming, when late binding to a COM component, there is no need to create an RCW.

150. Which of the following is/are the advantage(s) of DLL? [2.5]

a) Function libraries were compiled into standalone binary files to be linked dynamically to form separate executable files.

d) Dlls are language specific.

b) Several executable programs could share the same library (.DLL) file.

e) All of the above.

c) Fixing a utility function does not need recompiling or redistributing all the executables that referenced it.

151. The web server, Internet Information Server comes along with [0.5]

Page 41: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

Windows NT.

a) True b) False

152. The _________ kernel is required to execute windows services. [0.5]

a) Windows 95 b) Windows NT

153. Service _________ Manager is used to register windows services with the operating system.

[0.5]

a) Control b) Resource

154. C# understands and interprets ANSI escape sequences denoted by a slash ‘\’ symbol.

[0.5]

a) True b) False

155. The .exe file of windows service is registered in the windows registry with a utility known as __________.

[0.5]

a) instutil.exe. b) installutil.exe.

156. The _________ method is an overridden method of the Component class.

[0.5]

a) Dispose() b) Throw()

157. The _____________ class belongs to the System.IO namespace. [0.5]

a) FileSysWatch b) FileSystemWatcher

158. Every method assigned to a delegate must have the same signature as the delegate.

[0.5]

a) True c) False

Page 42: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

159. The __________ class is present in the namespace System.ServiceProcess.

[0.5]

a) ServiceBase b) ServeBase

160. The ______ method clears all buffers for the current writer after writing any buffered data to the underlying stream.

[0.5]

a) Flush() b) Seek()

161. The StreamWriter class is used for writing characters to a ________. [0.5]

a) file b) console

162. Which of the following is/are true regarding windows service? [1.0]

a) Their applications run only on Windows NT.

c) They cannot execute on systems running Windows ME/98.

b) Their applications can run on Windows 98.

d) They cannot execute on systems running Windows 95.

163. Which of the following methods are used to free resources held by the windows service?

[1.0]

a) Throw() c) Dispose()

b) Thrown() d) Disposible()

164. Which of the following is/are true regarding the utility installutil? [1.0]

a) It cannot be used to install windows service.

c) Its parameter /u is used to uninstall the windows service.

Page 43: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) It can be used to register windows service.

d) Its parameter /un is used to uninstall the windows service.

165. Statement 1: A Service Program is where the functionality of the windows service is written. Statement 2: The algorithm of the windows service resides in Service Configuration Program.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

166. Which of the following is/are true regarding windows services? [1.0]

a) They are not started like traditional applications.

c) They can be started only at boot up time.

b) They are started like traditional applications.

d) They are always started using a service control program

167. Which of the following is/are true? [1.0]

a) The Dispose() method does not free resources that the windows service holds.

c) The InitializeComponent() method can contain code to set the windows service name property.

b) The InitializeComponent() method initializes the windows service by itself.

d) The Dispose() method initializes the windows service by itself.

168. Statement 1: Service Configuration Program does the registration of windows service in the registry. Statement 2: Copying the required files to the system would register the windows service in the registry.

[1.0]

a) Statement 1 is true c) Statement 2 is true

Page 44: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Statement 1 is false d) Statement 2 is false.

169. Statement 1: It is not necessary for windows services to be registered with Service Control Manager. Statement 2: The service control manager communicates with the windows service by sending requests that start, stop or pause a service.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2ac is false

170. Statement 1: An exe of windows service needs to be installed on the machine that needs to run it.Statement 2: It is not necessary for an exe of windows service to be installed on the machine that needs to run it.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

171. Consider the snippet below:

sout.BaseStream.Seek(0, SeekOrigin.End)

Which of the following statements is/are true?Statement 1: The BaseStream property gets the underlying stream associated with sout.Statement 2: The value, SeekOrigin.End is used to move the pointer to the end of the file, which can inturn be used to add content to the end of the file.

[1.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

172. Which of the following is/are true? [1.0]

a) The current working directory of the windows service is the

c) Once the service is loaded into memory using the

Page 45: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

system directory or the directory in which the executable is located.

OnStart() method, it can be started by invoking the method Run().

b) Once the service is loaded into memory using the Run() method, it can be started by invoking the method OnStart().

d) The functionality of the windows service is coded in the OnStart() method.

173. Which of the following is/are true? [1.5]

a) The service program has the actual logic of the windows service present with it.

c) A single service program cannot contain code for a number of windows services.

b) It is necessary that only one windows service should reside in a service program.

d) Each of the windows services should have the service Main method.

174. Which of the following is/are true? [1.5]

a) Visual Studio.net auto-generates skeleton code for windows service.

d) If the service program requires more than a single service in the same service application, more than one single service main methods must be created and registered with the service control manager.

b) The service class of the service program contains the overridden OnStart() and OnStop() of the ServiceBase class.

e) All of the above.

c) The Service Control Manager invokes the OnStart() and OnStop() methods when the service is started and stopped respectively.

Page 46: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

175. Statement 1: To implement a service controller program, the ServiceController class of the System.ServiceProcess namespace must be inherited.Statement 2: To implement a service program, the ServiceBase class of the System.ServiceProcess namespace must be inherited.Statement 3: To implement a service configuration program, the classes ServiceProcessInstaller and ServiceInstaller must be inherited.

[1.5]

a) Only statements 1 and 2 are true.

d) Statements 1, 2, 3 are true.

b) Only statements 1 and 3 are true.

e) None of the above is true.

c) Only statements 2 and 3 are true.

176. Which of the following is/are true regarding service control program? [1.5]

a) It can be optionally created for a windows service.

d) Control operations on a windows service can be performed through the Windows 2000 Services MMC.

b) It can be used to control a windows service.

e) All of the above.

c) It allows a windows service to be started / stopped / paused or to perform a custom operation.

177. Which of the following is/are true regarding the Run() method of ServiceBase class?

[1.5]

a) Being a static method, it can be invoked without instantiating the object of the class.

d) It cannot be invoked without instantiating the object of the class.

Page 47: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) It is an overloaded method and provides the main entry point for a service executable.

e) All of the above.

c) It loads the specified services into memory so that they can be started.

178. Consider the snippet given below:

FileStream fout = new FileStream(@"c:\LogFile.Txt", FileMode.OpenOrCreate, FileAccess.Write);StreamWriter sout = new StreamWriter(fout);

Which of the following is/are true of the FileStream class?

[1.5]

a) The first parameter of the constructor of the FileStream class is a string that specifies the filename to which the output should be written.

d) The third parameter of the constructor of the class FileStream has an enumeration that controls the kind of access users have to a file.

b) The OpenOrCreate enumeration opens the specified file if it exists.

e) All of the above.

c) The OpenOrCreate enumeration does not create a new file if it does not exist.

179. Which of the following is/are true? [1.5]

a) Visual Studio.net generates the service installer class ProjectInstaller.cs file.

d) Visual Studio.net generates the service installer class ProjectInstall.cs file.

b) Setting the Start Type property of the object of class ServiceInstaller to Automatic starts the service

e) The Start Type property has its default value as Automatic.

Page 48: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

at boot-up automatically.

c) Setting the Start Type property of the object of class ServiceInstaller to Manual requires the service to be started manually.

180. Which of the following is/are true? [1.5]

a) The Account property of the serviceProcessInstaller object is set to LocalSystem for the service to be handled not only by the system itself but also by the logged on user.

d) A transaction based install allows the installer to completely roll-back incase it fails at any point of time.

b) ProjectInstaller class is derived from the class System.Configuration.Installer.

e) The attribute RunInstaller enables the ProjectInstaller class to be invoked when installing an assembly.

c) Using the Installer class, transaction-based installations can be created.

181. Statement 1: To get the filename, the FullPath() method of the FileSystemEventArgs class is used.Statement 2: OnStart() and OnStop() are overridden methods.Statement 3: OnStart() and OnStop() are the methods called when a service starts.

[1.5]

a) Only statements 1 and 2 are true.

d) Statements 1, 2, 3 are true

b) Only statements 1 and 3 are true.

e) None of the above is true.

c) Only statements 2 and 3 are true.

Page 49: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

182. Which of the following is/are true regarding FileSystemWatcher class? [1.5]

a) It listens to the file system change notifications and raises events when a file in a directory changes.

d) For watching files of a particular extension, the Filter property needs to be set to an empty string.

b) BeginInit() method is used to specify that the initialization of the object is to begin.

e) For watching all files in a directory, regardless of whether they have an extension or not, the Filter property is set to “*.*”.

c) The Filter property is used to set the type of files to monitor.

183. Which of the following is/are true regarding FileSystemWatcher class? [1.5]

a) Setting the EnableRaisingEvents property to true will cause its object to raise events.

d) It consists of Created and Deleted events.

b) The Path property is used to specify the path to be monitored by its object.

e) All of the above.

c) The default value for Path property is an empty string.

184. Which of the following classes is inherited by the classes ServiceProcessInstaller and ServiceInstaller

[2.0]

a) ComponentInstall. c) ContainerInstall.

b) ContainerInstaller. d) ComponentInstaller.

185. Which of the following is the method of the class System.ServiceProcess.NativeMethods

[2.0]

Page 50: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) StartCtrlDispatcher() c) StartServiceCtrlDispatcher()

b) StartServiceControlDispatcher()

d) StartControlDispatcher()

186. Which of the following is/are true? [2.0]

a) The method ServiceMainCallback() belongs to the class ServiceInstaller class.

c) The method ServiceMainCallback() belongs to the class ServiceBase class.

b) The service class derived from ServiceBase class communicates with SCM using a helper class System.NativeMethods.

d) The service class derived from ServiceBase class communicates with SCM using a helper class System.ServiceProcess.NativeMethods.

187. Which of the following is/are the method(s) of the class Installer? [2.0]

a) Install() d) Uninstall()

b) Commit() e) All of the above.

c) RollBack()

188. Which of the following are the properties of ServiceInstaller? [2.0]

a) StartType d) ServicesDependentOn

b) Display e) All of the above.

c) WindowsServiceName

189. Which of the following are the parts of a service program? [2.0]

Page 51: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) Main function that acts as an entry point of the program.

c) The handler.

b) The service–main function. d) All of the above.

190. Which of the following is/are true with regards to service main function of service program?

[2.0]

a) It contains functionality of the service, which is called by the SCM when the service should start.

c) All of the above.

b) This function need not register a handler function in the SCM.

191. Which of the following handler methods in a service class can be overridden?

[2.0]

a) OnStop() c) OnShutdown()

b) OnPauseAndContinue() d) All of the above.

192. Which of the following is/are true regarding the handler methods used for windows services?

[2.5]

a) To invoke the methods OnPause() and OnContinue(), the property CanPauseAndContinue must be set to true.

c) To invoke the methods OnPause() and OnContinue(), the property PauseAndContinue must be set to true.

b) To invoke the method OnShutdown(), the property CanShutdown must be set to true.

d) To invoke the method OnShutdown(), the property Shutdown must be set to true.

193. Which of the following is used to indicate that the class ExampleInstaller should be invoked when installing an assembly?

[2.5]

a) [RunInstaller(false)] c) [RunInstaller(true)]

Page 52: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

public class ExampleInstaller: System.Configuration.In stall.Installer { … }

public class ExampleInstaller: System.Install.Installer { … }

b) [RunInstaller(true)] public class ExampleInstaller: System.Configuration.In staller { … }

d) [RunInstaller(true)] public class ExampleInstaller: System.Configuration.In stall.Installer { … }

194. Statement 1: The default service name for a windows service in .NET is WindowsService1.Statement 2: AutoLog property of a service is configured for events to be automatically logged for starting and stopping the service.

[2.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

195. Which of the following is/are true? [2.5]

a) To implement a service, the ServiceBase class is inherited.

d) To install and configure service programs, the classes ServiceProcessInstaller and ServiceInstaller are used.

b) The ServiceController class is used to register the services.

e) All of the above.

c) The class ServiceBase is used to implement a service control program.

196. Which of the following is/are true? [2.5]

Page 53: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) A service control manager is a part of the operating system that communicates with the windows service.

d) A windows service cannot depend on another windows service.

b) A service control program can be used to stop, suspend and resume a windows service.

e) All of the above.

c) Windows services need not be configured in the registry.

197. Which of the following are the examples of windows services? [2.5]

a) TCP/IP Services d) Microsoft Search

b) World Wide Publishing Service e) All of the above.

c) Event Log

198. Statement 1: A service program implements the functionality of the windows service.Statement 2: A service program can provide more than one windows service in a single program.

[2.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

199. Statement 1: Windows services are applications that can be automatically started when the Operating system boots.Statement 2: Windows services, when run, always need an interactive user logged on to the system.

[2.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

200. Current state of a windows service can be known programmatically. [0.5]

Page 54: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) True b) False

201. The .Net SDK provides the ______________ class to determine the state of any windows service.

[0.5]

a) ServeControl b) ServiceController

202. The _________ method retrieves all the services registered on the local system.

[0.5]

a) ObtainServices() b) GetServices()

203. The display name of a windows service is fetched using the _________property.

[0.5]

a) DisplayName b) Name

204. The current status of the windows service is obtained using the _______ property.

[0.5]

a) GetStatus b) Status

205. The Status property holds an enumerator of the enumeration ServiceControllerStatus.

[0.5]

a) True b) False

206. Windows services have user interfaces. [0.5]

a) True b) False

207. By default, all windows services write to the system log every time they start and stop.

[0.5]

a) True b) False

Page 55: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

208. Windows services can be made to write to any of the event logs. [0.5]

a) True b) False

209. Before rebuilding any windows service application, it is to be ensured that windows service is not running.

[0.5]

a) True b) False

210. The EventLog class resides in the ___________ namespace. [0.5]

a) System.EventDiagnostics b) System.Diagnostics

211. The Log property of the EventLog class sets the event log to which windows service writes.

[0.5]

a) True b) False

212. Statement 1: The .Net SDK provides the ServiceController class to determine the state of any windows service.Statement 2: The ServiceController class can give information such as display name about the service.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

213. Which of the following is/are true regarding the ServiceController class?

[1.0]

a) The GetServices() method of the ServiceController class is a static method.

c) The GetServices() method of the ServiceController class is not a static method.

b) The GetServices() method retrieves all the services

d) The GetServices() method retrieves all the services

Page 56: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

registered on the local system.

running on the local system.

214. Statement 1: The GetServices() method returns only one object of the class ServiceController for all services registered on the system.Statement 2: The GetServices() method returns an array of the ServiceController class where each array element refers to each of the services registered on the system.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

215. The Status property of ServiceController class holds an enumerator of the ServiceControllerStatus enumeration that has ________ options.

[1.0]

a) Five c) Three

b) Two d) Seven

216. Which of the following would best describe the Running enumerator of the ServiceControllerStatus enumeration?

[1.0]

a) The Windows service is Running.

c) The Windows service has been Paused.

b) The Windows service is Not Running.

d) None of the above.

217. Which of the following would best describe the Stopped enumerator of the ServiceControllerStatus enumeration?

[1.0]

a) The Windows service is Running.

c) The Windows service has been Paused.

b) The Windows service is Not Running.

d) None of the above.

218. Statement 1: The Source property can contain the text that appears in the source category of the Application log.

[1.0]

Page 57: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

Statement 2: The Log property can contain the text that appears in the source category of the Application log.

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

219. Statement 1: The EventLog class resides in the namespace System.Diagnostics.Statement 2: The Log property is used to get or set the Windows event log to which the windows service writes.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

220. Which of the following would describe the Paused enumeration member of the ServiceControllerStatus enumeration?

[1.0]

a) The Windows service is Running.

c) The Windows service has been Paused.

b) The Windows service is Not Running.

d) None of the above.

221. Statement 1: The EventLog class of the System.Diagnostics namespace provides interaction with the Windows event logs. Statement 2: The Log property is used to get or set the name of the windows event log to read or write.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

222. Statement 1: Setting Log property of an object of the EventLog class to Application allows windows service to write to the Application event log.Statement 2: Setting Log property of an object of the EventLog class to ApplicationEvent allows windows service to write to the Application event log.

[1.0]

Page 58: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

223. Which of the following is/are true regarding the WriteEntry() method of EventLog class?

[1.0]

a) It is an overloaded method. c) It writes the string as the Log entry.

b) It takes in one string parameter only.

d) It returns void.

224. Which of the following statements is/are true regarding the ServiceController class methods?Statement 1: By calling the Pause() method, a windows service can be made to temporarily stop execution.Statement 2: By calling the Continue() method, a paused windows service can be made to resume execution.

[1.5]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

225. Which of the following is/are true? [1.5]

a) To report any errors, windows services utilize the event logging architecture of Windows although they do not lack a user interface.

d) Windows 2000 maintains three different types of logs- the Application log, the Security log and the SystemEvent log.

b) A windows service can be made to write an error message to a log file when it encounters a problem.

e) Windows services can write to any of the event logs viewed from the Event viewer.

c) By default, all windows services write to the system log every time they start and stop.

Page 59: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

226. Which of the following code snippets will enable the windows service to write a custom log event to the Application log of Windows along with logging the filename?

[1.5]

a) ... EventLog evt = new EventLog(); evt.Log = "App"; evt.Source="Windows Service"; evt.WriteEntry(”Operation Complete!”);...

c) ...EventLog evt = new EventLog(); evt.LogProperty = "Application"; evt.Source="Windows Service"; evt.WriteEntry(”Operation Complete!”); ...

b) ...EventLog evt = new EventLog(); evt.Log = "Application"; evt.Source="Windows Service"; evt.WriteEntry(”Operation Complete!”);...

d) ...EventLog evt = new EventLog(); evt.Log = "Application"; evt.Source="Windows Service"; evt.Write(”Operation Complete!”); ...

227. Which of the following would best describe the StartPending enumerator of the ServiceControllerStatus enumeration?

[1.5]

a) The Windows service is Running.

d) The Windows service is Stopping.

b) The Windows service is Starting.

e) The Windows service is starting after a pause.

c) The Windows service is Pausing.

228. Which of the following would best describe the ContinuePending enumerator of the ServiceControllerStatus enumeration?

[1.5]

a) The Windows service is Running.

d) The Windows service is Stopping.

Page 60: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) The Windows service is Starting.

e) The Windows service is starting after a pause.

c) The Windows service is Pausing.

229. Which of the following would best describe the StopPending enumerator of the ServiceControllerStatus enumeration?

[1.5]

a) The Windows service is Not Running.

d) The Windows service is Stopping.

b) The Windows service has been Paused.

e) The Windows service is starting after a pause.

c) The Windows service is Pausing.

230. Which of the following would best describe the PausePending enumerator of the ServiceControllerStatus enumeration?

[1.5]

a) The Windows service is Not Running

d) The Windows service is Stopping

b) The Windows service has been Paused

e) The Windows service is starting after a pause

c) The Windows service is Pausing

231. Which of the following statements is/are true regarding the ServiceController class methods?Statement 1: By calling the method Stop(), the windows service is stopped but the program does not exit.Statement 2: By calling the method Start(),the windows service starts if it is not running initially.

[1.5]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false

Page 61: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

232. Consider the snippet given below:

... ServiceController[] sers = ServiceController.GetServices(); foreach(ServiceController s in sers) {

Console.WriteLine("\nService Name : {0}",s.DisplayName);

Console.WriteLine("ServiceStatus : {0}",s.Status); }Which of the following is/are true?

[1.5]

a) The code above will generate an error.

d) The status of each service in sers object is displayed on the console..

b) The array object sers contains all the services registered on the local system.

e) The array object sers contains all the services registered on the remote system.

c) The display name for each service in sers object is displayed on the console.

233. Consider a windows service named “FirstWinService”. Its status is to be checked to see if it is running; if it is then it displays the message “The service FirstWinService is running” else it starts the service.

Which of the following is/are true?

[1.5]

a) if(s.DisplayName==“FirstWinService”) {Console.WriteLine("The service {0} is running",s.DisplayName);

}else{ s.Start();

}

c) if(s.DisplayName==“FirstWinService”){if(s.Status == System.ServiceProcess.ServiceControllerStatus. Running){

Console.WriteLine("The service {0} is running",s.DisplayName);

Page 62: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

} }

b) if(s.DisplayName==“FirstWinService”){if(s.Status == System.ServiceProcess.ServiceControllerStatus. Stopped) {

Console.WriteLine("The service {0} is running",s.DisplayName);

} else{

s.Start(); }

}

d) if(s.DisplayName==“FirstWinService”){ if(s.Status == System.ServiceProcess.ServiceControllerStatus. Running) {

Console.WriteLine("The service {0} is running",s.DisplayName);

} Else {

s.Start(); }

}

234. Which of the following is/are the method(s) used for event logging process?

[2.0]

a) WriteEvents() c) WriteEvent()

b) WriteEntries() d) WriteEntry()

235. Which of the following is/are the method(s) of ServiceController class? [2.0]

a) Start() d) ExecuteStatement()

b) Continue() e) Pause()

c) Stopping()

236. Which of the following is/are the class(es) used for event logging in the System.Diagnostics namespace?

[2.0]

Page 63: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) EventLog d) EventLogInstall

b) EventLogEntry e) EventLogTraceListener

c) EventLogEntriesCollected

237. Which of the following is/are true regarding the properties of the ServiceController class?

[2.0]

a) The property DependentServices returns a collection of dependent services.

c) The property ServiceType indicates whether only one or more than one service can run within the same process.

b) The property ServicesDependentOn returns a collection of the services that the service depends on.

d) All of the above.

238. Statement 1: GetServices() method can only be invoked by instantiating an object for the class ServiceController to return an array of ServiceController class objects that represent all windows services.Statement 2: GetServices() is a static method of the ServiceController class and it returns a ServiceController array representing all windows services registered on the local system.

[2.5]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

239. Statement 1: The ServiceController class has a static method GetDevices() that returns a ServiceController array representing all device driver services on a computer.Statement 2: The ServiceController class has a static method GetDrivers() that returns a ServiceController array representing all device driver services on a computer.

[2.5]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

Page 64: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

240. Which of the following is/are true? [2.5]

a) A service class derived from ServiceBase automatically logs Start & Stop events when the AutoLog property is set to true.

c) A service class derived from ServiceBase logs events irrespective of the AutoLog property being true or false.

b) The ServiceBase class checks the AutoLog property and writes a log entry at start, stop, pause and continue requests.

d) The ServiceBase class checks the AutoLog property and writes log entries only at start and stop requests.

241. Which of the following is/are true regarding the event log files? [2.5]

a) Applications and services write to application log files.

d) Security Log file is used by the operating system for auditing purpose.

b) System Log file is used for the system and device drivers.

e) All of the above.

c) Security Log file is read only for applications.

242. The XmlWriter class is an abstract class required to write XML data to streams.

0.5

a) True b) False

243. The _________ class gives a tree representation of an XML document, which enables its navigation and editing.

[0.5]

a) XmlTemplate b) XmlDocument

244. The XmlTextReader is derived from the class _____________. [0.5]

Page 65: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) XmlReader b) XmlReadCharStream

245. The _______ value for ValidationType property is to validate the document according to DTD rules.

[0.5]

a) XDR b) DTD

246. The WriteStartDocument() method writes the XML declaration with the version "1.0".

[0.5]

a) True b) False

247. The stream created by XmlWriter can be closed using the Close() method of the object.

[0.5]

a) True b) False

248. The method _________ of the XmlTextWriter class is used to write the string data within an element to the XML file.

[0.5]

a) WriteString() b) WriteStartElement()

249. ADO.NET uses _______ to transport data from the data store to the web pages.

[0.5]

a) HTML b) XML

250. The contents of the dataset are written to an XML file using the _________ method of the dataset object.

[0.5]

a) WriteXml() b) Write()

251. The XmlValidatingReader class implements the _________ class. [0.5]

a) XmlCharReader b) XmlReader

Page 66: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

252. The class XmlNodeList does not represent an ordered collection of nodes within the XML document.

[0.5]

a) True b) False

253. Which of the following are the classes of the System.Xml namespace? [1.0]

a) XmlReader c) XmlCharReader

b) XmlWriter d) XmlCharWriter

254. XML written using the XmlTextWriter class conforms to the W3C Extensible Markup Language 1.0 specification but not to the Namespaces in XML specification.

[1.0]

a) True b) False

255. Statement 1: The Flush() method flushes the buffer and writes whatever data is left in the buffer to the stream. Statement 2: The Flush() method flushes the buffer but does not write data left in the buffer to the stream.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

256. Statement 1: The XmlValidatingReader class cannot take the class XmlTextReader as an input.Statement 2: Being an implementation of the XmlReader class, the XmlValidatingReader class can take the class XmlTextReader as an input.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

257. Which of the following statements are true for DTDs and Schemas? [1.0]

Page 67: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) DTDs can be used to define document structure, data types, and content constraints.

c) Schemas can be used to define document structure, data types, and content constraints.

b) Schemas cannot be used to define document structure, data types, and content constraints.

d) DTDs cannot be used to define document structure, data types, and content constraints.

258. The GetElementsByTagName() method of the XmlDocument class returns the ________ object containing a list of all descendant elements that match the specified name.

[1.0]

a) XmlNodeAllList c) XmlNodeListElement

b) XmlNodeListAll d) XmlNodeList

259. Which of the following method exists in the XmlDocument class to return list of all descendant elements?

[1.0]

a) GetElementsTagName() c) GetElementsByTagName()

b) GetElementsbyname() d) GetElementsByTag()

260. The ___________ method of the XmlDocument class is used to create a new element in the XML file.

[1.0]

a) CreateNewElement() c) CreateElements()

b) Create() d) CreateElement()

261. Which of the following properties does the class XmlValidatingReader include?

[1.0]

a) ValidationType c) Schema Type

b) Schemas d) All of the above

262. Which of the following statements are true? [1.0]

Page 68: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) When the XML document needs to be indented, Formatting.Indented enumeration is specified.

c) When the XML document needs to be indented, Formatting.Indent enumeration is specified.

b) When the XML document does not require being indented, Formatting.No enumeration is specified.

d) When the XML document does not require being

indented, Formatting.None enumeration is specified.

263. Which of the following are valid values for the ValidationType property?

[1.0]

a) DTD d) Auto

b) Schema e) All of the above

c) XRD

264. Consider the snippet given below:

string fname = "d:\\employee.xml";XmlTextWriter writer = new XmlTextWriter (fname, null);writer.Formatting = Formatting.Indented;writer.Indentation= 4;

Which of the following is true?

[1.5]

a) An XML file called employee.xml in the root directory of drive d is created if it does not exist.

d) The number of spaces to be indented in the file employee.xml is set to four.

b) The Formatting property of the writer object is used to specify the format for the XML document.

e) All of the above

c) The file employee.xml is indented as the Formatting.Indented enumeration is specified. The file employee.xml is indented

Page 69: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

as the Formatting.Indented enumeration is specified.

265. Consider the following snippet below:XmlTextWriter writer = new XmlTextWriter(“d:\\emp.xml”, null);Which of the following statements are true?

[1.5]

a) The writer object can be used to write data to the XML file emp.xml in d: drive.

c) There is only one type of XmlTextWriter constructor.

b) The file emp.xml associated with the writer object does not have any encoding style.

d) All of the above

266. Consider an element Employee to be created. Within the element Employee there are two more elements, Name and Salary. The value of the Name and Salary elements should be Martin and 50000 respectively. Which of the following will be used to create a structure such as the one mentioned above?

[1.5]

a) Writer.WriteStartElement("", "Employee", "");Writer.WriteStartElement("", "Name", "");Writer.WriteString("Martin");Writer.WriteEndElement();Writer.WriteStartElement("", "Salary", "");Writer.WriteString("50000");Writer.WriteEndElement();

c) Writer.WriteStartElement("", "Employee", "");Writer.WriteStartElement("", "Name", "");Writer.WriteStartElement("", "Salary", "");Writer.WriteString("Martin");Writer.WriteString("50000");

b) Writer.WriteStartElement("", "Employee", "");Writer.WriteStartElement("", "Name", "");Writer.WriteString("Martin"); Writer.WriteStartElement("", "Salary", "");Writer.WriteString("50000");Writer.WriteEndElement();

d) Writer.WriteStartElement("", "Employee", "");Writer.WriteStartElement("", "Name", "");Writer.WriteString("Martin");Writer.WriteEndElement();Writer.WriteStartElement("", "Salary", "");

Page 70: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

Writer.WriteString("50000");Writer.WriteEndElement();Writer.WriteEndElement();

267. Which of the following statements are true regarding the XmlReader class?

[1.5]

a) provides fast access to streams of XML data, but access is limited to a backward-only, read-only cursor.

d) It is an abstract class and the XmlTextReader class inherits from it.

b) Using it, programs that switch back and forth within an XML file cannot be written but can only be read in a forward direction.

e) All of the above.

c) It provides a less resource-demanding way to read XML files.

268. Which of the following statements are true? [1.5]

a) To check if the node read is an element node, the NodeType property of the Reader object and the XmlNodeType enumeration are used.

c) To check if the node read is an element node, the type of the node is compared with the enumerator XmlNodeType.IsElement of the XmlNodeType enumeration.

b) The NodeType property gets the type of the current node.

d) To check if the node read is an element node, the type of the node is compared with the enumerator XmlNodeType.Element of the XmlNodeType enumeration.

269. The xml file, doctor.xml, has an element called Name. Which of the [1.5]

Page 71: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

following will be used to display the data enclosed within the Name element on the console?

a) XmlTextReader rd = new XmlTextReader

a) (“d:\\doctor.xml"); while (rd.Read()){ if (rd.NodeType == XmlNodeType.Element){ if (rd.LocalName.Equals("Name")){ Console.Write("The doctors name is {0} ”, rd.ReadString()); } } }

c) XmlTextReader rd = new XmlTextReader (“d:\\doctor.xml"); while (rd.Read()){ if (rd.NodeType == XmlNodeType.Elements){ if (rd.LocalName.Equals("Name")){ Console.Write("The doctors name is {0} ”, rd.ReadString()); } } }

b) XmlTextReader rd = new XmlTextReader (“d:\\doctor.xml"); while (rd.Read()){ if (rd.Node == XmlNodeType.Elements){ if (rd.Name.Equals("Name")){ Console.Write("The doctors name is {0} ”, rd.Read()); } } }

d) XmlTextReader rd = new XmlTextReader (“d:\\doctor.xml"); while (rd.Read()){ if (rd.NodeType == XmlNodeType.Element){ if (rd.Name.Equals("Name")){ Console.Write("The doctors name is {0} ”, rd.ReadString()); } } }

270. Which of the following statements is/are true? [1.5]

a) The Document Object Model is used to avoid going through an entire XML document for just a little piece of code.

c) In DOM a particular node is selected by using the GetElementsByTagName() method of the XmlDocument class.

Page 72: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Using the DOM a particular node can be selected.

d) All of the above.

271. What happens when the ValidationType property is set to Auto? [1.5]

a) The document is validated according to DTD rules.

d) No Validation is required.

b) The document is validated according to the XSD schema.

e) It detects the type of validation based on the declarations found within the document.

c) The document is validated according to XDR Schema.

272. What happens when the ValidationType property is set to XDR? [1.5]

a) The document is validated according to DTD rules.

c) No Validation is required.

b) The document is validated according to the XSD schema.

d) It detects the type of validation based on the declarations found within the document.

c) The document is validated according to XDR Schema.

273. What happens when the ValidationType property is set to Schema? [1.5]

a) The document is validated according to DTD rules.

d) No Validation is required.

b) The document is validated according to the XSD schema.

e) It detects the type of validation based on the declarations found within the document.

c) The document is validated

Page 73: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

according to XDR Schema.

274. Which of the following statements is/are true? [2.0]

a) The class XmlLinkedNode provides a means to return only the node immediately before the current node.

c) The class XmlLinkedNode provides a means to return the node immediately before or after the current node.

b) The class XmlLinkedNode provides a means to only return the node immediately after the current node.

d) All of the above.

275. Which of the following statements is/are true regarding the Document Object Model implementation in .NET?

[2.0]

a) It supports the W3C DOM Level 1 specification only.

c) It supports the W3C DOM Level 1 and Core DOM Level 2 specification only.

b) It supports the W3C DOM Level 2 specification only.

d) It supports the W3C DOM Level 3 specification only.

276. Which of the following statements are true? [2.0]

a) An XmlNode is an abstract class that represents multiple nodes in an XML document.

c) An XmlNode is an abstract class that represents a single node in an XML document.

b) The class XmlNode implements the class XmlDocument.

d) The class XmlDocument implements the class XmlNode.

277. Which of the following statements is true? [2.0]

a) The class XmlNodeReader c) All of the above.

Page 74: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

uses an XmlNode as its source instead of a stream.

b) The class XmlTextReader can work with either—a stream-based object or a TextReader-based object.

278. Which of the following statements are true? [2.0]

a) An XmlReader is an abstract class that provides fast and un-cached XML data.

c) An XmlReader can read XML data in a backward direction.

b) An XmlReader is a forward only reader.

d) All of the above

279. Which of the following statements is true? [2.0]

a) The class XmlDataDocument allows mixing of XML and relational data in the same view.

c) All of the above.

b) The class XmlURLResolver resolves external XML- based resources such as DTD and schema references by the URI.

280. Which of the following classes is derived from the XmlReader class? [2.0]

a) XmlTextReader c) XmlValidatingReader

b) XmlNodeReader d) All of the above

281. Which of the following statements are true? [2.0]

Page 75: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) The Schemas property of XmlValidatingReader holds an XmlSchemaCollection object.

c) The XmlSchemaCollection object holds the preloaded XSD and XDR schema.

b) The Auto property of XmlValidatingReader holds an XmlSchemaCollection object

d)

282. Consider the snippet given below:

…… string filename=“..\\..\\names.xml”; XmlTextReader tr = new XmlTextReader(filename); …… Which of the following is true regarding the above code?

[2.5]

a) The XmlTextReader object is initialized but no node is selected.

d) A second call to tr.Read() will move to the next node in the document.

b) The XmlTextReader object is initialized and XML Declaration node is selected.

e) All of the above.

c) When the method Read() is called on the object tr for the first time, the XML Declaration node is returned.

283. Which of the following statements are true? [2.5]

a) The property HasValue is used to check if the node has a value.

d) The method ReadStartElement checks whether the current node is the starting element and simultaneously moves to the next node.

b) The property HasAttributes is used to check if the node has any Attributes.

e) All of the above.

Page 76: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

c) The method ReadStartElement only checks whether the current node is the starting element.

284. Which of the following can be used to find the element nodes in a document and display all the attributes associated with it?(Note:The variable tr is the XmlTextReader object.)

[2.5]

a) While(tr.Read()){ if (tr.NodeType == XmlNodeType.Element) { for(int i=0 ; i<tr.Count ; i++) {Console.WriteLine(tr.GetAttribute(i)); } } }

c) While(tr.Read()){ if (tr.NodeType == XmlNodeType.Element) {

for(int i=0 ; i<tr.AttributesCount ; i++)

{Console.WriteLine(tr.GetAttribute(i));

} } }

b) While(tr.ReadNode()) { if (tr.NodeType == XmlNodeType.Element) { for(int i=0 ; i<tr.AttributesCount ; i++) {Console.WriteLine(tr.GetAttribute(i)); } } }

d) While(tr.Read()){ if (tr.NodeType == Element) {

for(int i=0 ; i<tr.AttributesCount ; i++)

{Console.WriteLine(tr.GetAttributes(i));

} } }

285. Which of the following statements is/are true? [2.5]

a) SAX has a push type of d) In a push model all of the

Page 77: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

model. XML data has to be processed by the application irrespective of its need.

b) XmlTextReader has a pull type of model.

e) All of the above.

c) A pull model can be selective about what data is sent to the application.

286. Which of the following are abstract classes? [2.5]

a) XmlResolver d) XmlUrlResolver

b) XmlDataDocument e) XmlNode

c) XmlTextReader

287. Which of the following classes extend the class XmlNode directly? [2.5]

a) XmlLinkedNode d) XmlCharacterData

b) XmlDocument e) All of the above

c) XmlAttribute

288. Which of the following classes extend the XmlLinkedNode class? [2.5]

a) XmlCharacterData d) XmlElement

b) XmlDeclaration e) All of the above

c) XmlEntity

289. Which of the following statements is/are true regarding the members of the class Dataset?

[2.5]

Page 78: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) The method GetXml() returns the XML representation of the data stored in the DataSet.

d) The method GetXmlSchema() returns the XSD schema for the XML representation of the data stored in the DataSet.

b) The method ReadXmlSchema() reads an XML schema into the DataSet.

e) All of the above.

c) The method InferXmlSchema() infers the XML schema from the specified TextReader or file into the DataSet.

290. The Object Oriented Programming paradigm models applications around objects.

[0.5]

a) True b) False

291. By default, all members of a class are serialized. [0.5]

a) True b) False

292. Object __________ is the process of reducing an object instance into a format that can either be stored to disk or transported over a network.

[0.5]

a) Internalization b) Serialization

293. The classes that are required to serialize an object are available in the System.Runtime.Serialization namespace.

[0.5]

a) True b) False

294. The .NET Framework is not an efficient serialization framework. [0.5]

a) True b) False

Page 79: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

295. The .NET objects are serialized to streams. [0.5]

a) True b) False

296. _________ involves restoring an object to the state it was in before it was serialized.

[0.5]

a) Serialization b) Deserialization

297. The _______ keyword is used for type casting an object of one type to another.

[0.5]

a) to b) as

298. Serialization and deserialization is relatively faster in binary format as no parsing is required.

[0.5]

a) True b) False

299. During deserialization, the ________ image is loaded into memory from the disk.

[0.5]

a) Character b) Binary

300. SOAP format represents the object's state in _____ SOAP based tags.

[0.5]

a) HTML b) XML

301. All formatters expose an interface called the __________ interface. [0.5]

a) Format b) IFormatter

302. Objects may be remoted by serializing an object to a stream of bytes, and transmitting the stream to another machine that understands the

[1.0]

Page 80: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

serialization format.

a) True b) False

303. Object Serialization ensures that an object can be recreated with its current state at a later point of time or at a _______ location.

[1.0]

a) Same b) Different

304. Which of the following is the namespace in which there are classes required to serialize an object?

[1.0]

a) System.Runtime.Serialize c) System.Serialize

b) System.Serialization d) System.Runtime.Serialization

305. The serialization stream along with the serialized data carries information about the object’s type, including its assembly name and culture, but not its version.

[1.0]

a) True b) False

306. Which of the following is the formatter that inherits from the IFormatter interface?

[1.0]

a) BinaryFormat c) BinFormatter

b) BinFormatter d) BinaryFormatter

307. Which of the following are the formatters that inherit from the IFormatter interface and are provided as part of the .NET framework?

[1.0]

a) BinaryFormat c) BinaryFormatter

b) SoapFormat d) SoapFormatter

308. Statement 1: To deserialize an object in .NET, the method DeSerialize() of the BinaryFormatter class is used. Statement 2: The BinaryFormatter class resides in the

[1.0]

Page 81: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

System.Runtime.Serialization.Formatters.Binary namespace.

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

309. The Deserialize() method of the formatter class takes the name of the stream object as its parameter and returns an object of the type __________.

[1.0]

a) System.Byte System.Byte c) System.Float

b) System.Double d) System.Object

310. Statement 1: To serialize an object using SOAP format, the SoapFormatter class is used. Statement 2: The SoapFormatter class is defined in the System.Runtime.Serialization.Formatters namespace.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

311. Which of the following statements are true regarding serialization of an object using the SOAP formatter?

[1.0]

a) The code for serialization and deserialization is identical to the binary format.

c) The code for serialization and deserialization is not identical to the binary format.

b) The Serialize() method is called after creating the SoapFormatter object and a stream file.

312. The state of an object that may change during its lifetime is maintained in memory.

[1.0]

a) True b) False

Page 82: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

313. Which of these attributes is used to exclude fields of a serialized class from serialization?

[1.0]

a) NonSerial c) None

b) NonSerialized d) All

314. In serialization, the object is persisted to disk using a particular formatter and sent across the network to another co-operating machine, which then receives the stream of data and deserializes it, to get back the object with its state unchanged.

[1.5]

a) True b) False

315. Which of the following statements is/are true regarding the class BinaryFormatter?

[1.5]

a) It provides binary encoding for compact serialization for storage.

c) It is not appropriate when data needs to be passed through a firewall.

b) It provides binary encoding for compact serialization for socket-based network streams.

d) All of the above

316. Which of the following statements are true regarding the SoapFormatter class?

[1.5]

a) It provides formatting that can be used to enable objects to be serialized using the SOAP protocol.

c) This class inherits from the IFormatter interface.

b) It cannot be used for serialization through firewalls.

d) All of the above.

Page 83: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

317. Which of the following is required to serialize an object? [1.5]

a) The object to be serialized. c) A formatter to be used to serialize the object.

b) A stream to hold the serialized object.

d) All of the above.

318. Which of the following is used to serialize data of the object Student using the binary formatter in the file stud_data.ex in d: drive? The class Student is serializable and has one field member—Name. This member (Name) must have the data, MARTIN.

[1.5]

a) Student std = new Student (); std.Name = "MARTIN"; Stream str = File.OpenWrite("D:\\ stud_data.ex"); BinaryFormatter fr = new BinaryFormatter(); fr.Serial(str, std); str.Close();

c) Student std = new Student (); std.Name = "MARTIN"; Stream str = File.OpenWrite("D:\\ stud_data.ex"); BinaryFormatter fr = new BinaryFormatter(); fr.Serialize(str, std); str.Close();

b) Student std = new Student (); std.Name = "MARTIN"; FileStream str = File.OpenWrite("D:\\ stud_data.ex"); BinaryFormatter fr = new BinaryFormatter(); fr.Serialize(str);

d) Student std = new Student (); std.Name = "MARTIN"; FileStream str = File.OpenWrite("D:\\ stud_data.ex"); Formatter fr = new Formatter(); fr.Serialize(str, std); str.Close();

319. Which of the following is used to create the Doctor class that can be serialized? The class Doctor consists of two field members, Name and Specialization, of string type and can be accessed publicly.

[1.5]

a) namespace Serialization {

c) namespace Serialization{

Page 84: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

[Serialized] public class Doctor {public string Name;public string Specialization; } }

[Serializable] public class Doctor {public string Name;public string Specialization; } }

b) namespace Serialization{[Serializable]public class Doctor {public int Name;public int Specialization; } }

d) namespace Serialization { public class Doctor {public string Name;public string Specialization; } }

320. The data in the file serialdata.ex in d: drive is serialized. It contains data of the serialized class Employee having two members EmployeeName and CompanyName. Which of the following can be used to deserialize the data and print EmployeeName and CompanyName on the console using binary formatter?

[1.5]

a) FileStream f1 = new FileStream("D:\\serialdata.ex", FileMode.Open);Employee empdt = fr.Deserialize(f1) as Employee;Console.WriteLine(empdt. EmployeeName);Console.WriteLine(empdt. CompanyName);

c) FileStream f1 = new FileStream("D:\\serialdata.ex", FileMode.Open);BinaryFormatter fr = new BinaryFormatter();Employee empdt = fr.Deserialize(f1) as Employee;Console.WriteLine(empdt. Employee);

b) FileStream f1 = new FileStream("D:\\serialdata.ex", FileMode.Open); BinaryFormatter fr = new BinaryFormatter(); Employee empdt = fr.Deserialize(f1);Console.WriteLine(empdt.

d) FileStream f1 = new FileStream("D:\\serialdata.ex", FileMode.Open); BinaryFormatter fr = new BinaryFormatter();Employee empdt = fr.Deserialize(f1) as Employee;

Page 85: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

EmployeeName);Console.WriteLine(empdt. CompanyName);

Console.WriteLine(empdt. EmployeeName);Console.WriteLine(empdt. CompanyName);

321. Which of the following statements are true regarding the SOAP formatter?

[1.5]

a) It is an alternate to the binary formatter for object serialization.

d) . It is faster than binary format.

b) It represents the object's state in HDML-SOAP based tags.

e) The serialization information can be shared with any .NET application on any platform.

c) It requires composing the SOAP description during serialization and parsing during deserialization

322. Which of the following statements are true? [1.5]

a) If the class to be serialized contains references to objects of other classes, and if those classes have been marked as serializable, then their objects are also serialized.

d) .NET knows the existence of objects from its metadata and accesses these members using reflection.

b) .NET serializes the object's state including that of the members of the base class.

e) All of the above.

c) All members are serialized except for protected members.

323. Which of the following statements is/are true? [1.5]

a) If the object has member c) It should be ensured that all

Page 86: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

variables that are serializable, then those members are serialized too.

the base classes of a class are serializable when the class is marked as serializable.

b) During recursive serialization, even if one of the object's members is not serializable, .NET throws a runtime exception.

d) All of the above.

324. Which of the following statements regarding Remote Procedure Calls is true?

[2.0]

a) The SoapFormatter class can easily handle RPCs that are produced with objects implementing the ISoapMessage interface.

c) All of the above.

b) To create an RPC without using the IRemotingFormatter functionality, an object that supports the ISoapMessage interface is placed at the root of a graph being serialized.

325. Which of the following statements is/are true regarding the classes of the namespace System.Runtime.Serialization?

[2.0]

a) ObjectManager class can keep track of objects as they are deserialized.

c) All of the above.

b) IDGenerator class is used to generate IDs for the objects.

326. Which of the object graphs are specified by the interface IRemotingFormatter during RPCs?

[2.0]

a) The graph of objects to serialize.

c) All of the above.

Page 87: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) A graph containing an array of header objects that convey information about the remote function call.

327. Which of the following statements is/are true regarding the interfaces in the namespace System.Runtime.Serialization.Formatters?

[2.0]

a) IFieldInfo allows access to field names and field types of objects that support the ISerializable interface.

c) All of the above.

b) ISoapMessage provides an interface for an object that contains only the names of parameters required during serialization of a SOAP RPC.

328. Which of the following statements is/are true? [2.0]

a) Serialization is the process of taking an object and persisting the object to a disk.

c) The XML serializer cannot convert an object’s public data into elements and/or attributes.

b) Serialization of data in .NET can be done in an XML-SOAP format.

d) The XML serializer can convert an object’s private data into elements and/or attributes.

329. Which of the following statements is/are true regarding the use of the System.Runtime.Serialization.Formatters.Binary namespace?

[2.0]

a) It is used when a need arises to serialize only public data.

c) It is used when a need arises to serialize public and private data as well as an object graph that contains nested objects.

b) It is used when a need arises to serialize only private data.

Page 88: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

330. Which of the following statements is true regarding the parts in when RPCs that use the BinaryFormatter separate?

[2.0]

a) The method calls that are sent to the server with the remote object containing the method called.

c) All of the above.

b) The method responses that are sent from the server to the client with the status and response information from the called method.

331. Which of the following is true regarding the RPCs that use the BinaryFormatter?

[2.0]

a) During serialization of a method call, the first object of the object graph must support the interface IMethodCallMessage.

c) All of the above.

b) During serialization of a method response, the first object of the object graph must support the IMethodCallMessage interface.

332. Which of the following statements are true? [2.5]

a) The SoapFormatter and BinaryFormatter classes implement the IRemotingFormatter interface to support remote procedure calls,

c) The SoapFormatter class supports RPCs with ISoapMessage objects, without using the IRemotingFormatter functionality.

b) The SoapFormatter and BinaryFormatter classes

d) The SoapFormatter class supports RPCs with

Page 89: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

implement the IFormatter interface to support serialization of a graph of objects.

ISoapMessage objects, by using the IRemotingFormatter functionality.

333. Which of these statements are true regarding the following classes in the namespace System.Runtime.Serialization?

[2.5]

a) Formatter class provides base functionality for the CLR serialization formatters.

d) SerializationBinder class does not allow users to control class loading.

b) FormatterConverter class represents a base implementation of the IFormatterConverter interface.

e) All of the above.

c) FormatterServices class can be inherited.

334. Which of these statements are true regarding the following classes in the namespace System.Runtime.Serialization?

[2.5]

a) SerializationInfo class holds all the data needed to serialize or deserialize an object.

d) SerializationInfoEnumerator class cannot be inherited.

b) SerializationInfo class can be inherited.

e) All of the above.

c) SerializationInfoEnumerator class provides a formatter-friendly mechanism for parsing the data in SerializationInfo.

335. Which of these statements are true regarding the following interfaces in the namespace System.Runtime.Serialization?

[2.5]

a) IDeserializationCallback indicates that a class is to be

d) IObjectReference indicates that the current interface

Page 90: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

notified when deserialization of the entire object graph has been completed.

implementer is a reference to another object.

b) IFormatter provides functionality for formatting serialized objects.

e) All of the above.

c) IFormatterConverter provides the connection between an instance of SerializationInfo and the formatter-provided class to parse the data inside the SerializationInfo.

336. Which of these statements are true regarding the classes in the namespace System.Runtime.Serialization.Formatters?

[2.5]

a) ServerFault contains information for a server fault.

d) SoapFault class can be inherited.

b) ServerFault class can be inherited.

e) SoapMessage holds the names and types of parameters required during serialization of a SOAP RPC

c) SoapFault carries error and status information within a SOAP message.

337. Which of these statements is true regarding the public methods of the class BinaryFormatter?

[2.5]

a) The method Deserialize() deserializes a stream into an object graph.

d) The method Serialize() serializes an object or graph of connected objects to the given stream.

b) The method DeserializeMethodResponse() deserializes a response to a remote method call from the provided Stream.

e) All of the above.

Page 91: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

c) The method GetType() gets the type of the current instance.

338. Which of these statements are true regarding the public properties of the class BinaryFormatter?

[2.5]

a) AssemblyFormat gets or sets the format in which type descriptions are laid out in the serialized stream.

d) Context gets or sets the StreamingContext for binary formatter.

b) Binder controls the binding of a serialized object to a type.

e) TypeFormat gets or sets the format in which assembly names are serialized.

c) SurrogateSelector gets or sets an ISurrogateSelector that controls type substitution during serialization and deserialization.

339. Which of the following can be done by the tool XSD.exe [2.5]

a) It can generate an XML schema from an XDR schema file.

d) It can generate runtime classes that have the custom attributes for XMLSerialization.

b) It can generate an XML schema from an XML file.

e) All of the above.

c) It can generate DataSet classes from an XSD schema file.

340. _________ suffers from many different incompatible implementations. [0.5]

a) DCOM b) CORBA

Page 92: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

341. A formatter provider is used to associate a formatter with a _________.

[0.5]

a) Channel b) Proxy

342. Which of the following is true regarding writing codes for various services used for the serialized objects?

[1.0]

a) Code for object activation. c) Code for managing the communication channels that are responsible for transporting messages to and from remote applications.

b) Code for objects lifetime support

d) All of the above.

343. Which of the following is true regarding component interaction in .NET remoting?

[1.0]

a) It offers component interaction using XML and SOAP.

b) SOAP will be the only method of component interaction.

344. Which of the following statements is/are true regarding the remote client?

[1.0]

a) It calls the methods of the remote object through a proxy.

c) All of the above.

b) It cannot call the methods of the remote objects directly.

d)

345. Which of the following are the built-in channels in the .NET Framework?

[1.0]

a) HTTP c) All of the above.

b) TCP

Page 93: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

346. Which two of these are types of proxies? [1.0]

a) Transparent c) Logical

b) Opaque d) Real

347. Which of the following is true regarding Activator? [1.0]

a) A client cannot use an activator to create remote objects on the server.

c) All of the above.

b) A client uses an activator to obtain a proxy of a server-activated object.

348. Which of the following statements are true? [1.5]

a) Atleast one of the overloaded constructors of the TcpServerChannel class requires a port number to open the channel.

d) The RegisterServiceType() method of the RemotingConfiguration class registers an object as a well-known type.

b) The TcpServerChannel class provides us with an implementation for a server channel, which uses the TCP protocol to transmit messages across machines.

e) All of the above.

c) The Register method of the ChannelServices class is used to register the channel object.

349. Which of the following statements regarding the RegisterWellKnownServiceType() method are true?

[1.5]

Page 94: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) It is not a static method of the class RemotingConfiguration.

c) Setting the enumeration mode to Singleton indicates that every incoming message is serviced by a single object instance.

b) Setting the enumeration mode to SingleCall indicates that a new object is created for every new request.

d) All of the above.

350. Which of the following statements are true regarding the Scale-Out strategy?

[1.5]

a) The old systems are discarded for a new one.

c) The processing load could be spread across various systems.

b) Businesses continued using existing hardware.

d) All of the above.

351. Which of the following is true with respect to the Scale-Out strategy? [1.5]

a) Saves cost c) Better system performance

b) Faster implementation d) All of the above.

352. Which of the following statements is true regarding the fault tolerant system which results out of Scale-Out strategy?

[1.5]

a) During system failure, all modules stop functioning.

c) During the failure of one of the machines the modules running on other machines are affected.

b) During the failure of one of the machines, only the modules running on that particular machine are affected.

d) All of the above.

Page 95: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

353. Which of the following are the disadvantages of the Scale-Out strategy?

[1.5]

a) As businesses expand, the need for extra software modules requires purchase of new hardware.

d) It has low cost of ownership.

b) The entire system is required to be owned by the business.

e) All of the above.

c) It is expensive to maintain and own in the long run.

354 Which of the following statements are true? [1.0]

a) With .NET, more than a single application can be made to run in a single process to give rise to a new isolation boundary termed as an application domain.

c) The objects of the same application domain can freely interact.

b) Objects willing to interact across application domains do not require a proxy.

d) All of the above.

355. Statement 1: The class HttpClientChannel is a class that exists in the System.Runtime.Remoting.Channels.Http namespace.Statement 2: The class TcpClientChannel is a class that exists in the System.Runtime.Remoting.Channels.Tcp namespace.

[1.5]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

356. Which of the following statements are true with regards to .NET Remoting?Statement 1: Only the client can call methods on the remote object across the network.

[2.0]

Page 96: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

Statement 2: The server can call methods in the client.

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

357. Which of the context attribute classes are present in the .NET framework?

[2.0]

a) AsynchronizationAttribute c) SynchronizationAttribute

b) ThreadAttribute d) ThreadAffinityAttribute

358. Which of these statements is true regarding the IChannel interface? [2.0]

a) ChannelName is a read/write property that returns the name of the channel.

c) All of the above

b) ChannelPriority is a read only property, which in case there are multiple channels defines the order in which the channels will be chosen to connect first.

359. Which of the following statements is true? [2.0]

a) Context attributes can be assigned to classes derived from ContextBound object.

c) All of the above.

b) A custom attribute class can be created by implementing the interface IContextAttribute

360. Which of the following statements are true? [2.0]

a) The class ContextAttribute c) The class ContextAttribute

Page 97: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

can be used as a base class for custom attributes.

implements only the interface IContextAttribute.

b) The class ContextAttribute implements the interface IContextProperty.

d)

361. Which of the following statements are true with respect to channels?Statement 1: The client channel needs to implement the interface IChannelSender.Statement 2: The server channel needs to implement the interface IChannelReceiver.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

362. Which of the following statements are true regarding the Channel class provided with the .NET framework?

[2.5]

a) The HTTPChannel used by most web services uses HTTP protocol for communication.

c) The HTTPChannel is less efficient for communication on the Internet compared to the TCPChannel.

b) When the TCPChannel is to be used on the Internet, the firewalls must be configured so that clients can access a specified port that is used by the TCPChannel.

d) All of the above..

363. Which of the following statements are true? [2.5]

a) The interfaces IChannelSender and IChannelReceiver are derived from the interface IChannel.

d) The ChannelData property of IChannelReceiver interface can be used to get information about the URI’s.

b) The IMessageSink interface can be used for putting

e) All of the above.

Page 98: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

synchronous as well as asynchronous messages into the channel.

c) The IMessageSink interface can be used for putting only the synchronous messages into the channel.

364. Which of the following statements is true in relation to .NET? [2.5]

a) Application domain is like a sub-process with security boundaries.

d) Multiple application domains can exist in a single process.

b) An application domain can have different contexts.

e) All of the above

c) A context is used to group objects with similar execution requirements.

365. Which of the following statements are true? [2.5]

a) Context bound objects can have context attributes.

d) A context bound object with context attributes can be created in the creator’s context if the attributes are compatible.

b) A context bound object without context attributes is created in the context of the creator.

e) All of the above.

c) A context bound object with context attributes is always created in a new context.

366. Which of the following statements is true? [2.5]

Page 99: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) The transparent proxy implements the public methods of the real object.

d) The transparent proxy can read metadata information from an assembly.

b) The transparent proxy knows about the public methods by using the mechanism of reflection.

e) All of the above.

c) The real proxy is pluggable.

367. Which of the following statements are true with regards to a client calling a server object or vice versa?

[2.5]

a) The remote object in the server must declare an external function with the signature of the method that the client will implement in a handler.

d) The client must create a sink object with a handler method that need not have the same signature as the delegate.

b) All the data sent to the client need not be serializable.

e) The client must register the sink object with the event in the remote object.

c) The remote object must declare an instance of the delegate function modified with the event keyword so that a client will use it to register a handler.

368. Fewer resources are wasted when _______ calls from the client to the server takes place.

[0.5]

a) Asynchronous b) Synchronous

369. An Asynchronous call is a process in which a client makes a call to a method but does not continue to perform other tasks

[0.5]

a) True b) False

Page 100: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

370. More than one client can be connected to a server at any given instant.

[0.5]

a) True b) False

371. Lifetime management holds good only for clients that are activated as Singleton objects.

[0.5]

a) True b) False

372. In________, the classes should implement the ISerializable interface. [0.5]

a) Marshal by value b) Marshal by Reference

373. The property _________ belongs to the class AsyncResult. [0.5]

a) IsCompleted b) IsComplete

374. The signature of the delegate must be the same as the signature of method to which it refers.

[0.5]

a) True b) False

375. In an asynchronous call, the method is processed when the server is available and the result is returned to the client at the same instant.

[1.0]

a) True b) False

376. Which of the following statements is true regarding the technique Marshal by value?

[1.0]

a) The objects are serialized through a channel.

c) All of the above.

b) Any class that is not inherited from MarshalByRefObject class is of type Marshal by

Page 101: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

value.

377. The IsCompleted property of the class ASyncResult contains a Boolean value that indicates whether the server has completed processing the method call or not.

[1.0]

a) True c) False

378. The _________ method completes an asynchronous invocation of the remote method call.

[1.0]

a) EndInvoking() b) EndInvoke()

379. The _________ method is used to begin an asynchronous remote call to a method.

[1.0]

a) BeginInvoking() b) BeginInvoke()

380. In .NET remoting, if a server is not running while the client tries to request a particular method, an exception is thrown.

[1.0]

a) True b) False

381. Which of the following exception will be thrown if the client invokes a remote call on the server, while the server is not available?

[1.0]

a) System.Runtime.Remoting.RemoteException

c) System.Runtime.Remoting.RemotingException

b) System.Runtime.RemotingException

d) System.Remoting.RemotingException

382. _________ objects can be destroyed after every call as they do not maintain any state.

[1.0]

a) Singleton b) Singletcall

Page 102: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

383. Which of the following are the properties that may be involved in lifetime management configuration?

[1.0]

a) LeaseTime c) LeaseManagerPollTime

b) RenewOnCallTime d) All of the above.

384. Consider the snippet given below:

public class CorporateData : System.MarshalByRefObject { public CorporateData { } public ClassOne GetMyClassOne() { return new ClassOne(); } public ClassTwo GetMyClassTwo() { return new ClassTwo (100); }}

Which of the following is/are necessary when using Marshal by reference technique?

[1.5]

a) The class CorporateData must inherit from the class MarshalByRefObject.

d) The classes ClassOne and ClassTwo need not be serialized classes.

b) The object for the class ClassOne is created using a constructor, which takes no arguments.

e) All of the above.

c) The object for the class ClassTwo is created using constructor, which takes in an integer argument.

385. Which of the following is true regarding RenewOnCallTime property that needs to be configured for lifetime management?

[1.5]

a) It defines the time until a lease expires.

c) It defines the time interval to wait for a lease renewal

Page 103: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

time.

b) It defines the time the lease is set on a method call if the current lease time has a lower value.

d) It has a default value of 100 seconds.

386. Which of the following statements are true regarding the Non-Remotable technique in .NET remoting

[1.5]

a) The objects are serializable. d) Objects never leave their “Home” application domain.

b) The objects do not derive from the class MarshalByRefObject.

e) All of the above.

c) Objects can be used in public method parameters or remote objects.

387. Which of the following statements, regarding lifetime management, are true?

[1.5]

a) Every lease does not have a lifetime.

d) When the lease time reaches zero, the client is disconnected.

b) The lease time expires when its value reaches zero.

e) When the lease time reaches 20, garbage collection is performed.

c) A lease is created for active clients that are referenced out of the application domain.

388. Which of the following statements are true regarding the LeaseTime property that needs to be configured for lifetime management?

[1.5]

a) It defines the time until a c) It defines the time interval to

Page 104: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

lease expires. wait for a lease renewal time.

b) It defines the time the lease is set on a method call if the current lease time has a lower value.

d) It has a default value of 300 seconds.

390. Which of the following are true? [1.5]

a) An exception is not thrown if a client tries to call a method after the lease time of an object is over.

d) In implicit renewal, if the current lease time of an object is more than its RenewOnCallTime value, then it is set to RenewOnCallTime.

b) The lease time for an object can be renewed as an implicit renew.

e) All of the above.

c) In implicit renewal, the lease of an object is automatically done when the client calls a method on the remote object.

391. Which of the following are true regarding explicit renewal? [1.5]

a) The client can specify the new lease time.

d) The Sponsoring() method can be used for renewal.

b) The Renew() method of the ILease interface is used for renewal.

e) All of the above.

c) The ILease interface can be obtained by calling the GetLifetime() method.

392. Which of the following is the default value of the property [1.5]

Page 105: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

LeaseManagerPollTime that is configured for lifetime management?

a) 300 seconds c) 30 seconds

b) 100 seconds d) 10 seconds

393. Which of the following statements, regarding the LeaseManagerPollTime property that needs to be configured for lifetime management, is true?

[1.5]

a) It defines the time until a lease expires.

c) It defines the time interval to wait for a lease renewal time.

b) It defines the time the lease is set on a method call if the current lease time has a lower value.

d) It has a default value of 300 seconds.

394. Which of the following statements are true regarding the passing of objects in remote methods by Marshal by value technique?

[2.0]

a) These classes are serialized through the channel.

c) Their classes are also called as bound classes as they lack data that depends on the application domain.

b) Objects of these classes don’t have a remote identity as the complete object is marshaled through the channel and the object that is serialized to the client is independent from the server object.

395. Which of the following statements are true regarding the marshal by reference technique?

[2.0]

a) It allows a proxy to be returned instead of passing objects.

c) A class derived from ContextBoundObject needs a proxy even in the same application domain

Page 106: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

when context boundaries are crossed.

b) The MarshalByRefObject objects are known as application domain unbound objects.

396. Which of the following statements are true, regarding non-remotable classes?

[2.0]

a) These classes can be used as parameters of remote objects in public methods parameters of remote objects.

c) These classes should be used if the class has a data member that is only valid in the application domain.

b) These classes are bound to the application domain where they are created.

397. Which of the following properties have the default value as 120s for configuring the lifetime management of objects?

[2.0]

a) RenewOnCallTime c) SponsorshipTimeOut

b) LeaseTime d) LeaseManagerPollTime

398. Which of the following statements are true regarding the ISerializable interface?Statement 1: The method GetObjectData() populates a SerializationInfo object with the data needed to serialize the target object.Statement 2: The method GetData() populates SerializationInfo object with the data needed to serialize the target object.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

399. Which of the following statements is true? [2.0]

Page 107: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) For objects that are Marshal By Value, a complete copy of the object is made when the object is passed from one application to another.

c) All of the above.

b) For objects that are Marshal By Reference, a reference to the object is made when passed from one application to another.

400. Which of the following statements are true? [2.0]

a) To renew the lease, Sponsoring can be used.

c) The sponsor defines the lease extension time.

b) The client can create a sponsor that implements the interface ISponsor, but cannot register the sponsor in the leasing services.

d) All of the above.

401. Which of the following statements is true? [2.5]

a) Each application domain contains a lease manager that is responsible for administrating leases in its domain.

d) The leases with the shortest remaining time are stored at the top of the list.

b) If a lease has expired, one or more of the lease's sponsors are invoked where they are given the opportunity to renew the lease.

e) All of the above.

c) If none of the sponsors decides to renew the lease, the lease manager removes the lease and the object is

Page 108: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

garbage collected.

402. Which of the following statements are true? [2.5]

a) Leases implement the ILease interface and store a collection of properties that determine which policies and methods to renew.

d) If the SponsorshipTimeout is not null, the CurrentLeaseTime will be used to determine when the lease should expire.

b) Each time a method is called on the remote object, the lease time is set to the maximum of RenewOnCallTime only.

e) If the CurrentLeaseTime has a value of zero, the lease will not expire.

c) SponsorshipTimeout property value specifies the amount of time to wait for a sponsor to reply before the lease is terminated.

403. Which of the following statements are true? [2.5]

a) The lease manager maintains a list of the sponsors stored in order of increasing sponsorship time.

d) If a sponsor doesn't respond in the SponsorshipTimeOut time span, it will be removed from the list.

b) When a sponsor is needed for renewing the lease's time, one or more sponsors from the bottom of the list are asked to renew the time.

e) An object's lease can be obtained by calling GetLifetimeService(), a static method of the RemotingServices class.

c) The top of the list represents the sponsor that previously requested the largest lease renewal time.

Page 109: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

404. Which of the following statements is/are true regarding the ways to extend the lease period, to keep the object alive in case the client wants to maintain state in the same server object?

[2.5]

a) The server object can set its lease time to infinity, which instructs Remoting not to collect it during garbage collection cycles.

d) If the RenewOnCallTime property is set, then each call to the remote object renews the lease by the amount of time specified by the RenewOnCallTime property.

b) The client can call the GetLifetimeService() method of the class RemotingServices to get the lease of the server object from the lease manager of the Application Domain.

e) All of the above.

c) The client can register a sponsor for the specific lease with the lease manager of the AppDomain.

405. Which of the following statements are true regarding Marshal By Value?

[2.5]

a) Objects are only valid in the application domain where they are created.

c) If the object is marked as Serializable, the object will automatically be serialized, transported from the one application domain to the other, and then deserialized to produce an exact copy of the object in the second application domain.

b) Any attempt to pass the object as a parameter, or to return it as a result will fail unless the object derives from MarshalByRefObject or is marked as Serializable.

d) An object that derives from MarshalByRefObject cannot be marked as Serializable.

Page 110: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

406. The WAP _______ ensures proper flow of data between the wireless networks.

[0.5]

a) Gateway b) Browser

407. The WAP browser does not understand ______ but understands WML. [0.5]

a) WMLS b) HTML

408. _______ emulate cell phones in a PC environment and are used for testing and debugging wml pages.

[0.5]

a) Emulators b) Browsers

409. The Mobile Internet Toolkit is an add-on to the .NET framework, as it does not come along with it by default in the Beta 2 release.

[1.0]

a) True b) False

410. The mobile internet control __________ enables user input. [0.5]

a) <mobile:Label> b) <mobile:TextBox>

411. The mobile Internet control __________ is used to place aUser Interface element and is associated with an event handler which handles the click or custom action.

[1.0]

a) <mobile:Link> c) <mobile:TextArea>

b) <mobile:TextBox> d) <mobile:Command>

412. Which of the following are the drawbacks of the Mobile Internet Toolkit?

[1.0]

a) Less versatility. c) Only HTML 3.2 is currently supported.

Page 111: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) Only WML 1.1 is currently supported.

d) Only WML 1.1, HTML 3.2 and cHTML is currently supported.

413. Which of the following are true regarding the <p> element? [1.0]

a) It is not mandatory if text is to be displayed in WML.

c) It’s align attribute is used to specify the alignment of the text between the <p>…</p> tags.

b) It’s mode attribute can be set to either wrap or nowrap.

d) This align attribute can be set to left, right, or middle.

414. Which of the following statements are true regarding the WAP gateway?

[1.0]

a) It helps to connect devices from the wireless network to the devices and PCs on the Internet.

c) Both A & B

b) It ensures free flow of information between the wired and the wireless environment.

415. Which of the following statements is true regarding WML? [1.0]

a) It is a markup language that adheres to the XML standard.

c) Both a and b

b) It is a scripting language. d) None

416. Which of the following are the sub components of the Mobile Internet toolkit?

[1.0]

a) The Mobile Internet Administrator.

c) The Mobile Internet Designer.

Page 112: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) The Mobile Internet Controls Runtime.

d) Only a and b

417. Which of the following statements are true regarding the attributes that the Link mobile control accepts?

[1.5]

a) NavigateURL property sets or gets the target URL of the link.

d) Visible property indicates whether the control is rendered.

b) URL property sets or gets the target URL of the link.

e) The default value of Visible property is false.

c) Text property sets or gets the text for the control.

418. Which of the following statements are true regarding the attributes of <mobile:TextBox>?

[1.5]

a) Alignment property values can either be Right, Center, or Left only.

d) The default value of the Password property is false.

b) MaxLength property if set to 0, signifies that there is no limit on the length of text.

e) Text property indicates the default text that should appear in the text box.

c) The default value of the Numeric property is true.

419. Which of the following are the benefits of the Mobile Internet Toolkit? [1.5]

a) Mobile Internet Toolkit saves a lot of coding.

c) It does not provide the same look on every mobile device for the same application.

b) The Mobile Internet controls can detect the browser but cannot generate appropriate scripting code.

d) It enables event based mobile web application programming.

Page 113: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

420. Which of the following are the commonly used attributes of the <mobile:Command> control?

[1.5]

a) CommandName property sets/gets the argument that is associated with the command in OnItemCommand.

c) Text property sets or returns the text for the control.

b) CommandArgument property sets/gets the name that identifies the command in OnItemCommand.

d) Visible property sets or returns whether the specified control is rendered or not.

421. Following are the problems of WML?Statement 1: The look and feel of same web application may be different on different devices, although the content maybe the same.Statement 2: There are certain types of WAP browsers that have their own proprietary set of WML extensions, which do not work on all browsers.

[1.5]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

422. Which of the following statements, related with the <card> element, are true?

[1.5]

a) It is used to define contents in a deck.

d) The value in the attribute id can contain a combination of text, numbers and special characters.

b) The attributes id and title are mandatory.

e) The title attribute that provides a title for the card maybe displayed or ignored, depending on the device.

c) Its id attribute helps the application to uniquely identify a card within a particular deck.

Page 114: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

423. The following statements are true regarding the <p> element? (select all that apply)

[1.5]

a) It provides the functionality of a paragraph designator.

c) It is mandatory in <card> element.

b) It does not have an ending element </p>.

d) Without it text cannot be placed directly on a card.

424. Select the layers of the WAP protocol? [2.0]

a) Wireless Application Environment

d) Wireless Datagram Protocol

b) Wireless Session Protocol e) Only c

c) Wireless Transaction Layer Security Protocol

425. Mention 2 statements that are true regarding WML. [2.0]

a) The <a> tag can be used for navigating from a card to another card in a deck.

c) Options or selections can be provided with the <select> and <do> elements.

b) The <anchor> tag cannot be used for navigation between two decks.

d) The <do> element is an empty element.

426. Which of the following are true? [2.0]

a) A mobile control page (.aspx file) can have more than one <mobile:Form> control.

c) Navigation from one mobile control page to another page is not possible through <mobile:Link> control.

b) A <mobile:Form> can have more than one

d) Navigation from one mobile form to another

Page 115: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

<mobile:Link> controls embedded within it.

form within a mobile control page is possible through the <mobile:Link> control.

427. Which of the following are the objectives of WAP? [2.0]

a) To bring Internet content and advanced data services to digital cellular phones and other wireless terminals.

d) To embrace and extend existing standards and technology wherever appropriate.

b) To create a global wireless protocol specification that will work across differing wireless network technologies.

e) All options given

c) To enable the creation of content and applications that scale across a very wide range of bearer networks and device types.

428. Which of the following statements are true regarding a microbrowser? [2.0]

a) It sends the URL request in the form of HTML, which is encoded by the WAP gateway.

c) It is not compatible with all the standard content types available on the Internet.

b) The response to its requests is a “. wml” file which is displayed on it as “decks and cards”.

d) Only b

429. Which of the following statements is true regarding the functionality of the WAP proxy?

[2.0]

a) The protocol gateway translates requests from the WAP protocol stack (WSP, WTP, WTLS, and WDP) to the

c) Both a and b

Page 116: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

WWW protocol stack (HTTP and TCP/IP).

b) The content encoders and decoders translate WAP content into compact encoded formats to reduce the size of data over the network.

d) Only b

430. Which of the following statements are true regarding the features and requirements of the WAP Micro Browser?

[2.0]

a) It requires minimal RAM, ROM, Display, CPU and keys.

c) It does not provide Internet compatibility.

b) It provides carrier with consistent service interface across devices.

d) It enables a wide array of available content and applications.

431. Which of the following statements are not true? [2.5]

a) Unwired Planet developed a micro-browser and a markup language called Html Device Markup Language.

c) The WAP protocol standard is designed and maintained by the WAP forum.

b) Unwired Planet also called as Phone.com, with Ericsson, Nokia and Motorola, and many more companies formed a group called the WAP Forum.

d) The WAP Forum is a consortium of companies that have jointly developed the WAP standard and have presented it as an open protocol for use as a global standard for wireless communication.

432. Which of the following are the requirements of the WAP architecture? [2.5]

a) Optimized for narrow-band bearers with potentially high latency.

d) It does not provide a programming model for telephony services and

Page 117: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

integration.

b) Optimized for efficient use of device resources i.e. low memory or CPU usage or power consumption.

e) Only a & b

c) Provide support for secure applications and communication as well as facilitate network-operator and third party service provisioning.

f) Only b & c

433. Which of the following are true? [2.5]

a) The WAP proxy translates WAP requests to WWW requests thereby allowing the WAP client to submit requests to the web server.

d) If the web server provides WWW content (HTML), the WAP proxy retrieves it directly from the web server.

b) The WAP proxy encodes the responses from the web server into the hexadecimal format understood by the client.

e) If the web server provides WWW content (HTML), a filter is used to translate the WWW content into WAP content by the WAP proxy.

c) If the web server provides WAP content (WML), the WAP proxy retrieves it directly from the web server.

434. Which of the following are true regarding the WAP proxies, gateways and servers?

[2.5]

a) There exists at least two WAP proxy servers between the user agent and the content server.

d) The WAP proxy server is responsible for knowing the languages and character sets that each WAP device understands.

Page 118: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) The Proxy server is used to translate WAP protocols from the user agent into HTTP, to communicate with the content server and vice –versa.

e) Only a

c) The Proxy servers may need to compile dynamically generated WML and WMLScript programs, coming from the content server, before sending to the user agent.

435. Which of the following statements are true regarding WAP? [2.5]

a) Wireless service providers are able to offer a new dimension of service that complements the existing features of their networks, while extending subscriber access to the unbounded creativity of the Web.

d) Subscribers gain real, anytime, anywhere information access with a simple and effective user interface, available on a variety of networks and devices.

b) Handset manufacturers can integrate Microbrowser functionality at minimal cost, as the WAP specification is open and public.

e) All of the options given

c) Application developers gain access to a whole new market of information users, while protecting and leveraging their current investments in Web technology.

436. Which of the following code is relevant for creating a mobile controls page?

[2.5]

a) <%@ Page Inherits= c) <%@ Page Inherits=

Page 119: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

”System.Web.UI.MobileControls.MobilePage” Language=”VB” %> <%@ Register TagPrefix=”mobile” Namespace=”System.Web.UI.Controls” Assembly=” System.Web.MobileControls” %>

”System.Web.UI.MobileControls.MobilePage”Language=”VB” %> <%@ Register TagPrefix=”mobileform” Namespace=”System.Web.UI.MobileControls” Assembly=” System.Web.Mobile” %>

b) <%@ Page Inherits=”System.Web.UI.MobileControlsPage” Language=”VB” %> <%@ Register TagPrefix=”mobile” Namespace=”System.Web.UI.MobileControls” Assembly=” System.Web.Mobile” %>

d) <%@ Page Inherits=”System.Web.UI.MobileControls.MobilePage” Language=”VB” %> <%@ Register TagPrefix=”mobile” Namespace=”System.Web.UI.MobileControls” Assembly=” System.Web.Mobile” %>

437. Consider a mobile control page with a mobile form “Main” having a <mobile:TextBox> control that reads only numeric values. A link that has a text displayed as “Enter” is provided to navigate to the mobile form “Result” within the same page.Which of the following snippets of code need to be used for creating the mobile form “Main” described above?

[2.5]

a) <mobile:Form runat=”server” id=”Main”>Enter Number<mobile:TextBox runat=”server” id=”Num” numeric=”true” />< mobile:Link runat=”server” NavigateURL=”Result” Text=”Enter” SoftkeyLabel=”Enter” />< /mobile:Form >

c) <mobile:Form runat=”server” id=”Main”>Enter Number<mobile:TextBox runat=”server” id=”Num” numeric=”false” />< mobile:Link runat=”server” NavigateURL=”#Result” Text=”Enter” SoftkeyLabel=”Enter” />< /mobile:Form >

b) <mobile:Form id=”Main”>Enter Number

d) <mobile:Form runat=”server” id=”Main”>

Page 120: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

<mobile:TextBox id=”Num” numeric=”true” />< mobile:Link NavigateURL=”#Result” Text=”Enter” SoftkeyLabel=”Enter” />< /mobile:Form >

Enter Number<mobile:TextBox runat=”server” id=”Num” numeric=”true” />< mobile:Link runat=”server” NavigateURL=”#Result” Text=”Enter” SoftkeyLabel=”Enter” /></ mobile:Form >

438. WAP supports more than one image format. [0.5]

a) True b) False

439. The ________ image format is supported by WAP. [0.5]

a) GIF b) WBMP

440. _______ can display JPEG images. [0.5]

a) Mobile Cell Phones b) PDAs

441. The ________ tag can be used to display JPEG images. [0.5]

a) <mobile:Image> b) <mobile:Img>

442. The Mobile Internet Toolkit eases the development of mobile web applications.

[0.5]

a) True b) False

443. PDAs can support upto 800x600 resolution for images. [0.5]

a) True b) False

Page 121: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

444. The <mobile:Calendar> control allows ______ methods forentering a date.

[0.5]

a) Three b) Two

445. The mobile control generates WML along with ________. [0.5]

a) XHTML b) HTML

446. Which of the following are the validation controls provided with the Mobile Internet Toolkit?

[1.0]

a) <mobile:RegularExpressionValidator>

b) <mobile:RegularValidator>

447. Which of the following are the validation controls provided with the Mobile Internet Toolkit?

[1.0]

a) <mobile:CompareExpressionValidator>

b) <mobile:CompareValidator>

448. Which of the following is true regarding the list control? [1.0]

a) It provides users with non-interactive lists of plain text, or links.

c) It allows the user to call a particular telephone number.

b) It is used to display images on a mobile device.

d) It facilitates the user in entering a date.

449. Which of the following is true regarding the Image control? [1.0]

a) It provides users with non-interactive lists of plain text, or links.

c) It allows the user to call a particular telephone number.

Page 122: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

b) It is used to display images on a mobile device.

d) It facilitates the user in entering a date.

450. Statement 1: The <mobile:Phone> control allows the user to call a particular telephone number. Statement 2: When the user interacts with the <mobile:Call> control it initiates a call to the specified number.

[1.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

451. Which of the following statements are true regarding the methods of the Calendar control?Statement 1: It provides a method which gives a conventional way of entering a date in the format MM/DD/YYYY. Statement 2: It provides a method that allows the user to select a month, a week and then the day.

[1.0]

a) Statement 1 is true. c) Statement 2 is true.

b) Statement 1 is false. d) Statement 2 is false.

452. Which of the following are the properties that allow you to change the visual features of mobile controls?

[1.0]

a) BackGroundColor c) Font

b) ForeGroundColor d) Wrapping

453. Which of the following snippets of code is used to display an image file rainy.wbmp?

[1.5]

a) <mobile:img id="img" runat="server" ImageURL="file:///\\apt\Inetpub\wwwroot\myapp\rainy.wbmp"> </mobile:img>

c) <mobile:Image id="img" runat="server" ImageURL="file:///\\apt\Inetpub\wwwroot\myapp\rainy"> </mobile:Image>

b) <mobile:Image id= d) <mobile:Image id=

Page 123: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

"img"ImageURL="file:///\\apt\Inetpub\wwwroot\myapp\rainy.wbmp"> </mobile:Image>

"img" runat="server" ImageURL="file:///\\apt\Inetpub\wwwroot\myapp\rainy.wbmp"> </mobile:Image>

454. Which of the following is used to create a list control that contains the linked items “Aptech”, ”Asset”, ”Arena” and ”International”?

[1.5]

a) <mobile:List id="mylist" runat="server" ItemsAsLinks="false">

<Item Text="Aptech"></Item>

<Item Text="Asset"></Item>

<Item Text="Arena"></Item>

<Item Text="International"></Item> </mobile:List>

c) <mobile:List id="mylist" runat="server" ItemsAsLinks="True">

<Item Text="Aptech"></Item>

<Item Text="Asset"></Item>

<Item Text="Arena"></Item>

<Item Text="International"></Item> </mobile:List>

b) <mobile:List id="mylist" runat="server" ItemsAsLinks="True">

<Item Text="Arena"></Item>

<Item Text="International"></Item> </mobile:List>

d) <mobile:ControlList id="mylist" runat="server" ItemsAsLinks="True">

<Item Text="Aptech"></Item>

<Item Text="Asset"></Item>

<Item Text="Arena"></Item>

<Item Text="International"></Item> </mobile:ControlList>

455. Which of the following is true regarding the attribute DataMember of the <mobile: list > control?

[1.5]

a) It is used when data is bound to the list using a DataSet.

c) It is used to specify whether the list should be Bulleted or Numbered or None.

b) It specifies the Data Source for the list when using data

d) It determines whether to render the list items as links

Page 124: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

binding. or not.

456. Which of the following is true regarding the attribute DataSource of the <mobile: list > control?

[1.5]

a) It is used to specify whether the list should be Bulleted or Numbered or None.

c) It determines whether to render the list items as links or not.

b) It specifies the Data Source for the list when using data binding

d) It specifies the number of items in the list.

457. Which of the following are not true regarding the Smart Device Extensions for Visual Studio.NET?

[1.5]

a) The desktop style applications cannot be developed for mobile devices.

c) Their applications can easily consume XML based Web services making the integration of mobile devices with other systems easy.

b) It enables to create mobile applications for the Pocket PC and future devices based on the next version of the Microsoft Windows CE operating system.

d) Both b and c

458. Which of the following are true regarding the attributes of the control <mobile:Image>?

[1.5]

a) The AlternateText attribute determines the text that is to be displayed in case the image cannot be displayed on the mobile device.

c) The NavigateURL attribute holds the URL to which the image is linked.

b) The ImageReference attribute holds the id of any other <mobile:Image> control containing the image to be displayed.

d) All of the above.

Page 125: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

459. Which of the following is true regarding the attribute Decoration of the <mobile:list > control?

[1.5]

a) It is used when data is bound to the list using a DataSet.

c) It is used to specify whether the list should be Bulleted or Numbered or None.

b) It specifies the Data Source for the list when using data binding.

d) It determines whether to render the list items as links or not.

460. Which of the following statements are not true regarding the attributes of the <mobile:Calendar> control?

[1.5]

a) The attribute FirstDayOfWeek sets the second day of the week to be a Monday

c) The attribute ShowDayHeader set to either true or false, determines whether to show day names or just the dates.

b) The attribute SelectedDate sets/gets the selected date

d) All of the above.

461. Which of the following statements are right? [2.0]

a) <mobile:ObjectList> is used for displaying large volumes of text at run-time.

c) <mobile:TextView> enables to define a list of items where each item is the visual representation of an object.

b) <mobile:Panel> is used as a container for other controls including the other panels.

462. Which of the following statements are true regarding the attributes of the control <mobile:List>?

[2.0]

a) The attribute DataTextField specifies the field to use for

c) Both a and b

Page 126: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

item text values during databinding.

b) The attribute DataValueField specifies the field to use for item value values during databinding.

463. Which of the following statements are true regarding the events of the control <mobile:Calendar>?

[2.0]

a) The attribute VisibleDate is used to set the month that is to be displayed.

c) The default value for the attribute SelectionMode is dayweek.

b) The event OnSelectionChanged occurs when the user selects a different date in the calendar.

d) All of the above.

464. Consider the following statements regarding Wireless Telephony Application?Statement 1: The WTA server is an origin or a gateway server that responds to requests from the WAP client directly. Statement 2: The WTA server is used to provide WAP access to features of the wireless network provider’s telecommunications infrastructure.

[2.0]

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false

465. Which of the following are true regarding the events of the control <mobile:Call>?

[2.0]

a) The attribute AlternateFormat specifies the text to be output to devices incapable of making a phone call.

c) The attribute NavigateURL specifies the target URL for non-calling devices.

b) The attribute AlternateURL d) All of the above.

Page 127: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

specifies the target URL for non-calling devices.

466. Which of the following statements is true regarding the upcoming technology HSCSD?

[2.0]

a) It is a technology being implemented in some GSM networks which makes it possible to use several time slots simultaneously when sending or receiving data.

c) It is very expensive for the user as he needs to pay for the multiple time slots.

b) It increases the data transmission speed.

d) All of the above.

467. Which of the following statements are true regarding the upcoming technology EDGE?

[2.0]

a) It is a faster version of GSM. c) It enables the delivery of Multimedia content and other broadband applications to mobile phones and computer users.

b) It has been designed to deliver data rates of upto 9.6 Kbps.

d) The EDGE standard is built on the existing GSM standard, using the same TDMA frame structure and the existing cell arrangements.

468. Which of the following statements are true? [2.5]

a) Cellular systems are mainly Circuit Switched with connections always dependant on Circuit availability.

c) Packet switched connection using the Internet Protocol (IP) means that there is no virtual connection available to any other end point in the network.

b) Packet switched connection d) Packet switched

Page 128: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

using the Internet Protocol (IP) means that a virtual connection is always available to any other end point in the network.

connection makes it possible to provide new services such as alternative billing methods like, pay per bit, pat per session, flat rate, asymmetric bandwidth and others.

469. Consider the wml deck that has a card with an id “main”. The “main” card displays a table with one row and two columns, with each cell containing an image. The image files are rainy.wbmp and cloudy.wbmp.Which of the following code satisfies the above requirement?

[2.5]

a) <wml> <card ><p>Table <table align="LC"> <tr><td><img alt="Picture" src="rainy.wbmp" /></td> <td><img alt="Picture" src="cloudy.wbmp" /></td> </tr></table></p></card></wml>

c) <wml> <card id="main"><p>Table <table columns="2" align="LC"> <tr><td><img alternate="Picture" src="rainy.wbmp" /></td> <td><img alternate="Picture" src="cloudy.wbmp" /></td> </tr></table></p></card></wml>

b) <wml> <card id="main"><p>Table <table columns="2" rows =“1” align="LC"> <tr><td><img alt="Picture" src="rainy.wbmp" /></td> <td><img alt="Picture" src="cloudy.wbmp" /></td> </tr></table></p></card></wml>

d) <wml> <card id="main"><p>Table <table columns="2" align="LC"> <tr><td><img alt="Picture" src="rainy.wbmp" /></td> <td><img alt="Picture" src="cloudy.wbmp" /></td> </tr></table></p></card></wml>

Page 129: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

470. Which of the following statements are true regarding the control <mobile:Image>?

[2.5]

a) The Mobile Internet Toolkit need not require adding filters to the web.config file.

c) To refer to the filters in the web.config file, the <DeviceSpecific> element is placed inside the <mobile:Image> element.

b) The web.config file consisting of filters is to be checked against the device capabilities stored in machine.config file.

d) The <DeviceSpecific> element can contain more than one <Choice> elements that allow you to make modifications to the <mobile:Image> control, based on the specified filters.

Page 130: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

471. Which of the following statements is true regarding the design objectives of GPRS technology?

[2.5]

a) It uses packet-switched resource allocation, that is, resources are allocated only when data is to be sent or received.

c) Efficient delivery of SMS’s over the GPRS radio interface.

b) Flexible channel allocation: one to eight time slots and available resources are shared by active users.

d) All of the above.

472. Which of the following statements are true regarding GPRS technology?

[2.5]

a) No Hardware change is needed in Base Transceiver Station of GSM.

d) High throughput over the air and needs longer access time to network.

b) The GPRS network is scalable.

e) All of the above.

c) Need to support GPRS is only through mobile.

473. The .Net framework security policy model provides which of the following levels of policies

[2.0]

a) Enterprise c) Machine

b) User d) Data

474. The .Net framework offers a mechanism called ______________ that assists us in protecting application systems.

[1.5]

a) Code Access Security c) Code Security

b) Access Code Security d) Access Security

Page 131: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

475. Select commonly used security measures [2.0]

a) Security Policies c) Cryptography

b) Roles and Permissions d) Code Security

476. Code Access Security is based on 2 concepts : [2.0]

a) Group Permissions c) Code Permissions

b) Code Groups d) Permissions

477. Which are the two main types of cryptographic algorithms [2.0]

a) Security c) Symmetric

b) Systematic d) Asymmetric

478. We can secure our ASP .Net application by performing the following actions

[2.0]

a) Authentication c) Impersonation

b) Authorization d) Secure code

479. The .Net framework security model defines a class called __________ to take care of security related runtime errors

[1.5]

a) Exception c) SecurityException

b) SecurityExceptions d) SecureException

480. Statement 1: File Authorization is performed by the FileAuthorizationModule class.Statement 2: URLAuthorization class performs URL authorization.

[2.0]

Page 132: Web Services (WSDL, SOAP & UDDI) – Session 1 · Web viewStatement 1: Modules written in different languages like C#, VB.NET and JScript.NET can be clubbed into a single assembly

a) Statement 1 is true c) Statement 2 is true

b) Statement 1 is false d) Statement 2 is false