BTNB quiz5 logging, debugging

32 1.6K 1
BTNB quiz5 logging, debugging

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

uestion 1 of 20 0.0 5.0 Points What are Validation Annotations? A. These attributes provide clientside validation, and the framework also supports clientside validation when you use one of the attributes on a model property. You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range. B. These attributes provide serverside validation, and the framework also supports serverside validation when you use one of the attributes on a model property. You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range. C. These attributes provide serverside validation, and the framework also supports clientside validation when you use one of the attributes on a model property. You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range. Question 2 of 20 5.0 5.0 Points Use of NuGet to deliver software and manage dependencies throughout the platform is new feature of A. ASP.NET MVC 3 B. ASP.NET MVC 2 C. ASP.NET MVC 4

Part of - Question of 20 45.0/ 50.0 Points 5.0/ 5.0 Points What are the new features of MVC 3? A Introduction of UI helpers with automatic scaffolding with customizable templates B Mobile project template using jQuery Mobile C Improved model validation Question of 20 5.0/ 5.0 Points ASP.NET MVC has support for Multiple View Engines A B Question of 20 Which add dynamic property in mvc 3? 5.0/ 5.0 Points A ViewData B ViewState C TempData D ViewBag Question of 20 5.0/ 5.0 Points The Razor view engine is new feature of which MVC version? A MVC B MVC C MVC Question of 20 ASP.NET MVC introduced a new ActionResult called HttpNotFoundResult 0.0/ 5.0 Points A B Question of 20 5.0/ 5.0 Points What is correct for description of ViewData? A is a dynamic property that takes advantage of the new dynamic features in C# 4.0 B doesn’t require typecasting for complex data type C ViewData is a dictionary of objects that is derived from ViewDataDictionary class and accessible using strings as keys Question of 20 Which is the correct code to get the Name? A @foreach (var item in items) { Item @item.Name. } 5.0/ 5.0 Points B foreach (var item in items) { Item @item.Name. } C @foreach (var item in items) { Item item.Name. } Question of 20 5.0/ 5.0 Points What are the file extensions for razor views? (C# language) A .aspx B .cshtml C .asp Question of 20 Can we use ASPX view engine in latest versions of MVC? 5.0/ 5.0 Points True False Question 10 of 20 5.0/ 5.0 Points Which is the correct of Razor Syntax? A @ B %% C $ Part of - Part 38.75/ 50.0 Points Question 11 of 20 5.0/ 5.0 Points Which object of ADO.NET has the best performance for retrieving the data A Dataadapter B DataSet C Data Provider D DataReader Question 12 of 20 5.0/ 5.0 Points What must your ASP code have if you are using the DSN method of connecting? A Both B Connection object C Connection string Question 13 of 20 Choose valid operations of DataSet object: A.ReadXml 0.0/ 5.0 Points B.ReadBinary C.Copy D.WriteXml Question 14 of 20 5.0/ 5.0 Points When we need to retrieve only a single value from the Database,which Method is efficient A ExecuteReader() B ExecuteScalar() C ExecuteXmlReader() D ExecuteNonQuery() Question 15 of 20 Permistic concurency means 0.0/ 5.0 Points A … control locks resources as they are required, for the duration of a transaction Unless deadlocks occur, a transaction is assured of successful completion B control works on the assumption that resource conflicts between multiple users are unlikely (but not impossible), and allows transactions to execute without locking any resources Only when attempting to change data are resources checked to determine if any conflicts have occurred If a conflict occurs, the application must read the data and attempt the change again C ….whatever data modification was made last gets written to the database Question 16 of 20 What are the benefit of typed dataset A.XML Support B.Designer support C.Strongly type D.Rapid application development 3.75/ 5.0 Points Question 17 of 20 5.0/ 5.0 Points What is the sequential procedure in working with databases? A Connection object, connection string, close connection object, close connection string B Connection object, connection string, close connection string, close connection object C Connection string, connection object, close connection string, close connection object Question 18 of 20 5.0/ 5.0 Points Which function of the SqlCommand object must you use in order to execute an “INSERT” Sql Query? A ExecuteCommand(); B ExecuteNonQuery(); C ExecuteScalar(); D ExecuteReader(); Question 19 of 20 5.0/ 5.0 Points Which object in ADO.Net is similar to the Recordset object of ADO ? A DataReader B DataProvider C DataSet D DataProvider Question 20 of 20 Which of the following is not a member of ADODBCommand object? A Open B ExecuteReader 5.0/ 5.0 Points A.Forward only B.Connected mode C.Read-only D.Faster access Question 14 of 20 0.0/ 5.0 Points ActiveX Data Objects (ADO) comes installed with ASP and allows your pages to easily connect to databases Which two ADO objects are used to open a connection and interact with the database? A Connection object, RecordingSet object B Connection object, Recordset object C Connect object, RecordingSet object D Connect object, Recordset object Question 15 of 20 0.0/ 5.0 Points OLEDB Connection Pooling is handled by OLEDB.Net Provider and SQLClient Connection pooling is handled by A Windows 2000 Component Service B OLEDB Provider C SQL Provider D ODBC provider Question 16 of 20 5.0/ 5.0 Points DataTable.Copy() method also creates the copy of DataRows? True False Question 17 of 20 5.0/ 5.0 Points You want to access data from the "Customer" table in the database You generate a DataSet named "MyDataSet" by adding "Customer" table to it Which of the following statements should you use to load the data from the database into "MyDataSet" which has been loaded with multiple tables, using a SqlDataAdapter named "MyAdapter"? A MyAdapter.Fill("MyDataSet",Customer) B MyAdapter.Fill(MyDataSet,"Customer") C MyAdapter.FilI(MyDataSet) D MyAdapter.Fill("MyDataSet") Question 18 of 20 Which internal format DataSet uses to load and persist its contents? A Which internal format DataSet uses to load and persist its contents? B Binary Format C CSV Format 5.0/ 5.0 Points D No format is required Question 19 of 20 5.0/ 5.0 Points What is the sequential procedure in working with databases? A Connection object, connection string, close connection object, close connection string B Connection object, connection string, close connection string, close connection object C Connection string, connection object, close connection string, close connection object Question 20 of 20 What are the weekness of typed dataset A.Heavy object B.No re-use/upgrade model C.Lack of DataAccess features 0.0/ 5.0 Points D.Hight performance Question of 20 0.0/ 5.0 Points What are Validation Annotations? A These attributes provide client-side validation, and the framework also supports client-side validation when you use one of the attributes on a model property You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range B These attributes provide server-side validation, and the framework also supports server-side validation when you use one of the attributes on a model property You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range C These attributes provide server-side validation, and the framework also supports client-side validation when you use one of the attributes on a model property You can use four attributes in the DataAnnotations namespace to cover the common validation scenarios, Required, String Length, Regular Expression and Range Question of 20 5.0/ 5.0 Points Use of NuGet to deliver software and manage dependencies throughout the platform" is new feature of A ASP.NET MVC B ASP.NET MVC C ASP.NET MVC Question of 20 5.0/ 5.0 Points How many routes can be defined in the mvc application? A three B more than one C two D one Question of 20 What are the file extensions for razor views? (C# language) 5.0/ 5.0 Points A .aspx B .cshtml C .asp Question of 20 5.0/ 5.0 Points HTML Project Templates are now part of ASP.NET MVC installation in VS2010? A No That's incorrect B Yes, That's correct The New Project dialog includes a checkbox enable HTML versions of prject templates These templates leverage Modernizr 1.2 to provide compatibility support for HTML and CSS in down-level browsers C Yes, That's correct The New Project dialog includes a checkbox enable HTML versions of prject templates These templates leverage Modernizr 1.7 to provide compatibility support for HTML and CSS in down-level browsers D No That's incorrect The New Project dialog includes a checkbox enable HTML versions only 5.0/ 5.0 Points Question of 20 MVC supported A No View Enginee B Multi Views Engi C Only one View Engine Question of 20 5.0/ 5.0 Points What is correct for description of ViewData? A is a dynamic property that takes advantage of the new dynamic features in C# 4.0 B doesn’t require typecasting for complex data type C ViewData is a dictionary of objects that is derived from ViewDataDictionary class and accessible using strings as keys Question of 20 5.0/ 5.0 Points Which is the correct of Razor Syntax? A @ B %% C $ Question of 20 0.0/ 5.0 Points What is correct for description of ViewBag? A ViewBag is a dictionary of objects derived from the ViewBagDictionary class and accessible using strings as keys B ViewBag is a dynamic property that takes advantage of the new dynamic features in C# 4.0 C ViewBag doesn't require typecasting for complex data types D B and C Question 10 of 20 0.0/ 5.0 Points What are the new features of MVC 3? A Introduction of UI helpers with automatic scaffolding with customizable templates B Mobile project template using jQuery Mobile C Improved model validation Part of - Part 36.25/ 50.0 Points Question 11 of 20 5.0/ 5.0 Points The "RejectChanges" method of Dataset is used to : A "Commits the changes " B remove all datarow in it C Rollbacks all changes since last call to AcceptChanges D Rolls back all changes since object was created Question 12 of 20 5.0/ 5.0 Points "Last in wins" concurrency means : A ….whatever data modification was made last gets written to the database B control works on the assumption that resource conflicts between multiple users are unlikely (but not impossible), and allows transactions to execute without locking any resources Only when attempting to change data are resources checked to determine if any conflicts have occurred If a conflict occurs, the application must read the data and attempt the change again C … control locks resources as they are required, for the duration of a transaction Unless deadlocks occur, a transaction is assured of successful completion Question 13 of 20 5.0/ 5.0 Points When we need to retrieve only a single value from the Database,which Method is efficient A ExecuteReader() B ExecuteScalar() C ExecuteXmlReader() D ExecuteNonQuery() Question 14 of 20 1.25/ 5.0 Points Chose valid value for datarowstates ! A.Deleted B.Modified C.Detached D.Added Question 15 of 20 0.0/ 5.0 Points What is a connection object? A First opens the initial connection to a database before giving any database information B Specifies the type of driver to use, database format and filename C Specifies whether to use a DSN or DSN-less connection D Specifies whether to use a DSN or DSN-less connection Question 16 of 20 5.0/ 5.0 Points Two users are trying to update the row in a database at the same time.Assuming that optimistic concurrency is not used for concurrency control in this case, what will be the result ? A The Second Update overwrites the first update B Error will be raised when the Second update happens C Second update does not happen at all D None of the above Question 17 of 20 Which one of the following namespaces contains the definition for IdbConnection? 5.0/ 5.0 Points A System.Data.Connection B System.Data.Interfaces C System.Data D System.Data.Interfaces Question 18 of 20 5.0/ 5.0 Points What must your ASP code have if you are using the DSN method of connecting? A Both B Connection object C Connection string Question 19 of 20 Which Dataset gives easier access to the contents of the table ? 0.0/ 5.0 Points A Mixed B Typed C UnTyped Question 20 of 20 5.0/ 5.0 Points You have code that executes SQL statements on a database within the context of a SQLTransaction You want to ensure that no user can perform any updates in the database until your transaction is complete What IsolationLevel should you use? A ReadUncommitted B ReadCommitted C Serializable D Chaos

Ngày đăng: 31/03/2017, 15:14

Từ khóa liên quan

Mục lục

  • Question 1 of 20

  • Question 2 of 20

  • Question 3 of 20

  • Question 4 of 20

  • Question 5 of 20

  • Question 6 of 20

  • Question 7 of 20

  • Question 8 of 20

  • Question 9 of 20

  • Question 10 of 20

  • Question 11 of 20

  • Question 12 of 20

  • Question 13 of 20

  • Question 14 of 20

  • Question 15 of 20

  • Question 16 of 20

  • Question 17 of 20

  • Question 18 of 20

  • Question 19 of 20

  • Question 20 of 20

Tài liệu cùng người dùng

Tài liệu liên quan