Answer:
ZeroDivisionError
ValueError
Explanation:
ZeroDivisionError occurs when you attempt to divide a number by
.
ValueError occurs when the argument passed into a function holds the wrong value. In this case, the string is not numeric which cannot be passed into the float() function.
Hope this helps :)
Home. HTML is the first file to be displayed
Answer:
a.material control failure
Explanation:
A material control failure is a material deficiency, or combination of significant deficiencies, that results in more than a remote likelihood that a material mis-statement in the annual or interim financial statements will not be prevented or detected.
Answer:
D. called
Explanation:
A function is executed when it is called.
Function definition comprises of the code body of the function.For example:
int add(int a, int b){
return a+b;
}
Function declaration or function prototype specifies the signature of the function ( number and type of arguments, return type). e.g,
int add(int a,int b);
Function call is when the function is executed with actual arguments:
add(2,4);
This will return 6 upon execution of function body.
Answer and Explanation:
Using Javascript:
test7_11_13(num){
If(num%7===0||num%11===0||num%13===0){
Console.log("yes it is a multiple of 7,11 or 13");
}
else{
Console.log("It is not a multiple of any of the numbers");
}
function(num){
var makeString= num.toString();
var splitString= makeString.split("");
var makeNumber= splitString.map(Number());
var New_number= makeNumber.reduce(function(a, b) {
return a+b};,0)
}
If(New_number%2===0){
Console.log("it's an even number");
}
else{
Console.log("it's an odd number")
}
If(num%2===0||num%3===0||num%5===0||num%7===0||num%11===0){
console.log("it's not a prime number");
}
else{
console.log("it's a prime number");
}
}
From the above we have used javascript if..else statements to test the conditions for each question and output the answer to the console using console.log(). In the last part for prime number, you could also choose to use else if statements(if,else if, else if) to test the value of the num parameter and output if it's a prime number.