Top answers


How would you change the background colour of a div with the id "colourme" to purple?

var div=document.getElementById("colourme"); div.style.backgroundColor = "purple"
GH
Answered by George H. Javascript tutor
1913 Views

What is the outcome of the following code? print(2*[3,4,5])

[3, 4, 5, 3, 4, 5] will be printed.
GH
Answered by George H. Python tutor
2145 Views

What is the correct HTML to link a stylesheet?

<head> <link rel="stylesheet" type="text/css" href="style.css"> </head>
GH
2173 Views

Using the binomial theorem, find the coefficient of x^4*y^5 in (x-2y)^9.

The term containing x 4 y 5 will be C(9, 5) x 4 (-2y) 5 = (9!/(5!4!)) x 4 (-2) 5 y 5 The coefficient of which will be 126 -32= -4032
GH
Answered by George H. Maths tutor
4005 Views

There are 48 girls in a large cheerleading squad. The ratio of girls to boys in this squad is 8:3. How many boys are in the squad?

There are (48/8)*3=18 boys. Since the ratio of boys to girls is 8:3 you divide the number of girls by 8 which gives 6 and then multiply by 3 to give the number of boys.
GH
Answered by George H. Maths tutor
3263 Views