1. If variable answer stores a Boolean value, then what are thepossible values for the variable?
2.
What message will be displayed after the execution of thefollowing code segment?
var BMI = 30;
if(BMI>18.5)
alert( “Overweight”);
else
alert(“Underweight”);
3.
Write a JavaScript statement for the following;
if total amount is $25 or more, shipping charge is 0.
4.
Considering the following code segment:
if(x>y) {
y=x;
}
else if (x == y){
x=1000;
}
else{
y =100;
}
alert ( ‘x=’ + x + ‘, y = ‘+y);
Given x=0 and y=5, what will be displayed?
5.
onsidering the following code segment:
if ( num >0) {
alert(“It’s a positive num.”);
}
else {
alert(“It’s a non-negative num.”);
}
What will be displayed if num=0?
6.What is conditional execution?
7.Explain why ‘100’ is considered less
PayPal Gateway not configured
PayPal Gateway not configured