Questions added in January:

Exam FAQ

An essay question could be about some scenario in some organisation. For example, an organisation might want to build a website with shopping carts. You might then be asked to describe how you would implement such a tool (in broad terms, without writing code). You might be asked what SSWL technologies you would use and about security, performance, user aspects, etc of such an application. (For your revision, you could go through the materials provided for each week and determine how these apply to these questions.)

Examples of multiple choice questions

(Note: the questions below were originally in the exam, but were then taken out because they were either too difficult or too easy or not clear. So, hopefully, the real exam questions are "better" than the ones below.)
1) What is the output of the following script?

@things = ('poster', 'desk', 'cat', 'dog', 'cat', 'poster',
'dedication', 'chair', 'catalog', 'd', 'manual', 'road', 'rodeo');
foreach $thing (@things){
        if ($thing =~ /^d.+/) {$d++;}
        if ($thing =~ /.*cat.*.*.*.*$/) {$cats++;}
}
print "There are $d 'D-Words', and $cats cats in the list\n";

a) There are 3 'D-Words', and 4 cats in the list
b) There are 4 'D-Words', and 4 cats in the list
c) There are 4 'D-Words', and 3 cats in the list
d) There are 3 'D-Words', and 3 cats in the list
e) None of the above.

---------------------------------------------------------------

2) Which of the following is equivalent to
  while ($first <= $second)?

a) while ($first < $second)
b) until ($first > $second)
c) while ($first >= $second)
d) until ($first <= $second)
e) while ($first == $second)

---------------------------------------------------------------

3) Which of the following techniques can NOT be used for maintaining state
in server-side applications?

a) Cookies can be set on a user's computer.
b) Hidden text can be included in an HTML form and can be passed from one
CGI script to the next.
c) A server-side database which uses IP addresses as keys.
d) If a session ID is generated, information which is associated with
that ID can be stored in server-side files or databases. 
e) None of the above.

---------------------------------------------------------------

4) Which of the following is not a server-side web language?

a) Perl using mod_perl on Apache
b) Python/CGI
c) FastCGI
d) Sun Java Server Pages
e) Javascript