Web4

pdf

School

Texas Tech University *

*We aren’t endorsed by this school

Course

MISC

Subject

Computer Science

Date

Jan 9, 2024

Type

pdf

Pages

5

Uploaded by JusticeValor12962

Report
12/20/23, 3:11 PM Review Test Submission: Unit 4 Quiz Web Design 1A ... Support A t n"/"g an T ‘fi': \ aQ n,}’ b YO AT ~ \“fi r’FE \/ E Nnoe +1 w I £ NN @ m r”ffi AMm L N ,‘{‘ J “’* {»?_ NtTanN + M r I I . EII Graham D Uu clilt UasiidOodi U Vi j&“ HiloS «LJ LtULiIvil | OITIHTIUTNI ty LOlLeliL 1‘&4’"&.) ! fi‘ Units Unit 4: Introduction to JavaScript Review Test Submission: Unit 4 Quiz Review Test Submission: Unit 4 Quiz User Eli Graham Class Web Design 1A Online Course Test Unit 4 Quiz Started 10/7/23 2:30 AM Submitted 10/7/23 2:38 AM Status Completed Attempt Score 13 out of 15 points Time Elapsed 7 minutes out of 1 hour Instructions Unit 4 Quiz Results Displayed All Answers, Submitted Answers, Correct Answers, Incorrectly Answered Questions Question 1 1 out of 1 points Which of these statements will correctly print out the words “Watch out!”? ‘g Selected Answer: & console.log("Watch out!); Answers: consolelog("Watch out!"); & console.log("Watch out!"); console.log(Watch out!); log.console("Watch out!"); Question 2 1 out of 1 points Which statement explains what this line of code does? ‘g var inventory = []; Selected Answer: & creates an array called inventory Answers: creates a string called inventory creates a number called inventory & creates an array called inventory prints inventory to the console https://ttuk12.blackboard.com/webapps/assessment/review/review.jsp?attempt_id= 3892178 1&course_id= 3080 _1&content_id= 352680 1&outco... 1/5
12/20/23, 3:11 PM Review Test Submission: Unit 4 Quiz Web Design 1A ... Question 3 . 1 out of 1 points What happens to the block of code that follows an if statement when the if statement is false? Selected Answer: & It does not execute. Answers: It executes once. It executes in a loop. ¢, ltdoes not execute. It changes the variable’s value. Question 4 1 out of 1 points A variable is created with the value of 42. What will its type be? g Selected Answer: & Number Answers: Var Variable & Number String Question 5 1 out of 1 points It is considered good programming practice to have one longer function instead of several smaller _u functions. Selected Answer: & False Answers: True & False Question 6 1 out of 1 points An array is a kind of data structure. g Selected Answer: & True Answers: & True False Question 7 1 out of 1 points https://ttuk12.blackboard.com/webapps/assessment/review/review.jsp?attempt_id=_3892178_1&course_id=_3080_1&content_id=_352680_1&outco... 2/5
12/20/23, 3:11 PM Review Test Submission: Unit 4 Quiz Web Design 1A ... g In this statement, what is the name of the variable? var newCode = ‘Hector’; Selected Answer: & newCode Answers: var & newCode Hector variable Question 8 1 out of 1 points In this line of code, what is the keyword? g var flavor = 'lemon mint’; Selected Answer: & var Answers: & var flavor lemon lemon mint Question 9 1 out of 1 points - What will this program print out? "‘avara= 1,b=2,¢c=3; console.log(a); console.log(b); console.log(c); Selected Answer: 1 Answers: 123 Question 10 1 out of 1 points https://ttuk12.blackboard.com/webapps/assessment/review/review.jsp?attempt_id=_3892178_1&course_id=_3080_1&content_id=_352680_1&outco... 3/5
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
12/20/23, 3:11 PM Review Test Submission: Unit 4 Quiz Web Design 1A ... g What is the output of this program? var a = 6; varb = 5; varsum =a +b; console.log(sum); Selected Answer: & 11 Answers: 6 5 & 11 sum Question 11 0 out of 1 points - It is normally better to use == than ===. Selected Answer: Q True Answers: True & False Question 12 1 out of 1 points A function declaration has to begin with the word define. g Selected Answer: & False Answers: True & False Question 13 1 out of 1 points The purpose of a function is to: Selected Answer: & allow the reuse of a block of code. Answers: create a loop. create a variable. & allow the reuse of a block of code. create an if/else statement. Question 14 0 out of 1 points https://ttuk12.blackboard.com/webapps/assessment/review/review.jsp?attempt_id=_3892178_1&course_id=_3080_1&content_id=_352680_1&outco... 4/5
12/20/23, 3:11 PM Review Test Submission: Unit 4 Quiz Web Design 1A ... What will this line of code do? Ex colors.push(“navy”); Selected Answer: Q change the index number of “navy” Answers: create an array called navy remove “navy” from an array called colors & add “navy” to an array called colors change the index number of “navy” Question 15 1 out of 1 points This line of code is the beginning of a/an ‘g for (var x = 1; x < 8; x++) Selected Answer: & loop Answers: function variable & loop array Wednesday, December 20, 2023 3:11:05 PM CST https://ttuk12.blackboard.com/webapps/assessment/review/review.jsp?attempt_id=_ 3892178 1&course_id= 3080 _1&content_id= 352680 1&outco... 5/5