CMPT 221 - Final Review

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/123

flashcard set

Earn XP

Description and Tags

CMPT 221 Marist Collge

Last updated 7:38 PM on 12/14/22
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

124 Terms

1
New cards
Where does node.js run?
Server side
2
New cards
What engine does node.js use to run javascript on the server with?
Google V8 (javascript engine)
3
New cards
Node.js allows you to run javascript on?
the server 
4
New cards
Communication of server and client done mostly with?
RESTful web services
5
New cards
talking to database, access of API can be done through
the server (node.js)
6
New cards
Advantage of using node?
 It’s modular (code chunks independent and self-contained)
7
New cards
How can you install things like modules in Node.js?
NPM
8
New cards
NPM command to install express?
npm install express
9
New cards
How do you tell JS you’re gonna use a specific module?
require (“module name”)
10
New cards
What does package.json do?
It tells node what modules are being used
11
New cards
What are SOAP web services?
First attempt to use web services
12
New cards
What does SOAP stand for?
Simple Object Access Protocol
13
New cards
*What is a web service?*
 *A way to allow web functionality*
14
New cards
What is the WSDL file?
Description of web services available and how to call them
15
New cards
What does WSDL stand for?
Web Services Description Language
16
New cards
What is the WSDL file written in?
XML
17
New cards
What does XML stand for?
Extensible Markup Language
18
New cards
What replaced earlier web services and is widely used today?
RESTful web services
19
New cards
What does REST in RESTful stand for?
Representational State Transfer
20
New cards
What do RESTful web services use to transfer information?
HTML commands
21
New cards
RESTful web services are?
Client-server and stateless
22
New cards
What does stateless mean (RESTful web services)?
There is nothing saved in information transaction, so no information stored
23
New cards
Benefits of RESTful statelessness?
Fast performance, reliability, scalability
24
New cards
RESTful data is?
Cacheable
25
New cards
Types of data you can receive from RESTful services?
XML, HTML, JSON, Plain text
26
New cards
API stands for?
Application programming interface
27
New cards
What is RESTful API?
a protocol to call things on the server
28
New cards
What three things do you need for a RESTful API call?
Base URI, mime or media type, HTTP method to be used
29
New cards
What types of HTML methods can be used for RESTful API calls?
GET, PUT, POST, PATCH, DELETE
30
New cards
What does GET do?
Retrieve data
31
New cards
What does PUT do?
Update by override
32
New cards
What does POST do?
Save new instance
33
New cards
What does PATCH do?
Partial update
34
New cards
What does DELETE do?
Remove
35
New cards
*Info exchange between client and server called?*
*Transport*
36
New cards
What languages can be used for transport?
XML or JSON
37
New cards
What does an XML document contain?
Tags
38
New cards
What is the format of a tag?
39
New cards
What makes XML more powerful than JSON?
Allows you to create rules for the tags
40
New cards
In the tags Poughkeepsie, what is the attribute?
Zip = ‘12601’
41
New cards
In the tags Poughkeepsie, what is the element?
city
42
New cards
You can give as many attributes as you want to your element?
True
43
New cards
All tags in XML must have?
A closing tab
44
New cards
What does JSON stand for?
JavaScript Object Notation
45
New cards
JSON is what format?
Open standard format
46
New cards
What does a JSON file contain?
Name/value pairs
47
New cards
Advantages of JSON?
Easy to represent data structures, compact, very light weight, easy to translate back into javascript objects, quick to read or write, can use arrays
48
New cards
Is JSON or XML faster?
JSON is faster
49
New cards
What are the restrictions of JSON?
Properties must be in double quotes, can only represent simple expressions and not functions, no comments
50
New cards
To convert JS to JSON use what?
JSON.stringify()
51
New cards
To convert JSON to JS use what?
JSON.parse()
52
New cards
What architectures types do we use?
MVC, n-tier, client server
53
New cards
*What is n-tier architecture?*
*Divided into tiers*
54
New cards
What makes something a web application?
It runs on the web and can be accessed remotely
55
New cards
What do protocol web applications use?
HTTP protocol
56
New cards
What are the 3-tiers of web applications?
Presentation layer (browser), application server (eg. node, tomcat), storage
57
New cards
*What is a proxy?*
server application between client with a request and server with a resource
58
New cards
What is a proxy used for in web applications?
Used to access the internet and return information from the internet
59
New cards
What does a forward proxy do?
Isolates users from the internet
60
New cards
What does a reverse proxy do?
Isolates web server from the internet
61
New cards
What does a load balancer do?
Distributes the load among all the servers available
62
New cards
A load balancer can be hardware or software based
True
63
New cards
What does a load balancer use to balance the load?
Algorithms
64
New cards
What does the firewall do?
Restricts access to the web servers
65
New cards
How does the firewall work?
It closes all the ports that are not required
66
New cards
What do web servers do?
Serve static HTML content
67
New cards
What do application servers do?
Serve dynamic content
68
New cards
What is sometimes in front of application servers?
Web servers
69
New cards
What are some examples of application servers?
 Node.js, Tomcat, .net server, PHP, Netty, Jetty
70
New cards
What does an application server consist of?
Web server connectors (eg. AJP, HTTP, etc.), programming language environment, runtime libraries, database connectors
71
New cards
What are database servers used for?
To store data in an organized manner
72
New cards
What are the ways you can scale?
Vertically or horizontally
73
New cards
What does it mean to scale vertically?
Increase capacity of existing servers (CPU, memory)
74
New cards
What does it mean to scale horizontally?
Add more servers
75
New cards
Is it easier to scale horizontally or vertically?
Vertically
76
New cards
*What is a N-Tier architectural pattern?*
*A tiered architecture with as many tiers as necessary*
77
New cards
What does MVC stand for?
Model, View, Controller
78
New cards
What does the Model in MVC do?
Provides a way to query and change the state of the application
79
New cards
What is the View in MVC?
The user interface, it could query the model
80
New cards
What is the Controller in MVC?
Accepts input and converts into commands, translates actions into operation of the model.
81
New cards
Microservices work well when scaling?
Horizontally
82
New cards
What are microservices?
architecture where software are small independent services that communicate thru api
83
New cards
What does AJAX stand for?
Asynchronous JavaScript and XML
84
New cards
What does AJAX allow?
Asynchronous calls
85
New cards
What is an asynchronous call?
A call in which results can be retrieved while other transactions occur
86
New cards
What does AJAX use to make asynchronous calls?
Event handlers
87
New cards
Where does AJAX work?
Client side
88
New cards
What is the advantage of an asynchronous call over a synchronous call?
can do multiple transactions at once
89
New cards
What is XMLHttpRequest?
Interface through which the browser can make HTTP requests
90
New cards
Where was XMLHttpRequest started?
Internet explorer
91
New cards
What does XMLHttpRequest do?
Sends the request and parses the result
92
New cards
What is the difference between GET and POST?
In get, information is part of the url. In post, it is part of the body
93
New cards
*How do we change the information on the page?*
*DOM manipulation*
94
New cards
What is a promise?
A wrapper around an asynchronous call to the server
95
New cards
What is received from a promise after a call to the server?
A success or failure message
96
New cards
How can we store data in web apps?
Cookies and sessions
97
New cards
What are cookies?
Data stored on the client that is sent to the server, or vice versa, every time a call is made
98
New cards
Cookies can be made on the client or server side
True
99
New cards
What language do databases use?
SQL
100
New cards
What does SQL stand for?
Structured query language