Question: MULTIPLE CHOICE 1. Which type of loop executes at least once? a pre-test b. post-test c. for d. while 2. What is the value of

 MULTIPLE CHOICE 1. Which type of loop executes at least once?a pre-test b. post-test c. for d. while 2. What is thevalue of x after the following statement executes, given that initially x= 8: x*=3; a 11 b. 8 c. 24 d. 5 3.How many times will "Happy Day!" display after the following code is

MULTIPLE CHOICE 1. Which type of loop executes at least once? a pre-test b. post-test c. for d. while 2. What is the value of x after the following statement executes, given that initially x = 8: x*=3; a 11 b. 8 c. 24 d. 5 3. How many times will "Happy Day!" display after the following code is executed? var m = 3; for (var p = 1; p > m; p++) document.write("Happy Day!"); a 3 b. 2 c. 1 d. none 4. How many times will "bye bye" display after the following code is executed? var b = 3; var g = 1; do document.write("bye bye"); g++; while (g > b) a. 3 b. 2 C. 1 d. none 5. In the following statement, what is the test condition? for (var y = 2; y y; x++) a. x = 500; b. x = 600; C. x > y; d. none of these 11. What is the value of count when the following loop is exited? var count = 20; while( count = 0; x--) document.write (name.charAt(x) + " "); a. L I am b. mail d. m, a, i, e. None C. mail iam am am L, 13. Which of the following will test if a password entered by a user, stored in a variable named pwrd, is within the 8-character length restriction, specified in the instructions? a. var lgth = pwrd.length; if (lgth == 8) b. if (pwrd.length 0; count--) 4. True/False: The problem with a do...while loop is that the test condition cannot be a compound condition. 5. True/False: The following test condition is not valid because the toLowerCase() method cannot be included as part of a test condition: while (toLowerCase(string) 6. True/False: If num is an integer variable, num++ and ++num can be used interchangeably in any program since the results will always be the same. 7. True/False: In the string.fromCharCode() method, string should be the name of the variable you are using in your program. 8. True/False: The string.fromCharCode() method is a static method. 9. True/False: All the ASCII characters are included in the Unicode Standard. 10. True/False: The charCodeAt() method changes the Unicode value of the character at the specified index in a string to its ASCII value. Then it returns the alphanumeric character that corresponds to the ASCII value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!