SSD ICT Flashcards

1
Q

Aim of backend?

A

Lays the foundational code
that enables websites to process actions that users take on front-end
and deliver correct information in return.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Purpose of backend

A

Handles the ‘behind-the-scenes’ functionality of web apps.
Manages user connections.
Powers the user interface of the web application.
Connects the web app to a dataase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Roles of back-end developer

A

Writing APIs & libraries.
Working on business processes and data architecture.
Writing code to interact with a database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does browser as host environment allow?

A

Capture of user’s input.
Making of HTTP requests.
Processing of JavaScript instructions to output HTML and CSS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is node.js

A

Open-source, cross-platform, back-end JavaScript runtime environment

Node.js as host runtime environment gives JavaScript access to OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does Node js allow js to do

A
  • Be used as utility scripts to configure system and to read, write and manipulate files.
  • Send and receive data over the network.
  • Implement efficient web servers and attach application code to it.
  • Make and serve HTTP requests.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the features of node.js

A

Open-source, cross-platform, back-end JavaScript runtime environment.
Event-driven architecture capable of asynchronous I/O operations
* reading from the network, accessing a database, modifying a file, etc.
Fully platform independent: Windows, macOS and Linux.
Full support for both types of databases:
* Relational DBs - Mysql
* NoSQL DBs -MongoDB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is nodemon?

A

A package that automatically restarts the server if a change in the source code or file change in the directory is detected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is dotenv?

A

Module that loads configuration environment variable from separate .env file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is express js?

A

Minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Features of express js.

A

o It provides a robust set of features to develop web apps.
▪ It sets up handlers to respond to different HTTP requests.
▪ It performs different actions based on HTTP Method and URL
▪ It sets common web app settings such as connection port and template locations.
▪ Dynamically renders HTML Pages based on passing arguments to templates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is nvm?

A

A tool to manage the node version.
* Switch between different Node versions.
* Quickly update your installation when new releases are available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is npm?

A
  • Package manager for JavaScript, default package manager for Node.js.
  • Includes a registry i.e. an online catalogue of libraries, can be accessed via client
  • Track what libraries your project is using (called dependencies)
  • Download the packages they depend on (called subdependencies)
  • Store versioning information.
  • Distinguish between test and production builds.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does Node js enable js everywhere

A

This allowed JavaScript:
o to be uncoupled from browser and to run on the server, including on cloud-based servers.
o to use the same language both on the server and client.
o to be used as part of several front-end frameworks (e.g., React, Vue.js, Angular) and back-end
frameworks (e.g., Express.js, Next.js, Sails.js
o to be used as part of several stacks e.g., MEAN stack (MongoDB, Express, Angular, Node) and MERN
stack (MongoDB, Express, React, Node).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

When is node js most suitable?

A

For apps that require high scalability across multiple servers and DBMSs.

High perf apps with dynamic single-page applications (SPAs) that work in a data-intensive &
real-time manner, including distributed sessions across multiple devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Node js capabilities

A

Build software tools
Web scraping and testing
Build desktop applications
Build mobile applications
Build smartphone or tablet apps
Internet of Things (IoT)

17
Q

What is Ejs?

A

o One of the most popular template engines for JavaScript.
o It enables to rapidly build web applications that are split into different components.
o It embeds JavaScript code in a reusable web template to generate HTML.
o It replaces the variables in a template file with actual values and displays this value to the client.
o It retains the syntax of HTML while allowing data interpolation.

18
Q

What is a web template engine?

A

Software that combines web templates with a data source to generate
HTML by replacing variables in a template file with actual values.
data source - json, xml
web template - reusable template created using templating language
templating language - javascript java asp

19
Q

What is Mongoose?

A

Object Data Modelling (ODM) library for MongoDB and Node.js.
It acts as a front-end to MongoDB
* MongoDB: document-oriented NoSQL database, stores data in BSON.

20
Q

Advantages of nosql databases

A

Scalability - able to meet the needs for varying data loads.

21
Q

What is a JSON document?

A

o Documents consist of name-value pairs.
o Names are strings.
o Values can be numbers, strings, nulls, arrays, or objects

22
Q

What is a collection?

A

Gathering of documents.
Like a table in relational DB.
No need to specify a schema
Can change structure of docs in a collection.

23
Q

Benefits of using mongodb as a DBaas

A

Cost savings - cost based on usage
Cheaper management - db management done by cloud provider, no need staff
Data Security - done by cloud service provider
Scalability - up/down based on requirements

24
Q

What are environmental variables?

A

Variables that are set outside source code, often through a cloud provider or an Operating System
Supported by node and accessible via dotenv module.
Used to securely configure elements that dont change often. Like DB connection strings