WorksheetsDomain 4: Web Applications
Total questions: 46
Worksheet time: 23mins
Name
Class
Date
1.
What is the function of the model-view-viewmodel (MVVM)? Choose two answers.
a)
Acting as a go-between from the view to the model
b)
Decoupling from the model
c)
Storing presentation logic
d)
Adding extra layers of indirection by splitting the controller
e)
Distributing back-end logic
2.
When publishing a website onto a web server, what are the two tasks usually needed to complete the production?
a)
Create a virtual directory
b)
Create a client-side program
c)
Create the website itself
d)
Create the server
e)
Create the event model
3.
XML is a data-driven language.
a)
True
b)
False
4.
Web services facilitate messages to be transmitted over multiple platforms, such as a Windows machine to a Linux machine.
a)
True
b)
False
5.
In addition to browser development tools, what other tool is available for running and testing code?
a)
Managed Detection and Response Service (MDR)
b)
Forcepoint
c)
Wireshark
d)
Integrated Development Environment (IDE)
6.
Building web applications involves making HTTP requests or Hypertext Transfer Protocol requests.
a)
True
b)
False
7.
JSON stores items in what type of pairs?
a)
Prismatic pairs
b)
Plane pairs
c)
Twisted pairs
d)
Key-value pairs
8.
Session storage stores data that is preserved during multiple web sessions.
a)
True
b)
False
9.
A website using port 8080 is usually a production website.
a)
True
b)
False
10.
Developers need to know how web apps are __________ on web servers and the types of web services that can be used.
a)
scripted
b)
constructed
c)
managed
d)
assembled
11.
The two web methods, ToUpper and ToLower, are web services stored on a web server, and therefore can not be used on any page within a client application.
a)
True
b)
False
12.
Client-side programming does all the __________ within a browser and the client __________ using the browser.
a)
auditing; organization
b)
refactoring; delegates
c)
processing; machine
d)
actions; object
13.
Which type of request sends data to another location?
a)
PATCH
b)
POST
c)
GET
d)
PUT
14.
What does OAuth allow users to do?
a)
Insert content from another source into a web page
b)
Take common tasks that require many lines of code into methods that can execute with a single line
c)
Create an encrypted link between a web server and a web browser
d)
Use one username and password combination to access multiple sites
15.
Within Microsoft Edge DevTools, make sure that the logic for the button is working. Navigate to the Sources area to view the HTML code for the page. Insert a breakpoint at line 16 to pause the code. Step through each line of code. If the code for the button is working, the message, Special sale this weekend!, will display.
a)
Antwoord
16.
Within Internet Information Services (IIS), create a website named toystore. Assign a physical path for it to a folder named toystore. Create this folder in the Software Development Fundamentals Folder. Ensure that the website does not start immediately. This website is only a test, so the port should be 8080.
a)
Antwoord
17.
Within Internet Information Services (IIS), create a virtual directory to protect the location of the folder where the website is stored. The virtual directory should point to the location of the folder holding the website. Name the directory toystore, set the physical path to the folder where the website is stored.
a)
Antwoord
18.
To make sure a variable or element is getting the correct values when needed, developers can place a __________ on a variable or an element.
a)
script
b)
hold
c)
label
d)
watch
19.
What additional website duties can a web server perform? Choose two answers.
a)
Determining error page content
b)
Responding to HTTP requests
c)
Controlling client-side programming
d)
Concealing administrator events from users
e)
Configuring XML settings
20.
Refer to the image. This program is an example of REST API code. What line of code returns a new array of people through using the Person class?
a)
Line 11
b)
Line 4
c)
Line 5
d)
Line 16
21.
In the Event Model, those who __________ apps can __________ the action within the apps.
a)
reconfigure; view
b)
store; detect
c)
audit; label
d)
use; control
22.
Refer to the image. On line 3, when field_5 changes, what does the code in line 4 check?
a)
To see if all five fields are not inert
b)
To see if all five fields are not responsive
c)
To see if all five fields are not empty
d)
To see if all five fields are not inactive
23.
Upon enabling File Transfer Protocol (FTP), the web server can control how SSL functions when allowing users to upload and download files from the web server.
a)
True
b)
False
24.
When designing an app, which types of actions should be used to code how the application reacts when said action occurs? Choose two answers.
a)
Downloading the app
b)
Filling out a form
c)
Updating content
d)
Launching on Android or Apple
e)
Selecting a button
25.
What is the first step when publishing a test version of an app?
a)
Copy HTML files
b)
View the virtual directories
c)
Select the port
d)
Start the website
26.
Refer to the image. The code creates a web service using the toystore33 mock website address as a namespace. Which line of code shows the web methods used to return the uppercase version of input strings?
a)
Line 9
b)
Line 14
c)
Line 1
d)
Line 3
27.
Which statement best defines local storage?
a)
Stores information as needed on a computer
b)
Stores data to handle repetitive tasks, manages backup schedules, and sets custom recovery points
c)
Stores data across multiple machines and shares storage over a network
d)
Stores virtual data giving convenient access to materials from anywhere
28.
Which statement best defines cookies?
a)
Small pieces of information from a web browser that are stored on a local computer
b)
Large pieces of information from a web browser that are stored on a remote computer
c)
Large pieces of information from a web browser that are stored on a local computer
d)
Small pieces of information from a web browser that are stored on a remote computer
29.
Refer to the image. Which line of code starts the process of retrieving the value of the cookie?
a)
Line 1
b)
Line 3
c)
Line 2
d)
Line 5
30.
In the MVC design, the model acts as the __________ of the application.
a)
front-end
b)
language
c)
framework
d)
back-end
31.
ASP.NET mixes HTML code for a webpage with C# code, with the C# code performing server-side actions.
a)
True
b)
False
32.
Anyone designing an SPA should consider multiple perspectives to determine if the SPA is feasible.
a)
True
b)
False
33.
Refer to the image. The loadFile function makes an XMLHttp request to a file. Often the file is on a different computer that functions as a(n) __________.
a)
object
b)
protocol
c)
state-manager
d)
server
34.
Web services allow computers to _________ information by interacting with programmed __________ on other computers.
a)
process; configurations
b)
store; permissions
c)
exchange; objects
d)
retain; cookies
35.
Refer to the image. The loadFile function makes an XMLHttp request to a file. Which line of code shows that the HTTP request is ready and the website is running?
a)
Line 24
b)
Line 25
c)
Line 22
d)
Line 23
36.
Which web application language is dynamic?
a)
HTML
b)
JavaScript
c)
CSS
d)
C++
37.
Refer to the image. What is the function of the code on lines 1 through 18?
a)
Building local storage that server-side applications can access
b)
Building cookies that client applications can access
c)
Building a developer tool that client requests can access
d)
Building a web service that client applications can access
38.
The model-view-viewmodel (MVVM) design is best utilized for what type of application?
a)
Multi-page
b)
Hybrid
c)
Native
d)
Single-page
39.
What are the two major keys needed for an SPA to be successful?
a)
There must be more than one form per page
b)
The application must store controller logic
c)
There can only be one form per page
d)
The application must be small enough
e)
The application must be large enough
40.
XML is well suited for __________ data, where there is a defined set of __________ with various properties.
a)
time-stamped; procedures
b)
semi-structured; objects
c)
big; functions
d)
unstructured; loops
41.
What are some advantages that JavaScript Object Notation (JSON) files provide? Choose two answers.
a)
Supporting namespaces
b)
Storing semi-structured data
c)
Impervious to attacks
d)
Handling JSON error calls
e)
Porting data into other formats
42.
Using a virtual directory is just one method that a web server can use to secure websites. What other method is available?
a)
Controlling permissions
b)
Concealing HTTP requests
c)
Hiding status codes
d)
Disclosing postback events
43.
A REST API enables two computers to communicate using HTTP, which allows users to __________ and __________ information.
a)
audit; report
b)
process; input
c)
retrieve; send
d)
output; modify
44.
Which statement best defines the Simple Object Access Protocol (SOAP)?
a)
A protocol used to store structured information on computers
b)
A protocol used to exchange structured information between two computers
c)
An event protocol used to exchange ambiguous information between two computers
d)
A protocol used to retain structured information between two computers
45.
Refer to the image. Which line of code invokes the local storage object?
a)
Line 14
b)
Line 12
c)
Line 24
d)
Line 11
46.
State management deals with __________ state on a form as a user __________ with a form on a webpage.
a)
notion; parts
b)
subject; disconnects
c)
object; interacts
d)
abstract; separates
100 %
