1. Explain the following acronyms and how each one is used.
a. HTML
b. HTTP
c. CSS
2. What is client/server programming? Give two examples.
3. Name five HTML tags and explain what their purposes.
4. (a) Explain two different ways you can run a Python program.
(b) Name three data structures Python provides.
5. Explain each line of the following code. What is the output?
import math
def func(a):
s = 0.0
for i in range(len(a)):
s += a[i]
b = s / len(a)
s = 0
for i in range(len(a)):
s += (a[i] - b) * (a[i] - b)
return b, math.sqrt(s)/len(a)
x = [1,3,3,3,5]
print x
print func(x)