The script presented in this page is a tool to
calculate surface area, volume and other dimensions (radius, diagonal, center of gravity) of various uniform 3D objects:
cube, barrel, cone, sphere, torus, cylinder, pyramid, parallelepiped, hexagonal prism, ...
This calculator shows also the mathematical formulas used to calculate the volume, area, and the other dimensions.
Calculate Volume and Area
JavaScript script to calculate volume and surface area.
Find volume, and area of various 3d objects.
• To Download this script, click:
Volume and Surface Area Calculator.
Daily Test with Code Example
HTML
CSS
JavaScript
PHP-MySQL
What attribute makes the input text box to not be modified by the user?
checked="checked" readonly="readonly" disabled="disabled"<input type="text" value="fixed-value" readonly="readonly" name="a_name" />
What CSS property allows you to create rounded corners in your webpage design?
background-size border-size border-radius.class {
border:2px solid blue;
border-radius:1.2em;
}
What instruction displays a confirmation dialog box to the viewer, who must then click OK or Cancel to proceed?
indexOf() confirm() prompt()var ques = window.confirm("The result of 0+0 is 0?");
if (ques) alert("Corect");
else alert("Incorrect");
Indicate the PHP function that returns the lowest number of the parameter values.
floor() ceil() min()$min_nr = min(12, 8, 25, 13);
echo $min_nr; // 8