Upwork ASP.NET 3.5 USING C# TEST 2016

Hello Freelancer, Welcome to allupworktestanswers.com Here to get the ASP.NET 3.5 USING C# TEST of Latest version 2016. We are ready here to provide your desire upwork test answer. We already tested all exam test information Available include on here. So Dear, Why Late? Read the below full exam test and get more information from our website.
Upwork ASP.NET 3.5 USING C# TEST 2016

 1. Which of the following does using Initializer Syntax with a collection as shown below require?
CollectionClass<int> numbers = new CollectionClass<int> { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
Answers:
  1. Collection Class must implement System.Collections.Generic.ICollection<T>
  2. Collection Class must implement System.Collections.Generic.IList<T>
  3. Each of the Items in the Initializer List will be passed to the Add<T>(T item) method
2. Which of the following types guarantee atomic reads and writes?
Answers:
  1. int
  2. double
  3. long
  4. float
3. Which of the following accurately describes the class structure when implementing an ASP.Net page which uses the CodeFile attribute?
Answers:
  1. The actual instantiated class is dynamically created and has a base class defined in the CodeFile.
  2. The actual instantiated class is dynamically created and has a member representing the class defined in the CodeFile.
  3. The actual instantiated class is dynamically created and is a co-class of the class defined in the CodeFile.
4. Which of the following does Event Bubbling allow composite controls to perform?
Answers:
  1. Propagate container related events to the child controls.
  2. Propagate child events up to control hierarchy
  3. Distribute events between peer child controls.
  4. Translate control unhandled control events into exceptions.
5. With which of the following are Declarative Databinding expressions delimited?
Answers:
  1. <%# %>
  2. <%– –%>
  3. <!– –>
  4. <# >
6. Which of the following are true of using ADO.NET DataSets and DataTables?
Answers:
  1. The DataSets and DataTables objects requires continuous connection to the database
  2. All tables in a dataset must come from the same database
  3. A given instance of a DataTable can be in only one DataSet
  4. Content from multiple DataSets can easily be combined into a single DataSet that contains the net result of all changes
7. Which of the following controls allows the use of XSL to transform XML content into formatted content?
Answers:
  1. System.Web.UI.WebControls.Xml
  2. System.Web.UI.WebControls.Xslt
  3. System.Web.UI.WebControls.Substitution
  4. System.Web.UI.WebControls.Transform
8. The following are the two statements regarding the DataRow from the DataRowCollection of a DataTable
Statement X: Use the DataRowCollection.Remove method to immediately delete the row.
Statement Y: Use the DataRow.Delete method to mark the row for deletion when DataRow.AcceptChanges is called.
Answers:
  1. Statement X is correct and Statement Y is incorrect
  2. Statement X is incorrect and Statement Y is correct
  3. Both Statements X, Y are correct
  4. Both Statements X, Y are incorrect
9. Which of the following can be used to preserve application state information?
Answers:
  1. ApplicationState
  2. SessionState
  3. ViewState
  4. All of the above
10. When using asynchronous partial updates with an UpdatePanel, which of the following are true?
Answers:
  1. Only the UpdatePanel and any child controls go through the server lifecycle.
  2. The entire page always goes through the entire lifecycle.
  3. Only the UpdatePanel which initiated the Postback and its child controls can provide updated information.
  4. UpdatePanels can not be used with Master Pages.
11. Which of the following are required to be true by objects which are going to be used as keys in a System.Collections.HashTable?
Answers:
  1. They must handle case-sensitivity identically in both the GetHashCode() and Equals() methods.
  2. Key objects must be immutable for the duration they are used within a HashTable.
  3. Get HashCode() must be overridden to provide the same result, given the same parameters, regardless of reference equality unless the HashTable constructor is provided with an IEqualityComparer parameter.
  4. Each Element in a HashTable is stored as a Key/Value pair of the type System.Collections.DictionaryElement
  5. All of the above
12. Which of the following are true regarding the System.Collections.Generic.HashSet<T> class?
Answers:
  1. HashSet is an unordered collection.
  2. The default EqualityComparer checks whether the element supplied to the HashSet is unique or not.
  3. HashSet provides functionality for “conceptual sets” where the rules for membership can be specified without actually creating all of the items.
13. Which of the following is not a characteristic, that a Query expression should have?
Answers:
  1. It must contain a from clause
  2. It must begin with a select clause
  3. It can end with a group clause
14. Which of the following is false about declarative attributes?
Answers:
  1. They must be inherited from the System.Attribute.
  2. Attribute classes may be restricted to be applied only to application element types.
  3. By default, a given attribute may be applied multiple times to the same application element.
15. When using a JavaScript timer control in conjunction with UpdatePanels, which of the following statements are true?
Answers:
  1. The interval will never restart before the page postback is complete.
  2. The timer control must be located outside of the UpdatePanel
  3. If the timer expiration triggers a postback while a previous postback is in progress, the first postback is canceled.
  4. The timer must always be specified as a trigger for the updatepanel which is to be update when the interval expires.
16. What is the proper declaration of a method which will handle the following event?
Class MyClass
{
public event EventHandler<MyArgs> MyEvent;
}
Answers:
  1. public void A_MyEvent(object sender, MyArgs e) { }
  2. public void A_MyEvent(object sender, EventArgs e) { }
  3. public void A_MyEvent(MyArgs e) { }
17. Which of the following is/are applicable while using Secure Socket Level communications?
Answers:
  1. A certificate must be installed on the server.
  2. The certificate must match the web address to prevent a browser warning or error
  3. The certificate must be issued by an authority recognized by the client computer to prevent a browser warning or error
  4. All of the above
18. Which of the following is false about System.GC under version 3.5 of the .NET Framework?
Answers:
  1. You can request that the garbage collector processes a generation if it determines that it is appropriate at specific points in your code
  2. You can control the intrusiveness of the garbage collector (how often it performs collections) while your program is running
  3. You can control the intrusiveness of the garbage collector (how often it performs collections) only during application initialization
19. Where should an instance of an object which provides services to all users be stored?
Answers:
  1. ApplicationState
  2. SessionState
  3. ViewState
  4. None of the above
20. When using an automatic property, which of the following statements is true?
Answers:
  1. The compiler generates a backing field that is completely inaccessible from the application code.
  2. The compiler generates a backing field that is accessible via reflection.
  3. The compiler generates a code that will store the information separately from the instance to ensure its security.
21. The output generated by the following code will be:
string t = @”ThisIsaTest”;
Response.Write(t);
Answers:
  1. ThisIsaTest
  2. ThisIsaTest
  3. It will give a compilation error: Unrecognized escape sequence
22. Which of the following statements are applicable in LINQ to SQL?
Answers:
  1. It is pure Object Relational (O/R) model.
  2. It is a set of enhancements to the DataSet and DataTable classes.
  3. It requires the use of SQLServer as the database.
  4. Because LINQ is based on Queries, it can not be used to modify the data in the database.
23. Which of the following attributes of the ProcessModel element of the Machine.Config file, is used to specify the level of authentication for DCOM security?
Answers:
  1. comAuthenticationLevel
  2. comImpersonationLevel
  3. maxIoThreads
  4. requestQueueLimit
24. With which class is the task of mapping a specific point in time into units such as weeks, months, and years accomplished?
Answers:
  1. System.Globalization.CultureInfo
  2. System.Globalization.Calendar
  3. System.DateTime
25. Which of the following are common methods of supplying “Help” information to an ASP.NET application?
Answers:
  1. Setting the ToolTip property of a control to a string containing the information.
  2. using the open method of the browser window object to open a new browser window and display a help related ASP.NET page
  3. Using the showHelp method of the browser window object to display a topic from a compiled help file (.chm).
  4. All of the above
26. By which of the following can the .NET class methods be included in .aspx files?
Answers:
  1. Including .Net code within the script element with the runat attribute set to server
  2. Including .Net code within the code element
  3. Including .Net code using the @code directive on the page
  4. Including .Net code within the execute attribute of the individual control
27. Which of the following is not an unboxing conversion?
Answers:
  1. void Sample1(object o) { int i = (int)o; }
  2. void Sample1(ValueType vt) { int i = (int)vt; }
  3. enum E { Hello, World} void Sample1(System.Enum et) { E e = (E) et; }
  4. class C { public int Value { get; set; } } void Sample1(C vt) { int i = vt.Value; }
28. Which of the following can be used to control caching within an ASP.NET application?
Answers:
  1. Using the @OutputCache directive in the .aspx file.
  2. Setting the HttpCachePolicy of the Cache property inside the Response object.
  3. Using the Cache property of the Page Object.
  4. All of the above
29. What will be the impact of using implicitly typed local variables as in the following example?
var sample = “Hello World”;
Answers:
  1. The actual type is determined at compilation time, and has no impact on the runtime
  2. The actual type is determined at runtime, and late binding takes effect
  3. “var” itself is a specific type defined by the framework, and no special binding takes place
30. The earliest event in which all viewstate information has been restored is:
Answers:
  1. Init
  2. PreLoad
  3. Load
  4. Render
31. Which of the following items are recommended when using XML comments to generate documentation?
Answers:
  1. <exception>
  2. <code>
  3. <summary>
  4. All of the above
32. Which of the following conditions can trigger the automatic recycling of an ASP.NET application hosted in IIS?
Answers:
  1. A specific number of requests to the application process.
  2. A percentage of physical memory utilized by the process.
  3. A specific time interval
  4. All of the above
33. To which of the following do automatic properties refer?
Answers:
  1. You declare (explicitly or implicitly) the accessibility of the property and get and set accessors, but do not provide any implementation or backing field
  2. You attribute a member field so that the compiler will generate get and set accessors
  3. The compiler creates properties for your class based on class level attributes
  4. They are properties which are automatically invoked as part of the object construction process
34. Which of the following are true regarding System.Web.Mail and System.Net.Mail namespaces?
Answers:
  1. System.Web.Mail is not supported under version 3.5 of the Framework
  2. System.Web.Mail is deprecated under version 3.5 of the Framework, and it is officially recommended that System.Net.Mail be used.
  3. System.Web.Mail is the preferred solution when using IIS hosted applications
  4. There are no functional differences; the items were moved to a new namespace to better reflect their applicability
35. Which of the following differentiates a UserControl from a Custom Server control?
Answers:
  1. UserControl can directly express rendering information via markup; a Custom Server control can not.
  2. UserControl does not require the use of the @Register directive; a Custom Server control does require it.
  3. UserControl can make use of script based validation; a Custom Server control can not.
  4. UserControl can represent complete compositate hierarchy; a Custom Server control can not.
36. Which of the following is/are true regarding validation in an ASP.NET application?
Answers:
  1. Server validation can be used alongside with client side validation.
  2. All data posted on Server, should be validated.
  3. Client Side validation typically provides a faster response (feedback) time than server validation.
  4. All of the above
37. When using Cascading Style Sheets (CSS) to format output, which of the following is/are true?
Answers:
  1. Styles can be applied to all elements having the same CSS Class attribute
  2. Styles can be applied to specific elements based on their ID attribute
  3. Styles can be applied to elements based on their position in a hierarchy
  4. Styles can be used to invoke script based code
  5. All of the above
38. The following are two statements related to System.DateTimeOffset namespace.
Statement X: DateTimeOffset values can be converted to DateTime values and vice versa.
Statement Y: DateTimeOffset does not supports arithmetical operations
Answers:
  1. Statement X is incorrect and Statement Y is correct
  2. Statement X is correct and Statement Y is incorrect
  3. Both Statements X, Y are correct
  4. Both Statements X, Y are incorrect
39. Which of the following statements is false about Passport Authentication?
Answers:
  1. The Passport SDK must be installed.
  2. Passport authentication requires a network path between the Client and the Microsoft Passport Server
  3. Passport Authentication provides persistent authentication across sessions
40. When using a DataReader to access the results of a Database operation, which of the following is true?
Answers:
  1. The DataReader provides a cursor that can be used to move forward and backwards through the result.
  2. The DataReader provides random access capabilities on the result.
  3. The DataReader can provide the Schema information of the result to the application code.
41. In which file are Predefined Client Side Validation Scripts defined?
Answers:
  1. WebUIValidation.js
  2. ClientValidation.js
  3. AspNetValidation.js
  4. USerValidation.js
42. Which directive allows the utilization of a custom web control in an ASP.NET page?
Answers:
  1. @Register
  2. @Include
  3. @Control
  4. @Import
43. Which of the following are true about System.Security.Cryptography under version 3.5 of the framework?
Answers:
  1. Support is provided for the “Suite B” set of cryptographic algorithms as specified by the National Security Agency (NSA).
  2. Cryptography Next Generation (CNG) classes are supported on XP and Vista systems.
  3. The System.Security.Cryptography.AesManaged class allows custom block size, iteration counts and feedback modes to support any Rijndael based encryption.
44. In order to enable AJAX Functionality, which control is placed on the page?
Answers:
  1. asp:ScriptManager
  2. asp:AjaxManager
  3. asp:PageManager
  4. asp:ClientScriptManager
45. Determining the availability of sufficient memory for an operation can be accomplished by:
Answers:
  1. creating an instance of System.Runtime.MemoryFailPoint and monitoring for an InsufficientMemoryException
  2. creating an instance of System.Runtime.MemoryFailPoint and monitoring for an OutOfMemoryException
  3. There is no supported application level means to determine if a specific amount of memory is available.
46. Custom non-fatal exceptions should be derived from:
Answers:
  1. ApplicationException
  2. DataMisalignedException
  3. ExecutionEngineException
  4. SystemException
47. Which of the following events should be used for assigning a Theme dynamically to a page?
Answers:
  1. PreInit
  2. Init
  3. PreLoad
  4. PreRender
  5. Render
48. Which of the following are performed to fully debug an ASP.NET Application running on the same machine as the debugger?
Answers:
  1. Enabling debug information in the .NET Assembly
  2. Setting the debug attribute of the compilation element to true in the web.config file.
  3. Enabling ASP.NET debugging in the IIS metabase.
49. Which of the following is true about C# generics?
Answers:
  1. C# allows non-type template parameters
  2. C# supports explicit specialization
  3. C# allows the type parameter to be used as the base class for the generic type
  4. C# enforces that all codes are valid for all types of parameters
50. Which of the following are the goals of the Windows Communciation Foundation?
Answers:
  1. Bringing various existing communication technologies into a unified environment.
  2. Cross vendor/platform communication.
  3. Support for asynchronous communications.
  4. Support for distributed applications based on technologies such as MSMQ and/or COM+
  5. All of the above
51. The rights of which Windows Account does anonymous Web Site access use by default?
Answers:
  1. Administrator
  2. IUSER_MachineName (where the MachineName is the actual computer name)
  3. ASPNET
  4. Guest
52. Which of the following can one use to detect the user’s current language?
Answers:
  1. Examining the UserLanguages property of the current Request object.
  2. Examining the CurrentCulture property of the current Request object.
  3. Examining the Language property of the current Page object.
53. Which of the following are included in the advantages of Lambda Expressions over Anonymous methods?
Answers:
  1. More concise syntax
  2. The types for a Lambda Expression may be omitted
  3. The body of an Anonymous method can not be an expression
  4. Lambda Expressions permit deferred type inference, that anonymous methods do not
  5. All of the above
54. Which of the following is/are true regarding the use of Authentication to control access to the HTML file (.htm or .html)?
Answers:
  1. ASP.NET authentication handles these by default in a manner equivalent to .aspx pages
  2. ASP.NET authentication can be associated with these extensions using aspnet_isapi.dll in IIS 6.0, for the appropriate directory
  3. ASP.NET authentication cannot be used for this purpose
55. Which of the following are true about Nullable types?
Answers:
  1. A Nullable type is a reference type.
  2. An implicit conversion exists from any non-nullable value type to a nullable form of that type.
  3. A predefined conversion from the nullable type S? to the nullable type T? exists if there is a predefined conversion from the non-nullable type S to the non-nullable type T
56. The default number of threads per processor in the System.Threading.ThreadPool class under version 3.5 of the Framwork is:
Answers:
  1. 1
  2. 25
  3. 250
  4. 100
  5. 500
57. Where should information about a control created at design time be stored?
Answers:
  1. ApplicationState
  2. SessionState
  3. ViewState
  4. None of the above
58. Given the code below, which items will cause a compilation error?
static void F1(params int [] y)
{
}
static void Sample()
{
int [] j = new Int32[3];
List k = new List();
// ANSWER GOES HERE
}
Answers:
  1. F1(j);
  2. F1(k);
  3. F1(1, 2, 3);
  4. F1(new [] {1,2,3})
  5. None of the above
59. In which of the following events, the final changes to the contents of the page or its controls could be made.
Answers:
  • Load
  • LoadComplete
  • PreRender
  • Init
60. Which of the following is used to remove a cookie from a client machine?
Answers:
  • Remove the cookie from the System.Web.UI.Page.Request.Cookies collection.
  • Remove the cookie from the System.Web.UI.Page.Request.Browser.Cookies collection.
  • Set the Expires property to DateTime.Now for a cookie in the Web.UI.Page.Response.Cookies
  • Remove the cookie from the System.Web.UI.Page.Response.Cookies collection.
61. When Windows Communication Foundation is used to develop a Web Service, which of the following are supported?
Answers:
  1. WS-Addressing
  2. WS-MetadataExchange
  3. WS-Security
  4. WS-Atomic Transaction
  5. All of the above
62. To which contract is the SessionMode property to disallow, require, or permit applied when Windows Communication Foundation is used?
Answers:
  1. ServiceContract
  2. OperationContract
  3. DataContract
  4. MessageContract
63. Via which of the following is ViewState maintained by default?
Answers:
  1. A hidden variable within the page that is included with each round tip.
  2. A cookie which resides on the client�s computer
  3. A server side in-process memory cache
  4. Instance member variables of the Page class
64. Which of the following are true about Extension methods.
Answers:
  1. They can be declared either static or instance members
  2. They must be declared in the same assembly (but may be in different source files)
  3. Extension methods can be used to override existing instance methods
  4. Extension methods with the same signature for the same class may be declared in multiple namespaces without causing compilation errors
65. In order to use the AJAX AuthenticationService class, which of the following must be true?
Answers:
  1. It must be enabled in the web.config of the ASP.Net application.
  2. Forms Authentication must be enabled in the web.config of the ASP.Net Application
  3. Cookies must be enabled in the browser
  4. A redirection url must be supplied for successful login.

Finally no more words require about the ASP.NET 3.5 USING C# TEST  information in this session of this content. If you are require knowing more, Please ask to us via our contact us form or comment box. Please make sure that, you don’t send Personal information via the Comment box.  Thank you very mutch for being with us.

1 comments: