Question: 1 . A definite loop is dependent on to continue and ultimately stop iteration. a) user input an msg variable a sound d) a counter



1 . A definite loop is dependent on to continue and ultimately stop iteration. a) user input an msg variable a sound d) a counter 2. One purpose of functional programming (using secondary functions within your code ) is a) to give the programmer a headache b) to reduce the amount of redundant code in a program used to make calculations more tedious d) used to make a program longer so it is easier to make errors, therefor making debug time longer 3. All values obtained from user input on a webpage are in the data type of a) integer b) String Boolean d) float 4. The statement "a is less than both b and c" is translated to which of the following JavaScript conditions? a) (a > b) | (a > c) b) (a > b) & & (a 0 || 0 && x 0 && x "; } A) I- B) I=~5 (3) i125 D) Ih The return keyword ls . A) used to return your code back to its original state prior to saving B) is used to break out of a function and send a value back to the caller {3) reset a counter variable back to its original value D) a silly name for something that does not exist The purpose of$["} is to a} examine the corresponding class of an element b} access an element by its unique It} or CLASS o} assist 1with addition in an statistics formula d} determine its form button has been clicked Values are sent as to a function and the function receives these values in variables called A) parameters. arguments B} integers.oats {3) arguments, parameters D) huh? function funStuff ( x y , z) { X = y + 30; Z = x + 20; y = z + 60; return y; And given a segment of the code from a main function var num1 = 40; var num2 = 20; var num3 = 30; while( num1 > num3 ) { if( num2 > num1 ) { num3 = funStuff( num1, num2, num3 ); else { num2 = funStuff( num1, num2, num3 ); } // ends while loop Answer the following questions (4 points each) a) What is the final value assigned to num1? b) What is the final value assigned to num2? What is that
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
