wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Javascript & Client side scripting

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.
Which of the following languages is used for server side scripting on the web?
a)
HTML
b)
Javascript
c)
PHP
d)
CSS
2.
Which of the following is used for client side scripting in browsers?
a)
Javascript
b)
HTML
c)
CSS
d)
PHP
3.
Choose one reason a developer might use client side scripting on a web page
a)
It's easier to write for a client
b)
It allows some of the processing to be done by the user's machine
c)
The client can save options to the database
d)
The client is more powerful than the server
4.
Which of the following is an example of what is usually done using client side scripting?
a)
Accessing web databases
b)
Complex calculations
c)
Simple validation of user input
d)
Secure transactions
5.
In Javascript how do you declare a variable?
a)
myname = "Bob"
b)
$myname = "Bob"
c)
Dim myname = "Bob"
d)
var myname = "Bob"
6.
Javascript is case-sensitive
a)
True
b)
False
7.
Each statement in Javascript ends with...
a)
A new line
b)
A semi-colon
c)
A colon
d)
A curly bracket
8.
How do you delimit blocks of code in Javascript (eg an if statement or loop)
a)
With curly brackets {}
b)
With round brackets ()
c)
With square brackets []
d)
With tabs
9.
How do you show a pop up in Javascript?
a)
popup("Hello World")
b)
print("Hello World")
c)
alert("Hello World")
d)
msgbox("Hello World")
10.
What is CSS used for?
a)
styling web pages
b)
formatting script correctly
c)
client side scripting
d)
server side scripting