1.3.4 - Web Technologies Flashcards

(32 cards)

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

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?

What can a developer do stop a web crawler from indexing a site?

A

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

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
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.
  • Users are not searching on the web, they are searching in the search provider’s index.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is PageRank and 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. Stored as a weighted, directed graph.

  • 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 is 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

How can a website improve its PageRank Score?

A
  • Use meta tags (describes the content of the webpage)
  • Use a lot of relevant keywords in the text of pages and in headings
  • Increase the number of quality incoming links from sites with a higher rank than them
  • Increase the number of outgoing links
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
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 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
9
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
10
Q

How is a class identified in HTML and CSS?

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

How is an ID identified in HTML and CSS?

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

What is the purpose of the div tag?

A

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

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

What would be the HTML code to create a bullet point list with the values “Hello” and “World” in the list?

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

What would be the HTML code to create a numbered list with the values “Hello” and “World” in the list?

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

What HTML tags are used to embed JavaScript in an HTML page?

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

What HTML tags are used to embed CSS in an HTML page?

17
Q

How would I add a link to the BBC home page using HTML code?

18
Q

How would I add a 100x100 image called “smile.png” to an HTML page and set appropriate alternative text?

19
Q

What is the HTML code to add a form to a page with a text box and a submit button?

20
Q

What are the three largest headings in HTML?

21
Q

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

A

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

22
Q

How do you get JavaScript to show an alert box?

A

alert(“Message to alert”)

23
Q

How do you capture the input from a form textbox using JavaScript?

A

passcode = document.GetElementById(“nameOfID”).value

24
Q

How do you update an element in an HTML element using JavaScript?

A

document.GetElementById(“nameOfID”).innerHTML = “Hello World”

25
How do you write a **WHILE** loop in **JavaScript**?
26
How do you write an **IF** statement in **JavaScript**?
27
How do you write a **function** in **JavaScript**?
28
What is **server-side processing**? Where might it be used? Which language studied is an example?
* 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 language: SQL**
29
What is **client-side processing**? Which language studied is an example?
Processing takes place in the web browser **Example language: JavaScript**
30
What are the pros and cons of **server-side processing**?
(+) 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.
31
What are the pros and cons of **client-side processing**?
(+) Does not require data to be sent back and forth meaning the code is much more responsive. (-) 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.
32
Why check data on the client side **AND** the server side?
* 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.