1.3.4 Flashcards

1
Q

What information does a web crawler capture when it visits a site?

A

Records key information:

  • Text
  • Metatags
  • Position of each word within the page
  • Outbound Links

Follows links to other sites

The robots.txt file can be used to instruct web crawlers to skip the page.

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

How does a web crawler find a website?

A

A site is found either by selecting it from an existing list or following a link from another site.

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

Where does the information go that was gathered by the web crawler?

A

All information gathered is stored in an index

Data is organised and interpreted by the search engine’s algorithm to measure its importance compared to similar pages.

Servers based all around the world allow users to access pages from the index almost instantaneously.

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

What are the main factors taken into account to calculate the PageRank of a website?

A

PageRank is a calculation, which evaluates the quality and quantity of links to a webpage to determine a relative score of that page’s importance and authority on a 0 to 10 scale.

  • The number of sites that link to the site
  • The PageRank of the linking sites
  • The number of outward links from the site
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What the the PageRank damping factor?

A

A value between 0 and 1.

The probability that a user will not follow a link

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

What is the purpose of
HTML | CSS | JavaScript

A

HTML - Used to define the content and structure of a web page. Uses tags.

CSS - Sets the formatting of the website (colours, layout etc.) Enables a consistent look to every page as style sheet is shared.

JavaScript - Adds the interactivity to pages. As well as validation on web forms

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

What three methods can be used to insert CSS into a webpage?

A

Inline - CSS is added directly into the tag.

Embedded – The CSS is added to the top of each HTML page.

External – All of the CSS is added to an external file and then linked to within each HTML page

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

List the 9 CSS formatting commands that you are expected to know.

A

background-color
border-color
border-style
border-width
color (font)
font-family
font-size
height
width

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

What is the purpose of the div tag?

A

To group a section of HTML code together so they can be refered to as one identifier.

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

What is the purpose of the title tag, and where does it appear?

A

HELLO WORLD

This would appear in the tab name at the top of the web browser.

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

How do you get JavaScript to show an alert box?

A

alert(“Message to alert”)

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

What is server-side processing?

Which language studied is an example?

A

Processing takes place on the web server.

Data is sent from the browser to the server, and the server processes it and sends the output back to the browser.

It is often used for generating content. It can be used to access data; including secure data.

Example: SQL

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

What is client-side processing?

Which language studied is an example?

A

Processing takes place in the web browser.

It does not require data to be sent back and forth meaning the code is much more responsive.

Example: JavaScript

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

What are the pros and cons of server-side processing?

A

+ Takes away the reliance on the browser having the correct interpreter.

+ Hides the code from the user, protecting copyright and avoiding it being amended.

  • Puts extra load on the server. This is at the cost of the company hosting the website.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the pros and cons of client-side processing?

A

+ Code is visible which means it can be copied.

  • The browser may not run the code because it does not have the capability or because the user has intentionally disabled client-side code.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Why check data on the client side AND the server side?

A

The check is carried out client-side in the browser meaning data can be checked and stopped before reaching the server, reducing unnecessary load on the server.

JavaScript can, however, be amended and circumvented therefore address must be checked at the server to ensure this has not happened.