Any help would be appreciated, im kinda short on time and im BRAND new to javascripting and some of these questions are exactly straight from the text, they need an general idea of the material. A breif description of why the answer is what it is would be nice not necessary though..Im not a complete leecher I am very good with photoshop and i got some other things i might be able to help you with if you can spare me on this quiz..
please save any flaming, if you dont want to help you dont have to post.
Conditions are always used
a. only in if statement.
b. Usually in if and while statements.
c. Usually in if , while , and switch statements.
d. Only in switch statement.
Question 2
Given variable t representing temperature, write a condition where temperature falls either in the range of -12 to 32 degrees or in the range of 60 to 88 degrees.
Question 3
In a switch statement syntax, we have switch (x) where x is best described as
a. A condition.
b. A value.
c. An expression.
d. A statement.
Question 4
The grading policy is: 90 points or more, A; 80 to 89, B; 70 to 79, C; 60 to 69, D; 59 and below, F. To convert a point score to a letter grade, you should use
a. An if statement.
b. A switch statement.
c. A while statement.
d. A for statement.
Question 5
If you are to print a square of asterisks (*) and let the user tell you how big the square would be (number of asterisks in a row), you would use
a. A while loop.
b. A for loop.
c. A nested if statement.
d. Either a or b.
Question 6
You have a list of names and scores to enter into your program to fill the arrays. You don t know how long the list is, but would like the program to stop when the list reaches the end. Which of the following would you use?
a. A while loop.
b. A for loop.
c. A nested if statement.
d. Either a or b.
Question 7
In 6, how would you end the repetition?
Question 8
Given: function greeting (name) { alert( “Hi” + name + “!” ) } Write a line to call the function.
Question 9
Given: function greater (a, b)
{
if (a >= b)
return a
else
return b
}
Write a line to call the function.
Question 10
A function can return
a. 1 value
b. 2 values
c. As many values as it needs to.
d. No values.