Wednesday, 25 November 2015

Accp (pro) HDSE I Comprehensive Exam Part 1

1.   ___________ is phrase for complications that arise while working dynamic link library [1.0]
a.    DLL hell
b.      DLL API
c.       DLL HLL
d.      DLL Error
2.   C# programming language provides the users with an altogether separate namespace called ___________ for file and stream handling? [1.0]
a.      System.UI
b.      System.API
c.    System.IO
d.      System.InputOutput 
3.   The statics methods of the_ _______ class do a security check on all methods? [1.0]
a.    File
b.      FileInfo
c.       Directory
d.      DirectoryInfo
4.   If a part of code is accessed by the multiple of threads at the same time it is known as a__________ section [1.0]
a.    Critical
b.      immutable
c.       mutable
d.      thread-safe
5.   The____________ property of Thread class defines the state of a thread during it execution [1.0]
a.      Threadexcute
b.      Thread
c.       Threadstatus
d.    ThreadState
6.   A newly created thread originated from the __________ state and remain in that state until the __________ method is invoked [1.0]
a.      Running, Start
b.      WaitSleepJoin, Join
c.       Start, Join
d.    Unstarted, Start
7.   A _________ object can be requested by both, the COM and .NET clients, at the same time [1.0]
a.    managed
b.      reference
c.       runtime
d.      unmanaged
8.   _________ is the tool using which assemblies can be deployed, uninstalled, manipulated and viewed.
a.    gacutil.exe
b.      gac.exe
c.       assemblytool.exe
d.      deploy.exe
9.   Which one of the following statements is not a restriction for declaring conditional methods?
a.    This method must be an implementation of an interface method
10.                Can you identify the correct order of steps to create to resource file?
a.      Move to a drive on the system where the .txt file is present
b.      Type Reagan filename.txt
c.       Open Visual studio 2005 command prompt
d.      Create text file with required date and save it in the local system

                                                              i.      a.1, 2, 3, 4
                                                            ii.      b. 2, 4, 1, 3
                                                          iii.      c. 3, 1, 4, 2
                                      iv.    4, 3, 1, 2

11.                Which of the following statements about the methods of File are correct?
a.    The Create method is used to create a file in the specified class
b.    The Delete method is used to delete a file in the specified class
c.    The GetAttributes method is used to get the file attributes of the file
d.      The GetCreationTime method is used to verify whethera file with the specified name exists in the specified path

12.                Can you identify the correct order of steps to use components directly from .NET
a.      Select the component from the list
b.      Click the COM tab in the Add Reference dialog box
c.       Add a reference to the project using project “Add Reference”
d.      Click OK to create RCWs for the selected type library object

                                                              i.      1, 2, 3, 4
                                                            ii.      2, 3, 4, 1
                                      iii.    3, 2, 1, 4
                                                           iv.      4, 3, 2, 1

13.                Can you identify the two ways by which managed code can directly unmanaged code? [1.5]
a.    Call a function exported directly from a DLL
b.      Call interface exported directly from a DLL
c.       Call a function on a COM object
d.    Call an interface method on a COM object

14.               The ____________ class presents an attributes and its value in DTD while the ____________ class defines a reader that provides forward-only access to XML data.
a.    XmlAttribute, XmlReader
b.      XmlDocument, XmlWriter
c.       XmlReader, XmlAttribute
d.      XmlWriter, XmlDocument
15.                Can you identify the correct of steps to create a multi-file assembly using .NET?
a.      Create a source code
b.      Save and compile the source code into .net module
c.       Use csc to assemble the modules and main resource file into a single assembly
d.      Create a main source file
                                                              i.      1, 2, 3, 4
                                                            ii.      1, 2, 4, 3
                                      iii.    1, 4, 3, 2
                                                           iv.      4, 1, 3, 2 
16.                Can you identify the correct of steps to add a resource file to a project? [1.5]
a.      Open Visual Studio 2005 IDE
b.      Create a project and right click on a project name
c.       Select a resource file, click Add and then set the Build Action property of the resource file to Embedded Resource
d.      Select Add from the menu and then Existing item option
                                                              i.      1, 2, 3, 4
                                       ii.    1, 2, 4, 3
                                                          iii.      1, 4, 3, 2
                                                           iv.      4, 1, 3, 2
17.                The C# ___________attribute allows you to control whether a method should be called.
a.      built-in
b.      custom
c.    Conditional
d.      DLLimport
18.                The C#____________ attribute allows you to invoke unmanaged code in a C program.
a.      built-in
b.      custom
c.       Conditional
d.    DLLimport
19.                _________is used only to generate and register a type library with COM.
a.      Regasm.exe
b.    Regsm.exe
c.       TLbexp.exe
d.      TLbimp.exe

20.                The two important methods in Memberinfo class are ___________ .
a.      GetAttributes() and GetType()
b.    GetCustomAttributes() and GetType()
c.       Get() and GetType()
d.      CustomAttributes() and GetType()
21.                Which of the following statements about System.IO namespace class are incorrect?
a.    The BinaryReader class reads primitive data types as binary values in a specific encoding
b.    The DirectoryInfo Class provides methods for creating, moving and enumerating through directories and sub-directories
c.       The File class contains methods that are common to file and directory manipulation.
d.      The Stream represents a writer that can write a sequence of characters.

22.                Can you identify the correct order of steps followed when Invoke calls an unmanaged function?
a.      The address of the function is located.
b.      The function arguments are pushed onto the stack.
c.       The DLL containing the function is located.
d.      The DLL is loaded into the memory.
                                                              i.      1,2,3,4
                                                            ii.      1,3,2,4
                                                          iii.      3,2,1,4
                                      iv.    3,4,1,2
23.                Which one of the following correctly represents the four parts contained in an assembly?
a.      Assembly Name, Type Metadata, MSIL Code and Resources.
b.    Assembly Metadata, Type Metadata, MSIL Code and Resources
c.       Class Name, Type Metadata, MSIL Code and Resources.
d.      Type Metadata, MSIL Code, EXE files and Resources.
24.               _________can be implied simply as a collection of information existing in binary form in a Portable Executable file or a .NET assembly.
a.    Assembly Metadata
b.      Type Metadata
c.       MSIL Code
d.      Resources.
25.               The______ class in the System.IO namespace contains methods that are common to file and directory manipulation.
a.    FileSystemInfo
b.      DirectoryInfo
c.       FileInfo
d.      Stream
26.               The___ method of File class is used when you want to delete a file.
a.    Delete() with the path of the file specified as a parameter
b.      Remove
c.       Delete() without any parameters.
d.      Erase
27.               Can you rearrange the steps to simulate the process the compiler uses to determine how to apply the attribute?
a.      Checks for a named parameter.
b.      Sets the field or property to a named parameter value.
c.       Searches for the attribute class.
d.      Checks for a constructor in the attribute
e.      Creates an instance of the object.
f.        Checks the scope of the attribute.

                                                              i.      1,2,3,4,5,6,7
                                                            ii.      2,4,5,6,7,1,3
                                      iii.    3,6,4,5,1,2,7
                                                           iv.      7,6,3,4,5,1,2
28.               The____ class provides static methods for the creation, copying, deletion, moving and opening of files.
a.      BinaryReader
b.      BinaryWriter
c.    File
d.      FileInfo
29.               Which of the following xpath node type each XML document has a single document node located at the root of the xpath tree?
a.      Document nodes
b.    Element nodes
c.       Attribute nodes
d.      None of the above
30.               Which of the following node type contain information about tha name and value of the node as well as parent node?
a.      Comment node
b.    Text node
c.       Namespace node
d.      Document nodes
31.               The.NET  frame work provide the xslcompiled transform  class for loading XML document, compiling  style sheet  performing transformation by executing XSL style sheet, and generating output?
a.    True
b.      False
32.               Which of the following isolation level have phantom and pessimistic concurrency control?
a.      Read uncommitted
b.      Repeatable read
c.    Serializable
d.      None of the above
33.               CLR integration enables you to create which if the following types of managed object in any NET frame work language?
a.      Stored procedure
b.      Triggers
c.       User define type /function
d.      Aggregates
                                                              i.      1,2,3
                                                            ii.      2,3,4
                                                          iii.      1,2,4
                                      iv.    1,2,3,4
34.               Which of the following are the benefit of creating managed code object?
a.      Enhanced programing model
b.      Enhanced safety and security
c.       Common development environment
d.      Performance and scalability
                                                              i.      1,2,3
                                                            ii.      2,3,4
                                                          iii.      1,2,4

                                      iv.    1,2,3,4

No comments:

Post a Comment