PowerPoint - School of Computer Science
Download
Report
Transcript PowerPoint - School of Computer Science
Lecture 20
Exam Information and
Revision
Boriana Koleva
Room: C54
Email: [email protected]
Overview
Overview of Course Content
Exam details
Revision Multiple Choice Questions
Review of a past exam paper
Course Content
Web enabling infrastructure
• Networking basics
• transmission media
• local communication (encoding data + LANs)
• long distance comms (modulation + modems)
• TCP/IP protocols
• Protocol design
• Overview of TCP/IP
• IP addresses and domain names
• Client server paradigm, Web browsers and
servers, URLs, MIME types, HTTP protocol
Course Content
Mark-up languages
• HTML
• XML
•
•
•
•
•
•
•
•
•
•
•
•
•
Syntax
Basic text markup
Images
Hypertext links
Lists
Tables
Forms
HTML 5 features
Syntax
Document Type Definitions
Namespaces
Displaying XML documents
XML Processors
Course Content
Web document presentation
• CSS
•
•
•
•
Levels of style sheets
Selector forms
Property value forms
Examples of properties
• Web design
• Website design (information structure + navigation)
• Webpage design (text, graphics, audio, video)
• What NOT to do
• Top 10 Mistakes of Web Design
• Web pages that suck
• Web Accessibility
Course Content
Client side scripting
• JavaScript
• Syntax
• Dynamic HTML
Server side scripting
• Overview of SSI, CGI Perl, Java Servlets, JSP,
ASP.NET
• PHP in more detail
• Database access with PHP
Coursework
25% of final mark
Marks and feedback sheet will be
available from the school office
• I will email when marks are ready
• Certainly available by first day of new term
(3 May)
Exam
2 hours
Answer 3 out of 5 questions
• Each of these questions focuses on a
particular topic
• Web enabling infrastructure
• Mark-up languages
• Web document presentation
• Client side scripting
• Server side scripting
Exam
Material from all lectures examinable
There will be questions only on material we
have covered in lectures
• However in the lecture notes there may be just
a few bullets or a diagram
• If you have not been taking notes it may be
necessary to consult the suggested further
reading in order to understand the topic better
and be able to provide full answers
Past Exam Papers
Available from the portal
•
•
•
•
•
use the Library Tab to search for Exam Papers
2006-2007
2007-2008
2008-2009
2009-2010
Sample exam paper
http://www.crg.cs.nott.ac.uk/~bnk/Teaching/WPS/G51W
PS0607Sample.pdf
(created when module first established)
Which of the following statements is true
about a network laid out using a bus topology?
th
e.
..
pu
te
r
on
ne
t..
.
th
e
co
m
n
If
on
e
co
m
A
ne
tw
or
k
pu
te
ro
do
es
no
t
r..
.
of
.. .
co
ns
ist
s
Th
e
D.
or
k
C.
25% 25% 25% 25%
ne
tw
B.
The network consists of a
closed loop of computers
The network does not
require any coordination by
software
A computer on the network
can directly send data to
any other computer on the
network
If one computer on the
network fails then the entire
network fails
Th
e
A.
Which of the following is not true about the
CSMA/CD protocol used by Ethernet networks?
de
t. .
.
to
us
ed
is
D
CS
M
A/
C
D
A/
C
CS
M
...
ev
en
ts
c
pr
pr
D
A/
C
CS
M
om
u.
..
ev
en
ts
s
im
se
n.
.
to
us
ed
is
D.
D
C.
A/
C
B.
CSMA/CD is used to sense
the state of the carrier
CSMA/CD prevents
simultaneous transmissions
CSMA/CD prevents
computers from interrupting
ongoing transmissions
CSMA/CD is used to detect
packet collisions
CS
M
A.
25% 25% 25% 25%
What is the Internet?
nt
er
li
A
la
rg
e
of
i
ho
m
og
en
A
ou
la
sn
rg
e
e.
ne
..
tw
or
ko
fc
om
.. .
nk
ed
, ..
.
su
s i.
.
or
k
A
sy
st
em
ne
tw
D.
of
C.
25% 25% 25% 25%
or
k
B.
Network of networks using
the TCP/IP protocol
A system of interlinked,
hypertext documents
accessed via web clients
A large homogenous
network where all
computers are identified
via their MAC address
A large network of
computers linked via pointto-point connections
Ne
tw
A.
What is an IP number?
nu
m
ue
A
un
iq
ue
un
iq
bi
t
32
s. .
nu
.
m
be
rb
A
na
ui
m
lt
e
i..
th
.
at
co
ns
ist
so
f.
..
be
ra
.. .
ti
be
rt
ha
nu
m
D.
ue
C.
25% 25% 25% 25%
un
iq
B.
A unique number that
identifies each network
32 bit unique number
assigned to hosts and
routers that use the
TCP/IP stack
A unique number built into
each Ethernet subsystem
by the manufacturer
A name that consists of a
sequence of alphanumeric
segments, separated by
period and following a
hierarchical convention
A
A.
Which of the following is not a valid
URL format?
20% 20% 20% 20% 20%
A. mailto:[email protected]
B. ftp://marian.cs.nott.ac.uk/
C. marian.cs.nott.ac.uk
ftp
m
ai
lto
:b
nk
@
E. http://www.nottingham.ac.uk
:80/
cs
://
.n
m
ot
ar
t.a
ia
n.
...
cs
.n
m
ot
ar
t.a
ia
c.
n.
..
ht
cs
tp
.n
://
ot
m
t.a
ar
c.
ia
ht
uk
n
tp
.
cs
://
.n
w
w
ot
w
t..
.n
..
ot
tin
gh
a.
..
D. http://marian.cs.nott.ac.uk/~
bnk/cgi-bin/db?number=43
How will this fragment of HTML be
displayed by a web browser?
Mary <big> had <big> a <b> little
lamb </b> </big> </big>
A.
Mary had a
B.
Mary had a little lamb
C.
Mary had a
25% 25% 25% 25%
little lamb
little
lamb
la
m
b
m
b
ar
y
ha
ar
y
M
M
d
a
ha
d
lit
a
tle
lit
tle
la
la
m
b
tle
lit
a
d
ha
M
ar
y
ha
d
a
lit
tle
la
m
b
little lamb
ar
y
Mary had a
M
D.
Which of the following is the correct HTML
script for including the image test.gif?
20% 20% 20% 20% 20%
if”
hr
>
ef
=”
te
<i
st.
m
gif
gh
”>
re
f=
“t
es
<i
t.g
m
if”
gu
>
r l=
“t
es
t. g
if”
>
es
t.g
<i
m
ag
e
m
gs
rc
=“
t
<i
m
ag
e
sr
c=
“
te
st
.g
if”
>
<image src=“test.gif”>
<img src=“test.gif”>
<image href=”test.gif”>
<img href=“test.gif”>
<img url=“test.gif”>
<i
A.
B.
C.
D.
E.
Which of the following is the correct
HTML script for making a hyperlink?
er
Sc
..
pu
t
w
<a
na
m
e=
"C
om
://
"h
ttp
hr
ef
=
<a
.
.c.
..
w
w
w
w
tp
://
"h
t
ur
l=
<a
w
.cs
.. .
.. .
.
w
w
w
://
"h
ttp
D.
m
e=
C.
25% 25% 25% 25%
na
B.
<a name =
"http://www.cs.nott.ac.uk/">
Computer Science </a>
<a url =
"http://www.cs.nott.ac.uk/">
Computer Science </a>
<a href =
"http://www.cs.nott.ac.uk/">
Computer Science </a>
<a name = "Computer
Science">
http://www.cs.nott.ac.uk/
</a>
<a
A.
Which of the following statements is not
true about Cascading Style Sheets (CSS)?
..
a
is
SS
C
m
ay
SS
C
st
yl
e.
em
b.
be
W
3C
a
is
SS
C
..
r..
.
...
lin
fil
e
D.
SS
C.
C
B.
25% 25% 25% 25%
A CSS file linked to a HTML
document via the <LINK> tag can
control the appearance of only
that document and no others
CSS is a W3C recommendation,
and is now very widely used
CSS may be embedded into
HTML using the <STYLE> tag or
stored in a separate file
CSS is a style language
developed for HTML that can also
be used with XML
A
A.
What will be the effect of the following
CSS rule:
td.red {color: red}
en
ts
el
em
Ta
bl
e
ce
ll
ce
ll
D.
le
C.
ta
b
B.
All table cell elements will
appear in red font
Table cell elements whose
class has been set to ‘red’
will appear in red font
All term definition elements
(in a definition list) will
appear in red font
Term definition elements
whose class has been set
to ‘red’ will appear in red
font
Al
l
A.
w
el
i..
em
en
Al
ts
lt
w
er
ho
m
s..
de
.
fin
iti
on
Te
el
rm
em
de
. ..
fin
it i
on
el
em
en
..
25% 25% 25% 25%
Which of the following statements
is not true about Java Script?
si
cr
ip
ti
Ja
va
S
cr
ip
Ja
va
S
cr
ip
ti
sa
n
ob
je
ct
-b
...
nt
er
pr
et
ti
ed
s
lo
Ja
.
o
va
s
e
Sc
ly
rip
ty
ts
pe
cr
d.
Ja
ip
va
t
sc
Sc
an
rip
is s
ts
cr
..
ip
ts
re
qu
ir.
..
20% 20% 20% 20% 20%
Ja
va
S
A. JavaScript is an objectbased scripting language.
B. JavaScript is interpreted.
C. JavaScript is loosely
typed.
D. JavaScript scripts can
issue HTTP requests and
load other pages.
E. JavaScript scripts require
the Java Virtual Machine
to be loaded.
One of the differences between Java and JavaScript is
that Java is said to be a “strongly typed” language
whereas JavaScript is “loosely typed”. Which of the
following is the most appropriate description of this
distinction?
p.
..
a
bl
ar
ia
In
Ja
v
av
aS
cr
Ja
v
In
re
es
a
sn
ti
ip
ti
ta
da
he
at
Ja
v
In
ev
er
...
. ..
of
ty
pe
ia
va
r
ll
ip
ta
D.
aS
cr
C.
Ja
v
B.
In JavaScript all variables are accessible
within an HTML document (effectively
global), whereas in Java scoping is
tightly controlled
In Java the data type of variables must
always be specified, whereas in
JavaScript data types are not declared,
even when variables are
In JavaScript it is never necessary to
declare variables before they are used,
whereas in Java this is essential
In Java variables are a property of a
class, whereas in JavaScript they are a
property of a document
In
A.
bl
e.
..
25% 25% 25% 25%
Given the following HTML:
<form name = "myForm" action = "">
<input type = "button" name = “onButton”
id = “turnItOn"> </form>
Which of the following is not a correct way to address
the button in JavaScript?
...
yF
or
m
.o
nB
.t
ur
. ..
m
um
en
t. m
yF
or
do
c
en
t. m
um
do
c
en
t. f
or
m
um
do
c
do
c
um
en
t. g
et
E
le
m
en
tB
y..
.
A. document.getElement
ById("turnItOn")
B. document.forms[0].
elements[0]
C. document.myForm.
turnItOn
D. document.myForm.
onButton
s[0
].
el
e.
..
25% 25% 25% 25%
Which of the following statements
is not true about PHP?
pe
d
m
ica
lly
ty
...
PH
P
is
dy
na
br
ow
Th
e
w
eb
ts
a
sc
r ip
PH
P
se
rm
us
t
be
dd
e.
..
re
is
in
em
te
rp
re
te
d
25% 25% 25% 25%
PH
P
A. PHP is interpreted
B. PHP scripts are
embedded in XHTML
documents
C. The web browser must
support the PHP system
in order to display the
result of PHP scripts
D. PHP is dynamically
typed
Which of the following is the correct way to
define a PHP function with name “sum” that
should take and add together 2 integer
parameters named “a” and “b”
20%
20%
20%
20%
20%
function
sum($a,
$b)
function
sum(a, b)
A. sum($a, $b)
B. sum(int a, int b)
C. function sum (int a,
int b)
D. function sum($a, $b)
E. function sum(a, b)
sum($a,
$b)
sum(int a, function
int b)
sum (int a,
int b)
What is a cookie?
rie
s
se
A
..
st
s.
re
qu
e
of
in
in
g
nt
a
co
A
fil
e
al
l
sm
A
in
fo
...
o.
..
at
io
n
o.
..
n
in
fo
rm
at
io
in
fo
rm
D.
al
l
C.
25% 25% 25% 25%
sm
B.
A small information object
consisting of a name and a
textual value stored on the
client
A small information object
consisting of a name and a
textual value stored on the
server
A file containing information
about clients stored on the
server
A series of requests between
a client and a server
A
A.
Which of the following statements
is not true about XML?
25% 25% 25% 25%
A. XML is a metalanguage
de
pl
ay
to
a
is
XM
L
al
lo
w
s
di
s
yo
u
si
gn
XM
L
de
fo
rm
...
fo
...
ed
gu
XM
L
w
as
m
et
al
an
a
is
XM
L
D. XML is a display format
ag
e
C. XML allows you to
define a set of tags
appropriate to your
domain
at
B. XML was designed for
the WWW, but is also
applicable in many other
areas