1.3.4 Web Technologies Flashcards

You may prefer our related Brainscape-certified 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.

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

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

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
10
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
11
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
12
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
13
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
14
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
15
Q

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

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

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

A
17
Q

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

A
18
Q

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

A
19
Q

What are the three largest headings in HTML?

A
20
Q

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

A

<title> HELLO WORLD </title>

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

21
Q

How do you get JavaScript to show an alert box?

A

alert(“Message to alert”)

22
Q

How do you capture the input from an HTML element using JavaScript?

A

passcode = document.GetElementById(“nameOfID”)

23
Q

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

A

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

24
Q

How do you write a WHILE loop in JavaScript

A
25
Q

How do you write an IF statement in JavaScript

A
26
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

27
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

28
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.
29
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.
30
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.