Top answers

All subjects
All levels

Show how you would give all elements that have a class of 'class1', a green background.

.class1{ background-color: 'green'; } The full-stop before the text indicates that this css rule applies to a class with the name 'class1'.Inside the rule, the background-color attribute is given a value ...

JC
1588 Views

Suppose that you have a <p> element with an id of 'id1'. Use javascript to set the inner html of this element to 'hello!'

We will do this in 2 steps to make it easier to understand. Firstly, we need to obtain the actual <p> element with javascript. To do this, we use the following command:var p = document.getElementByI...

JC
Answered by Jamie C. Javascript tutor
1158 Views

Find the integers n such that 4^(n)-1 is prime.

4^(n)-1 factors to (2^(n)-1)(2^(n)+1) by difference of two squares by definition of a prime (only has factors 1 and itself (given that itself isn't 1))So Exactly one of the brackets should = 1 for 4^(n)-1...

GH
Answered by George H. Maths tutor
2713 Views

Give a segment of python code that will print the numbers 1 to 7, each one on a new line

for x in range(1,8) : print(x) The range(1,8) function gives us an array of numbers from 1 to 7. The number on the right is the upper bound of the numbers which is why only 1 to 7 is returned.From here, a...

JC
Answered by Jamie C. Python tutor
3169 Views

Given that y = x^2 +2x + 3, find dy/dx.

We use a typical rule for polynomials in the form y = axb , where a and b are real numbers. Also, for a polynomial equation y = axb +cx

JC
Answered by Jamie C. Maths tutor
5319 Views

We're here to help

contact us iconContact ustelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences