Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 1 The onreadystatechange property of the XMLHttpRequest object _____. i

ID: 3830407 • Letter: Q

Question

QUESTION 1

The onreadystatechange property of the XMLHttpRequest object _____.

is an integer reporting the status of the request

determines which event handler will be called when the XMLHttpRequest readyState property changes

is the data returned by the server as a text string

is the HTTP status code returned by the server

2 points   

QUESTION 2

Which angular directive initializes the AngularJS environment

ng-app

ng-model

ng-bind

ng-repeat

2 points   

QUESTION 3

Angular's _____ module handles both HTTP GET and POST requests.

$index

$routeMatch

$request

$http

2 points   

QUESTION 4

You put ng-click="get_name()" in an opening button tag in your html, and you also have a template that looks like this, {{name}}. Assume the button is clicked. In the controller, what function would assign a name to the template?

get_name = function() {name="Rumpelstiltskin";};

$scope.get_name = function() {name="Rumpelstiltskin";};

$scope.get_name = function() {$scope.name = "Rumpelstiltskin";};

3 points   

QUESTION 5

An AngularJS a _____ controls the movement of data to and from a designated section of a web page.

viewmaster

controller

whatnot

2 points   

QUESTION 6

Angular's $http module sends and expects to receive data in the _____ format.

CSV

BSON

XML

JSON

2 points   

QUESTION 7

With jQuery, to select a paragraph with a css class of "danger" you use _____.

$("#danger")

$("danger")

$(".danger")

$("danger.p")

2 points   

QUESTION 8

For the following data structure located in an AngularJS controller, what template would display the calorie value?

$score.soup = {name: "tomato", calories: "225"};

{{soup.calories}}

{{"calories"}}

{{calories}}

{{$scope.soup.calories}}

3 points   

QUESTION 9

The AngularJS $http response object has several properties, and the most important of these properties is the ____ property.

count

serial

upper_case

data

2 points   

QUESTION 10

To facilitate client-side routing and single page apps, AngularJS offers us a ____ object.

$route

$routeProvider

$switch

$multiplexer

2 points   

QUESTION 11

_____ is the process of of converting data to a format that can be stored or transmitted across a network and recovered later in the same format.

delta formatting

objectification

compression

serialization

2 points   

QUESTION 12

Any Ajax request must be made to the same domain the requesting page came from; this prevents an issue called _____.

cross-site scripting

sql injection

key logging

data phishing

is an integer reporting the status of the request

determines which event handler will be called when the XMLHttpRequest readyState property changes

is the data returned by the server as a text string

is the HTTP status code returned by the server

Explanation / Answer

QUESTION 1The onreadystatechange property of the XMLHttpRequest object

determines which event handler will be called when the XMLHttpRequest readyState property changes

QUESTION 2Which angular directive initializes the AngularJS environment

ng-app

QUESTION 3Angular's _____ module handles both HTTP GET and POST requests.

$http

QUESTION 4You put ng-click="get_name()" in an opening button tag in your html, and you also have a template that looks like this, {{name}}. Assume the button is clicked. In the controller, what function would assign a name to the template?

$scope.get_name = function() {name="Rumpelstiltskin";};

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote