Question 11 2019 · October-November · Paper 33 · 0 marks
Reveal official mark-scheme answer
Official answer for Question 11
Question 6
Show text version of question
Question 11
The area of a rectangle can be calculated using the JavaScript embedded in a web page as shown below.
1 <html> 2 <body> 3 <script> 4 var length = parseFloat(prompt("Enter length of the rectangle : ")); 5 var width = parseFloat(prompt("Enter width of the rectangle : "));
Question 6
7 var calc_area = (length * width);
Question 8
9 document.write("<br>"); 10 document.write("<h3> Area of a rectangle</h3>"); 11 document.write("<font face='arial' size='3'>")
Why this question appears here
98% assigned-topic match · Programming for the web
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9626_w19_qp_33.pdf
