Font size
WorksheetsHTML & Java
Total questions: 12
Worksheet time: 11mins
The three main languages of the web are HTML, CSS and __________ ?
Jove
Java
Jana
Jane
For JavaScript to be read by the browser, it is inserted specifically between which tags?
html
head
body
script
What is at the end of a line of JavaScript code?
#
)
;
>
What does this javascript code snippet do?
<input type="button" value="Submit" onclick="run()">
The code does nothing
An image appears on screen
Runs a piece of code when a button is clicked
In JavaScript Var stands for Variable. True or False
True
False
What are the values of the variables number 1 and number 2
input & output
<script> and </script>
13 & 15
What does this code snippet do:
<input type="button" value="Submit" onclick="run()">
Nothring
Runs a program once a button is clicked
Creates a value
Inputs a name
<script>
function run()
{
var firstword = "Good"
var secondword = "Morning"
var thirdword = "Class"
alert(firstword + " " + secondword + " " + thirdword);
}
</script>
What does "function run ()" in this code snippet .
Nothing
Runs the program below it
Closes brackets
Asks for an input
What does the code snippet below do?
<input type="number" name="number" id="num1">
Asks for id
Nothing
Allows the user to input a number
Allows the user to input a name
The code in the picture calculates?
The width of an individual
The height of an individual
The volume of for example a swimming pool
Nothing
Create a webpage which asks for height, width and length of a box, then, when a button is pressed, displays the volume of the box in an alert box.
You can use notepad. Copy and paste your code here.
Create a webpage with a button which when pressed, displays your favourite colour in a pop-up window.
Use notepad. Copy and paste your code here.
