COMP519 Examination


The COMP519 examination accounts for 25% of the overall course grade.
It is a one hour exam that consists of fifty multiple-choice questions, each with five possible answers.
Some sample questions are given below.
If you have read the course notes, have been paying attention during the lectures and practical sessions, and have accomplished a half-way decent performance on the four programming assessments, then I think you should do well on the examination without too much difficulty.

Sample examination questions

Note: These few questions below are obviously not exhaustive of all topics we have discussed, and are not necessarily ones that will appear on the January examination.

  1. What does SQL stand for?
    1. Specialized Query Language
    2. Standard Question Lingo
    3. Structured Question Language
    4. Structured Query Language
    5. Standard Query Language

  2. What is the output of the following Python code?
    t = "Greetings friends!"
    print (t * 3)
    1. Greetings friends! * 3
    2. Greetings friends!
    3. Greetings friends!Greetings friends!Greetings friends!
    4. Greetings Greetings Greetings friends! friends! friends!
    5. None of the above.

  3. How can you open a link in a separate browser window?
    1. <a href="mypage.html" new>
    2. <a href="mypage.html" target="new">
    3. <a href="mypage.html" target="_new">
    4. <a href="mypage.html" target="_blank">
    5. <a href="mypage.html" target="_window">

  4. Which is the correct CSS syntax (assuming it's placed inside a <style> element)?
    1. { body: color = black; }
    2. body { color: black; }
    3. body: color = black;
    4. body: { color: black; }
    5. { body; color; black; }

  5. PHP code is surrounded by delimiters. What are those delimiters? (Note: The ... is referring to one or more PHP statements and/or comments in between the delimiters.)
    1. <php> ... </?>
    2. <&> ... </&>
    3. <script> ... </script>
    4. <?php ... ?>
    5. <php> ... </php>