csis336 test 3 ch 22, 23, ASP.NET, Web Services

Ace your homework & exams now with Quizwiz!

Tasks that proceed independently of one another are said to execute ________ and are referred to as ________ tasks.

asynchronously, asynchronous

A primary key must be unique for each record in the relational database table.

true

A query is a request to the database for the data that satisfies the specified criteria.

true

A validator control ensures that the entered information is in the correct format.

true

An EntityDataSource control allows an ASP.NET app to interact with a database via LINQ to Entities.

true

Handling short computations in the GUI thread ________.

does not cause the GUI to become unresponsive

ASP.NET pages end with a(n) ____ file extension.

.aspx

Web Form files have the extension:

.aspx

The code-behind file with ASP.NET is saved using which file extension?

.aspx.cs

Static web pages end with file extensions, namely ____.

.htm

XHTML Directives are delimited with ____.

<% and %>

Microsoft's ________ technology is used for web-based app development.

ASP .NET

All of the following types of controls can be added to a Web Forms page, EXCEPT ____.

ASP controls

Using Visual Studio, you can add which of the following types of controls?

All of the above (Navigation Login Data)

Web pages are stateless. What does this mean?

All of the above. (Every postback trip to the server creates a new object. Values entered are not automatically saved and redisplayed when a page is sent back to a client computer. They do not retain their values from one trip to the Web server to the next.)

The BindingNavigator allows the user ________.

All of these (to control which row of the table is currently in view to add new and delete new rows to save changes to the data in view)

An IP address is:

All of these. (an internet protocol address. a set of numbers distinguishing computers. a value that identifies a server.)

Which is a not requirement of a custom data type to be used in web services?

Any variables to be accessed during runtime must be declared WebVar.

________ programming is a technique for writing apps containing tasks that can execute asynchronously, which can improve app performance and GUI responsiveness in apps with long-running or compute-intensive tasks.

Asynchronous

A web service's methods can be called by methods on other machines using ________.

Both Representational State Transfer (REST) architecture and Simple Object Access Protocol

Which of the following is false?

Both get and post requests send form data to the server as part of the URL.

The ____ control does not have a property called AutoPostBack that can be set to true to trigger an automatic postback to the server.

Button

A simple Web Form consists of two related files, an ASPX file and a(n) ________.

C# code-behind file

In order to set the Calendar control object Calendar1 to the current date, you could type ____.

Calendar1.SelectedDate = DateTime.Today;

All of the following are true regarding Cascading Style Sheets (CSS) EXCEPT ____.

CSS stores tags representing sizes, colors of fonts, and alignment of text within the HTML markup

WebClient's ________ method terminates its executing asynchronous task.

CancelAsync

____ enable you to provide more consistency across pages on a Web site.

Cascading Style Sheets

The ________ attribute exposes a class to client access.

DataContract

Tables from databases are commonly shown in a GUI through a ________.

DataGridView

A ListBox's ________ property indicates the source of the data that populates the ListBox's Items collection.

DataSource

An object of a subclass of ________ is used to manage the data flow between your program and the database.

DbContext

A MethodInvoker (namespace System.Windows.Forms) is a ________.

Delegate that invokes a method with no arguments and a void return type

A ListBox's ________ property indicates which property of each item in the data source should be displayed in the ListBox.

DisplayMember

Class WebClient's ________ method starts a new Task<string> in a separate thread and uses the URL specified as the method's string argument to request information from a web server.

DownloadStringTaskAsync

When various databases are combined, this is known as data binding.

False

The ________ delegate represents any method that takes no arguments and returns a result.

Func<TResult>

Class Task is part of .NET's Task Parallel Library (TPL) for asynchronous programming. Task static method Run receives a ________ as an argument and executes a method in a separate thread. The method returns a Task<TResult> where TResult represents the type of value returned by the method being executed.

Func<TResult> delegate

Class Task is part of .NET's Task Parallel Library (TPL) for asynchronous programming. Task static method Run receives a ________ as an argument and executes a method in a separate thread. The method returns a Task<TResult> whereTResult represents the type of value returned by the method being executed.

Func<TResult> delegate

Class Task is part of .NET's Task Parallel Library (TPL) for asynchronous programming. Task staticmethod Run receives a ________ as an argument and executes a method in a separate thread. The method returns a Task<TResult> where TResult represents the type of value returned by the method being executed.

Func<TResult> delegate

A ________ ASP.NET data control displays data on a Web Form in a tabular format.

GridView

.NET provides session-tracking capabilities in class ________.

HttpSessionState

When HTML for a page is created, a validator is converted into ________.

JavaScript

Which of the following is an example of a scripting language that might be used to create a dynamic web page?

JavaScript

Which of the following is true regarding JavaScript?

JavaScript is one of the components of AJAX.

With Web applications, instead of using a MessageBox object to display information to users, a common control used for this is a ____.

Label

________ is an Internet standard that specifies the way in which certain types of data must be formatted so that programs can interpret the data correctly.

MIME

You can call a BindingSource's ________ method to move to the first row of the result.

MoveFirst

With Windows and console-based applications, execution begins with the first statement in the Main( ) method. With a Web application, execution begins with the first statement in the ____.

Page_Load( ) method

Which validation control compares an input value to see if it is between a specified lower and upper boundary?

RangeValidator

Task property ________ returns the value returned by a Task.

Result

A ________ is an address indicating the location of a resource on the web.

URL

Namespace ________ contains classes for creating web apps and controls.

System.Web.GUI

Controls and other elements are placed on a Web From sequentially.

True

What is one of the major differences between an ASP .NET application that you build and a Windows application?

Two separate files are created for the user interface for Web applications.

To set the message for an Input text field use the ____ property.

Value

You can wait for multiple Tasks to complete by awaiting the result of Task static method ________.

WhenAll

Software that hosts or delivers a Web application is called a(n) ____.

Web server

One approach to developing Web sites is to use Microsoft Internet Information Services (IIS). IIS is ____.

Web server software

Which of the following is false?

Web services allow their methods to be called by methods on other machines via different data formats and protocols.

All of the following are true statements regarding Web-based applications, EXCEPT ____.

Web-based applications are designed for a single platform

The ________ attribute maps a method to a unique URL that can be accessed via an HTTP GET operation programmatically or in a web browser.

WebGet

For a WCF web service to return data in JSON format, WebGet's ResponseFormat property must be set to ________.

WebMessageFormat.Json MessageFormat.Json an SVC file

Task static method ________ enables you to wait for any one of several Tasks specified as arguments to complete-the method returns the Task that completes first.

WhenAny

The extension method ________ is used to filter the results of a LINQ query.

Where

Style sheet includes a list of rules. Each rule consists of ____.

a selector and one or more declaration blocks

Natively backed means the user interface controls are rendered and transformed using the native controls of the target platform which ____

allows the applications to retain the look and feel of the platform.

Natively backed means the user interface controls are rendered and transformed using the native controls of the target platform which ____.

allows the applications to retain the look and feel of the platform.

The async and await mechanism does not create new threads. The method that you call to start an asynchronous task on which you ________ the results is responsible for creating any threads that are used to perform the asynchronous task.

await

A method is declared async to indicate to the compiler that the method will ________.

await an asynchronous task

The default home directory for Web applications on most machines is ____.

c:\InetPub\wwwroot

The mechanisms for determining whether to return control to the async method's caller or continue executing the async method, and for continuing the async method's execution when the asynchronous task completes are handled by ________.

code that's written for you by the compiler

Each ________ in a GridView is represented as a BoundField.

column

Web forms are customized by programmers by adding Web ________ such as labels and buttons.

controls

You cannot bind a LINQ query's result directly to a ListBox. You must first ________.

convert the results to a List with method ToList

A ________ is a piece of data stored in a small text file to maintain information about the client during and between browser sessions.

cookie

An XML data object is converted to a custom type via the process of ________.

deserialization

A LINQ query may contain only one from clause.

false

A database used by an ASP.NET website should be located in the project's Data folder.

false

A primary key field can be duplicated in other records of the same relational database table, making it easier to manipulate.

false

A relational database model is a way of organizing data and considering relationships based on the physical structure of the data.

false

A web server translates a hostname into an IP address.

false

An ADO.NET Entity Data Model cannot represent the relationships between tables in a database.

false

An ADO.NET Entity Data Model contains only classes that represent the database's tables.

false

An instance of the web page is re-compiled each time the ASPX file is requested by a user.

false

As you review the Solution Explorer window, you will find a .Designer.cs file similar to the one you find with Windows applications.

false

DBExtensions method Load loads an entire database's data into a DbContext.

false

Database management systems enable you to access and store data without worrying about the external representation of databases.

false

Dynamic web pages are pre-created pages, residing on the server's hard drive, and basically are delivered as HTML documents.

false

Each foreign key can be created independently.

false

For retrieving data from a database, you can use a GridView object. However, by default, the GridView control displays data on a Web form in a read-only format.

false

GridView method Refresh refreshes the information displayed in the GridView.

false

HTML is more restrictive than XHTML. With HTML all tags or elements are written using lowercase characters. All elements must be closed and must be properly nested under a single root tag.

false

Microsoft Access databases include more security features than SQL Server databases. Thus, Access databases are recommended for production Web sites.

false

Relative positioning specifies that controls will be located exactly where they're dragged and dropped onto the form by the programmer.

false

Static Web pages involve processing in addition to rendering the formatting of HTML tags.

false

The Calendar control has a number of properties including the CurrentDate property which is used to pick the month, day, and year for display.

false

The RequiredFieldValidator validation control matches an input value to a pattern to see if the values match a predictable sequence.

false

The file that contains the coding for a Web Form is a Web-code file.

false

The host is the computer that requests a Web page for display.

false

The pathname to a file on a web server specifies the location of an actual directory on the web server's file system.

false

There are more controls to add to a Web application than there are for Windows applications.

false

Web Forms controls map straight to HTML tags. There is a one-to-one correspondence between the controls and the tags generated.

false

Web Forms use the same controls as Windows Forms.

false

Web sites are reopened differently from a Windows application. To reopen a Web application in Visual Studio, select the Web sites name under the TOOLS Options menu.

false

When you set the Web Forms control's property using the Properties window in Visual Studio, the settings are stored in the code behind file—the file ending with the .aspx.cs extension.

false

With ASP.NET, you write code in a separate scripting language such as JavaScript or VBScript.

false

You cannot use the drag-and-drop construction approach of Visual Studio to develop Web-based applications. This approach can only be used with Windows applications.

false

There is a ________ relationship between a primary key and its corresponding foreign key.

foreign one-to-many structural

The async modifier indicates that a method or ________ expression contains at least one awaitexpression.

lambda

JSON format is ________ compared to XML format.

less verbose

Visual C# apps can have multiple threads of execution, where each thread has its own ________ stack, allowing it to execute concurrently with other threads while sharing with them application wide resources such as memory and processors. This capability is called multithreading

method-call

Visual C# apps can have multiple threads of execution, where each thread has its own ________ stack, allowing it to execute concurrently with other threads while sharing with them application-wide resources such as memory and processors. This capability is called multithreading.

method-call

Executing calculations in multiple threads on a single-core processor can actually take ________ compared to simply performing them synchronously, due to the overhead of sharing one processor among the app's threads, all the other apps executing on the computer at the same time and the chores the operating system was performing.

more time

Only computers that have ________ can truly execute multiple asynchronous tasks concurrently.

multiple processors or cores

Today's ________ computers, smartphones and tablets enable computers to perform tasks truly concurrently.

multiscreen

JSON is a text-based data-interchange format used to represent objects in JavaScript as collections of ________ represented as strings.

name/value pairs

All of the following are key components of a WCF service except:

operation.

The code-behind file is a(n) ________ class.

partial

The information tier typically stores data in a(n) ________.

relational database management system

Today's most popular database systems are ________.

relational databases

A Task promises to ________.

return a result at some point in the future

What special attribute can be added to a control's tag in the XHTML file to make the control visible or accessible to the Web server?

runat="server"

When updating a control from a non-GUI thread, you must ________.

schedule that update to be performed by the GUI thread

In effect, an async method allows you to write code that looks like it executes ________, while the compiler deals with the complicated issues of managing asynchronous execution.

sequentially

HTTP is a ________ protocol: it does not support persistent connections.

stateless

A relational database model allows relationships between data to be considered without concern for the ________.

structure of the data

Relational databases can be thought of as ________.

tables of rows and columns

Executing asynchronous methods in separate threads on a dual-core computer typically ________ executing the same tasks sequentially.

takes less time than

If a long-running calculation were to be performed synchronously in a GUI app, ________.

the GUI would freeze until the calculation completed and the user would not be able to interact with the app

When an async method encounters an await expression: If the asynchronous task has already completed, ________.

the async method simply continues executing

When you await a Task, if that Task has already completed, execution simply continues. Otherwise, control returns to ________ until the result of the Task is available. Once the Task completes, the asyncmethod continues execution.

the async method's caller

An async method can perform other statements between those that launch an asynchronous Task and await the Task's results. In such as case, the method continues executing those statements after launching the asynchronous Task until it reaches ________.

the await expression

With traditional client server ASP, once the client requests a page, the server gets it ready by executing any scripts found inside the HTML document, ____.

the client sees the result in the form of an HTML document

An app that performs synchronous tasks on a single-core computer often takes longer to execute than on a multi-core computer, because ________.

the processor is shared between the app and all the others that happen to be executing on the computer at the same time

REST-based web services differ from SOAP-based web services in that ________.

the request and response of REST services are not wrapped in envelopes and are not necessarily in XML format

An async method executes its body in ________.

the same thread as the calling method

Because ________, asynchronous Tasks are frequently used in GUI apps that invoke web services (or perform network communication in general) to ensure that the apps remain responsive.

there can be unpredictably long delays while awaiting a web-service response

A master/detail view app typically allows the user to select an entry to see (and potentially manipulate the details associated with that entry.

true

By default only a few Web Forms server control events trigger a postback to the server. Common user interface events such as mouse moves and key presses are not automatically posted to the server.

true

Dynamic Web pages normally involve some processing in addition to rendering the formatting of HTML tags.

true

For ASP .NET apps, IIS is usually the web server.

true

For ASP.NET applications, property settings are not stored in the Web Form Designer Generated Code region for Web applications. They are stored in the file containing the HTML tags.

true

For retrieving data from a database, you can use a GridView object. However, by default, the GridView control displays data on a Web form in a read-only format.

true

HTML controls do not maintain state.

true

It's possible to nest LINQ queries to produce hierarchical results.

true

It's possible to select only a subset of a relational database table's columns.

true

Master page allows you to create and maintain a consistent theme across several pages for a Web site.

true

Selecting HTTP for the File Location, stores files, by default, in the C:\Inetpub\wwwroot directory.

true

The .aspx.cs file is where your program logic, including your event handlers, is stored with ASP.NET Web sites.

true

The Web Forms controls are designed to look and act like their Windows counterparts. The programming model used for these controls is also closely aligned to the object-oriented programming model used with Windows controls.

true

The information tier of a multi-tier app holds the app's data.

true

The server loads an ASP.NET Web page every time it is requested by a client browser and then unloads it back to the browser after it processes the server-side code to render the HTML.

true

The top tier in a multi-tier app is the app's user interface which gathers input and displays output.

true

There is no Main( ) method with ASP.NET applications. Instead there is a Page_Load( ) event handler.

true

To develop an ASP.NET application using Microsoft Internet Information Services (IIS), you must also have administrative debugging privileges on the computer used for development.

true

To indicate that the control is a Web Forms control, Visual Studio prefixes the control name with and ends the tag with .

true

Two files are created for each page when you build Web applications. This file ending in .aspx holds the HTML tags.

true

Visual Studio creates a class for every ASPX file it creates in a .NET language.

true

Visual Studio has a built-in ASP.NET Development Server for testing and running Web sites. It is not necessary to have IIS installed and running.

true

You can customize the display of the Calendar control object by adding borders and changing the overall size, font, background, and foreground colors.

true

A ________ checks whether data entered into another web control is correct or in the proper format.

validation control

The machine on which the web service resides is commonly referred to as the ________.

web service host

In the Web.config file, the service binding in the endpoint element must be set to ________ to support REST-based HTTP requests.

webHttpBinding


Related study sets

Research Methods Exam 4 Study Guide

View Set

Reading 38- Dividends and Share Repurchases: Basics

View Set

World Christian- Ken Graves Exam 1

View Set

Cinderella Man Movie Flashcard Notes

View Set

Test 1 (ch. 5) Practice questions

View Set