---
# System prepended metadata

title: Solutions and explanations about the exam of J25 Programming
tags: [Computer Science, Batxillerat]

---

# Solutions and explanations about the exam of J25 Programming

## Outline the purpose of HTML, CSS and Javascript in the context of a webpage 

1)	Outline the purpose of HTML, CSS and Javascript in the context of a webpage. [5 marks]

HTML is a **markup language** that defines the **structure and content** of a webpage. 
CSS is a style sheet language that specifies **the style** of an HTML 
Javascript is a **programming language** that is **embedded in the HTML** to have acces to scripting in webpages. 

(in bold are the main ideas)

2)	Explain the purpose of an Access Point and a Router [2 marks]

An access point is a hardware that allows wi-fi connection to a wired network, usually, to a router. 

A router it's a hardware that fowards data packets between devices, finding the best route to the data flow. Usually between a local area network (LAN) and the internet.

3)	Explain the difference between a static and a dynamic web page [2 marks]

A static webpage is compound of HTML/CSS/Javascript that is stored into a server and served anytime that a specific request is done. A dynamic webpage is crafted by the server (following a script) anytime that a request is fullfilled. 

4)	What is an environment in computer science? [1 mark]

An enviroment is a set of hardware and software (libraries) that runs a particular program. Depending the context we can have different enviroments (LOCAL, INT, TEST, QA, STAGING, PRE, PRO, PUBLIC BETA) of execution of that program

5)	Explain the context of “don’t deploy on PRO on Friday” [2 marks]

Deploying means to update the execution of the program with a newer version. Usually when deploying in PRO, since it's publically available is more prone to have (critical) errors that need to be fixed. Since fixing them is not instantaneous, time has to be alloted if anything fast need to be done  (or rolled back), usually since Friday is followed by the weekend is difficult because you make your developers work on weekends extra-hours or you need to leave your production line working not as good as intended on weekends. 

6)	Define URL [1 mark]

Unique Resource Location, the specific string that identifies a particular resource (web or file) on a network (usually the internet)


7)	Here is some HTML 
Draw the output page [4 marks]

```html
<!DOCTYPE html>
<html>
<head>
	<title>My wonderful page</title>
</head>
<body>
	<h2>My First Page</h2>
	<p>Welcome to the <i>Fantasy Faculty</i></p>
	<input type="text" id="f"/>
	<button/>clickme</button>
</body>
</html>
```

Not the title "My wonderful page" should be written outside of the page since is the tab title

![imagen](https://hackmd.io/_uploads/By0lpZ7NA.png)
