Difference between revisions of "WebFund 2015W: Assignment 1"

From Soma-notes
Jump to navigation Jump to search
Line 1: Line 1:
'''This assignment is not yet finalized.'''
'''This assignment is not yet finalized.'''


Answer the following questions about the material covered in the first two weeks of lecture, Tutorial 1, the assigned lessons from Code Academy.  There are ??? points in ??? questions.
Answer the following questions about the material covered in the first two weeks of lecture, Tutorial 1, the assigned lessons from Code Academy.  There are 10 points in 5 questions.  There is also 1 point for a bonus question.


Please submit your answers as a single text or PDF file called "<username>-comp2406-assign1.txt" or "<username>-comp2406-assign1.pdf", where username is your MyCarletonOne username.  The first four lines of this file should be "COMP 2406 Assignment 1", your name, student number, and the date.  You may wish to format answers.txt in [http://en.wikipedia.org/wiki/Markdown Markdown] to improve its appearance.  If you do so, you may convert your text file to PDF using [http://johnmacfarlane.net/pandoc/ pandoc].
Please submit your answers as a single text or PDF file called "<username>-comp2406-assign1.txt" or "<username>-comp2406-assign1.pdf", where username is your MyCarletonOne username.  The first four lines of this file should be "COMP 2406 Assignment 1", your name, student number, and the date.  You may wish to format answers.txt in [http://en.wikipedia.org/wiki/Markdown Markdown] to improve its appearance.  If you do so, you may convert your text file to PDF using [http://johnmacfarlane.net/pandoc/ pandoc].
Line 15: Line 15:
# Why do web applications often use a separate template language to generate web pages (such as Jade) rather than using the language of the application (e.g., Java, Python, JavaScript)?  (Note that PHP is an exception to this!)
# Why do web applications often use a separate template language to generate web pages (such as Jade) rather than using the language of the application (e.g., Java, Python, JavaScript)?  (Note that PHP is an exception to this!)
# Is JavaScript an untyped language?  Explain briefly.
# Is JavaScript an untyped language?  Explain briefly.
# [BONUS 1] What do you find most confusing about the material covered so far in COMP 2406?  Note you do NOT get a bonus mark for saying "nothing"!

Revision as of 16:45, 13 January 2015

This assignment is not yet finalized.

Answer the following questions about the material covered in the first two weeks of lecture, Tutorial 1, the assigned lessons from Code Academy. There are 10 points in 5 questions. There is also 1 point for a bonus question.

Please submit your answers as a single text or PDF file called "<username>-comp2406-assign1.txt" or "<username>-comp2406-assign1.pdf", where username is your MyCarletonOne username. The first four lines of this file should be "COMP 2406 Assignment 1", your name, student number, and the date. You may wish to format answers.txt in Markdown to improve its appearance. If you do so, you may convert your text file to PDF using pandoc.

No other formats will be accepted. Submitting in another format will likely result in your assignment not being graded and you receiving no marks for this assignment. In particular do not submit an MS Word or OpenOffice file as your answers document!


Questions

  1. When a web browser loads a standard web page, what type of HTTP request does it make of the server? And, if the requested URL is valid, what is the standard response code?
  2. Would you normally use jQuery with client side or server side JavaScript? Why?
  3. Briefly explain how the values of two HTTP header fields are used by standard web servers to customize their responses. You may choose any two standard HTTP headers.
  4. Why do web applications often use a separate template language to generate web pages (such as Jade) rather than using the language of the application (e.g., Java, Python, JavaScript)? (Note that PHP is an exception to this!)
  5. Is JavaScript an untyped language? Explain briefly.
  6. [BONUS 1] What do you find most confusing about the material covered so far in COMP 2406? Note you do NOT get a bonus mark for saying "nothing"!