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.
Answer:
C. E-mail
Explanation:
Electronic mail is the best choice to convey urgent and highly sensitive information
Answer:
The above given statement is a fact.
Explanation:
A fact is nothing but a real statement which can never be false or imaginary or told in a future perspective. Let us analyze other options
Option 2: Opinion => An opinion can be anything and it can differ. A opinion is the way one people understand or perceive and give a statement according to that. An opinion always differs.
Option 3: Graphic => This is computer generated file, which can be true or false or imaginary. So this option is invalid
Option 4: Text => A text is nothing but words written together to convey a meaning. Though we feel like it suits the question, since the question speaks about the place, then it must definitely be fact and not just text.
Composition- a work of music, literature, or art
This is important because art helps people express oneself
Answer:
B. the current affairs page
Explanation:
it's a simple question