option
Questions
ayuda
daypo
search.php

Assessments for Programming and Artificial Intelligence - Practical - 2026

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
Assessments for Programming and Artificial Intelligence - Practical - 2026

Description:
General Education (First Secondary Grade) First Semester of the 2025/2026 Academ

Creation Date: 2026/04/17

Category: Computers

Number of questions: 96

Rating:(0)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

Select the correct way to write the p tag. <p>Hello</p>. <p>/Hello<p>. </p>Hello<p>. <p>Hello<p>/.

Select the appropriate tag to be used to break a line of text. p tag. br tag. h5 tag. b tag.

Choose the appropriate tag to create a bulleted list like the following. ・Banana ・Oranges ・Apples. ul tag. p tag. ol tag. br tag.

Choose what will be displayed. <ol> <li>Cut ingredients</li> <li>Stir-fry</li> <li>Add seasonings</li> </ol>. Cut ingredients Stir-fry Add seasonings. 1.Cut ingredients 2.Stir-fry 3.Add seasonings. (Cut ingredients) (Stir-fry) (Add seasonings). ・Cut ingredients ・Stir-fry ・Add seasonings.

Select a tag to display an image with the image name "image.png". <img><"image.png">. <img="image.png">. <img src="image.png">. <src="image.png">.

Choose the correct way to write the "alt attribute" which allows you to add a description to the image. <alt="This is an image.">. <img><"This is an image.">. <img="This is an image.">. <img alt="This is an image.">.

Select the correct description for the "color" property. Change the background color. Change the text color. Change the image color. Change the font size.

Select the correct description for the "background-color" property. Change the image color. Change the text color. Change the font weight. Change the background color.

Select the correct description for the value of the "font-weight" property as "bold.". Text becomes thin. Text color changes to gold. Font size becomes smaller. Text becomes bold.

Select the correct value for the "font-size" property. font-size: 10px;. font-size: 10;. font-size: 10g;. font-size: 10size;.

Please select what kind of display you would like to use. <ul> <li>strawberry</li> <li>cherry</li> <li>orange</li> </ul>. strawberry cherry orange. (strawberry) (cherry) (orange). 1.strawberry 2.cherry 3.orange. ・strawberry ・cherry ・orange.

Select the correct description for the "background-color" property. Change the font color. Change the background color. Change the font weight. Change the image color.

Select the correct description for the value of the "font-weight" property as "bold". The font color becomes gold. The font size becomes smaller. The font becomes thin. The font becomes bold.

Please select the correct expression for the condition "the variable score equals 50". score == 50. score = 50. score > 50. scor.

Please select the correct expression for the condition "A is less than B". A == B. A > B. A < B. A <= B.

Please select the program that represents the condition "the variable score is greater than or equal to 50". score >= 50. score > 50. score == 50. score <= 50.

Please select the correct operator that represents "multiple conditions are simultaneously satisfied" (AND). ||. &&. |. &.

Please select the correct operator that represents "at least one of multiple conditions is satisfied" (OR). |. &&. ||. ||.

Please select the output result of the following program: let math = 100; if (math == 100) { let fee = 500; } console.log(fee + " codycoins GET");. "500 codycoins GET" is output. It results in an error.

Please select what to write at the beginning of a program that expresses "repeat outputting apple to the console 10 times". for. let. if. num.

Please select the correct program to add 1 to variable i. i++. i+1. i+. i++1.

Please select the correct program to repeat a specified process 10 times. for { specified process; } ( i < 10; let i = 0; i++; ). for (i < 10; let i = 0; i++; ) { specified process; }. for (let i = 0; i++; i < 10) { specified process; }. for (let i = 0; i < 10; i++) { specified process; }.

Select the execution result of the following program from the choices: for (let i = 0; i < 3; i++) { let num = 100; } console.log(num);. 100 is output. It results in an error.

Select the execution result of the following program from the choices: for (let i = 0; i < 3; i++) { console.log("A"); if (i == 1) { console.log("B"); } }. AAAA. ABA. ABAA. AABA.

Please select the rewritten program for "i = i + 2". i = 2. i+++. i += 2. i =+.

Please select the correct program to create a function move without parameters. move() function { Program to Run }. function move() { Program to Run }. function move { Program to Run }. move function { Program to Run }.

Select the correct console output when the following program is executed: function calc(num) { let result = num + 5; return result; } console.log(calc(50));. 50. 45. 55. Nothing is output.

Select the correct console output when the following program is executed: function calc( number ){ let answer = number * 10; return answer; } console.log( calc(3) );. 0. 3. 30. 10.

Select the result of executing the following program from the choices below: function calc(num) { let answer = num * 3; return answer; } console.log(answer);. It results in an error. It doesn't result in an error.

Please select the correct operator that represents "multiple conditions are simultaneously satisfied" (AND). |. &&. &. ||.

Select the execution result of the following program from the choices: for (let i = 0; i < 3; i++) { let num = 100; } console.log(num);. It results in an error. 100 is output.

Select the execution result of the following program from the choices: for (let i = 0; i < 4; i++) { console.log("0"); if (i == 2) { console.log("1"); } }. 00100. 00000. 00001. 00010.

Please select the rewritten program for "i = i + 5". i+++. i = 5. i += 5. i =+ 5.

Please select the correct program to create a function move without parameters. move function { Program to Run }. function move() { Program to Run }. function move { Program to Run }. move() function { Program to Run }.

Please select the execution result of the following program from the choices. let num = 1; for (let i = 0; i < 3; i++) { num = num * 2; } console.log(num);. 8. 4. 16. 2.

From the choices, select the most appropriate representation of how the value of variable i changes in the following program. let num = 1; for(let i = 1; i <= 7; i++){ num = num * 2; } console.log(num);. 0→1→2→3→4→5→6→7. 0→1→2→3→4→5→6. 1→2→3→4→5→6→7. 1→2→3→4→5→6.

let tempList = [36.2, 36.5, 36.3, 36.8, 36.4]; console.log(tempList[2]);. 36.5. 36.3. 36.3.

Please select the output result when the following program is executed: let scoreList = [52, 60, 79, 82, 66, 59, 88]; console.log(scoreList[2]);. 79. scoreList[2]. 82. 60.

From the choices, select the most appropriate representation of how the value of variable i changes in the following program. let num = 1; for (let i = 1; i <= 4; i++) { num = num * 2; } console.log(num);. 1→2→3→4. 0→1→2→3. 1→2→3. 0→1→2→3→4.

What are for loops used for?. Repeating things. Repeating rings. Rerouting trains.

Please select the result of executing the following program. let numList = [8, 6, 11, 10, 9, 7, 12]; console.log(numList[2]);. 6. numList[2]. 11. 10.

Please select the result of executing the following program. let numList = [10, 11, 12]; for (let i = 0; i < 3; i++) { console.log(numList[i]); }. 12 11 10. 10 11 12. numList[i]. 10.

Please select the result of executing the following program. let numList = [5, 6, 7]; for (let i = 0; i < numList.length; i++) { console.log(numList[i]); }. 5. 7 6 5. 5 6 7. numList[i].

Select the output result from executing the following program: let A = 500; let B = 0; if (A >= 1) { B = B + 100; console.log(B); }. 500. Nothing is output. B. 100.

Select the output result from executing the following program: let weather = "sunny"; let group = "B group"; if (weather == "sunny") { if (group == "A group") { console.log("Destination is the park"); } else { console.log("Destination is the amusement park"); } } else { console.log("Destination is the aquarium"); }. Destination is the amusement park. Destination is the aquarium. Nothing is output. Destination is the park.

Please select the result of executing the following program. let numList = [5, 6, 7]; for (let i = 0; i < numList.length; i++) { console.log(numList[i]); }. 7 6 5. 5 6 7. 5. numList[i].

Select the program that outputs the following. The last day of June is the 30th. let month = "June"; let lastDay = "30th"; console.log("The last day of " + month + " is the " + lastDay + ".");. let month = "June"; let lastDay = "30th"; console.log("The last day of " month " is the " lastDay ".");. let month = "June"; let lastDay = "30th"; console.log("The last day of + month + is the + lastDay + .");. let month = "June"; let lastDay = "30th"; console.log("The last day of " * month * " is the " * lastDay * ".");.

Select the result that will be output when this program is executed. let favoriteFood = "hamburg steak"; let lunchMenu = "sushi"; if (favoriteFood != lunchMenu) { console.log("Today's lunch is " + lunchMenu + "."); } else { console.log("Today's lunch is my favorite, " + favoriteFood + "."); }. Today's lunch is sushi. Today's lunch is my favorite, hamburg steak.

Select the program that outputs the following. Today's weather is sunny. You don't need an umbrella. let weatherForecast = "sunny"; console.log("Today's weather is " + weatherForecast + "."); if (weatherForecast == "rainy") { console.log("You don't need an umbrella."); }. let weatherForecast = "sunny"; console.log("Today's weather is " + weatherForecast + "."); if (weatherForecast != "rainy") { console.log("You don't need an umbrella."); }. let weatherForecast = "sunny"; console.log("Today's weather is " weatherForecast "."); if (weatherForecast != "rainy") { console.log("You don't need an umbrella."); }. let weatherForecast = "sunny"; console.log("Today's weather is " weatherForecast "."); if (weatherForecast == "rainy") { console.log("You don't need an umbrella."); }.

Select the program that outputs the following. You can't get on an attraction. let height = 130; let weight = 50; if ((height >= 140) && (weight >= 40)) { console.log("You can get on an attraction."); } else { console.log("You can't get on an attraction."); }. let height = 130; let weight = 50; if ((height >= 140) || (weight >= 40)) { console.log("You can get on an attraction."); } else { console.log("You can't get on an attraction."); }.

Select the result that will be output when this program is executed. let weekday = "Thursday"; let currentTime = 8; if (weekday != "Thursday") { console.log("Today is not a bargain day."); } else { console.log("Today is a bargain day."); } if ((currentTime > 10) && (currentTime < 22)) { console.log("Shop is open."); } else { console.log("Shop is closed."); }. Today is not a bargain day. Shop is closed. Today is not a bargain day. Shop is open. Today is a bargain day. Shop is closed. Today is a bargain day. Shop is open.

Select the result that will be output when this program is executed. let weekday = "Tuesday"; if ((weekday == "Tuesday") || (weekday == "Friday")) { console.log("It is a special menu day."); } else { console.log("It is a regular menu day."); }. It is a special menu day. It is a regular menu day.

Select the program that outputs the following. We have physical education today. Class is held indoors. let weekday = "Friday"; let weather = "rainy"; if ((weekday == "Monday") || (weekday == "Friday")) { console.log("We have physical education today."); } if (weather == "sunny") { console.log("Class is held indoors."); }. let weekday = "Friday"; let weather = "rainy"; if ((weekday == "Monday") || (weekday == "Friday")) { console.log("We have physical education today."); } if (weather != "sunny") { console.log("Class is held indoors."); }. let weekday = "Friday"; let weather = "rainy"; if ((weekday == "Monday") && (weekday == "Friday")) { console.log("We have physical education today."); } if (weather != "sunny") { console.log("Class is held indoors."); }. let weekday = "Friday"; let weather = "rainy"; if ((weekday == "Monday") && (weekday == "Friday")) { console.log("We have physical education today."); } if (weather == "sunny") { console.log("Class is held indoors."); }.

Select the program that outputs the following. You can buy tickets. let possessionMoney = 10000; let ticketPrice = 8000; if (possessionMoney < ticketPrice) { console.log("You can buy tickets."); }. let possessionMoney = 10000; let ticketPrice = 8000; if (!(possessionMoney < ticketPrice)) { console.log("You can buy tickets."); }.

Select the program that outputs the following. Ryo passed. let name = "Ryo"; let scienceScore = 60; let mathScore = 90; let borderScore = 60; if ((scienceScore <= borderScore) && (mathScore <= borderScore)) { console.log(name + " passed."); }. let name = "Ryo"; let scienceScore = 60; let mathScore = 90; let borderScore = 60; if (!((scienceScore <= borderScore) && (mathScore <= borderScore))) { console.log(name - " passed."); }. let name = "Ryo"; let scienceScore = 60; let mathScore = 90; let borderScore = 60; if ((scienceScore <= borderScore) && (mathScore <= borderScore)) { console.log(name - " passed."); }. let name = "Ryo"; let scienceScore = 60; let mathScore = 90; let borderScore = 60; if (!((scienceScore <= borderScore) && (mathScore <= borderScore))) { console.log(name + " passed."); }.

Select the result that will be output when this program is executed. let totalPrice = 12000; let purchaseNum = 10; let time = 21; if (totalPrice > 15000 || purchaseNum >= 8) { console.log("You get a coupon."); } if (!(time < 21)) { console.log("A 1,000 yen discount is applied."); totalPrice = totalPrice - 1000; } console.log("The total amount is as follows."); console.log(totalPrice);. A 1,000 yen discount is applied. The total amount is as follows. 11000. You get a coupon. A 1,000 yen discount is applied. The total amount is as follows. 11000. The total amount is as follows. 12000. You get a coupon. The total amount is as follows. 12000.

Select the program that outputs the following. Library is closed on Mondays. let weekdays = ["Mondays", "Tuesdays", "Wednesdays", "Thursdays", "Fridays"]; if (let i = 0; i < 5; i++) { if (i == 0) { console.log("Library is closed on " + weekdays[i] + "."); } }. let weekdays = ["Mondays", "Tuesdays", "Wednesdays", "Thursdays", "Fridays"]; for (let i = 5; i < 0; i++) { if (i == 0) { console.log("Library is closed on " + weekdays[i] + "."); } }. let weekdays = ["Mondays", "Tuesdays", "Wednesdays", "Thursdays", "Fridays"]; for (let i = 0; i < 5; i++) { if (i == 0) { console.log("Library is closed on " + weekdays[i] + "."); } }.

Select the program that outputs the following. Display the value of 3 multiplied by 10. 30 Display the value of 30 multiplied by 10. 300 Display the value of 300 multiplied by 10. 3000. let num = "3"; if (let i = 0; i < 3; i++) { console.log("Display the value of " num " multiplied by 10."); num = num + "0"; console.log(num); }. let num = "3"; if (let i = 0; i < 3; i++) { console.log("Display the value of " + num + " multiplied by 10."); num = num + "0"; console.log(num); }. let num = "3"; for (let i = 0; i < 3; i++) { console.log("Display the value of " + num + " multiplied by 10."); num = num + "0"; console.log(num); }. let num = "3"; for (let i = 0; i < 3; i++) { console.log("Display the value of " num " multiplied by 10."); num = num + "0"; console.log(num); }.

Select the program that outputs the following: There is Japanese homework. There is no math homework. There is no English homework. There is science homework. There is social studies homework. let subjects = ["Japanese", "math", "English", "science", "social studies"]; for (let i = 0; i < 5; i++) { if ((subjects[i] != "math") && (subjects[i] != "English")) { console.log("There is " + subjects[i] + " homework."); } else { console.log("There is no " + subjects[i] + " homework."); } }. let subjects = ["Japanese", "math", "English", "science", "social studies"]; for (let i = 0; i < 5) { if ((subjects[i] != "math") || (subjects[i] != "English")) { console.log("There is " + subjects[i] + " homework."); } else { console.log("There is no " + subjects[i] + " homework."); } }. let subjects = ["Japanese", "math", "English", "science", "social studies"]; for (let i = 0; i < 5) { if ((subjects[i] != "math") && (subjects[i] != "English")) { console.log("There is " + subjects[i] + " homework."); } else { console.log("There is no " + subjects[i] + " homework."); } }. let subjects = ["Japanese", "math", "English", "science", "social studies"]; for (let i = 0; i < 5; i++) { if ((subjects[i] != "math") || (subjects[i] != "English")) { console.log("There is " + subjects[i] + " homework."); } else { console.log("There is no " + subjects[i] + " homework."); } }.

Select the program that outputs the following. Baseball is played on the ground. Basketball is played in the gym. Soccer is played on the ground. Volleyball is played in the gym. let sports = ["Baseball", "Basketball", "Soccer", "Volleyball"]; let outdoorSports = ["Baseball", "Soccer"]; let place = "on the ground"; for (let i = 0; i < 4; i++) { if (!((sports[i] == outdoorSports[0]) || (sports[i] == outdoorSports[1]))) { place = "in the gym"; } console.log(sports[i] + " is played " + place + "."); place = "on the ground"; }. let sports = ["Baseball", "Basketball", "Soccer", "Volleyball"]; let outdoorSports = ["Baseball", "Soccer"]; let place = "on the ground"; if (let i = 0; i < 4; i++) { if (!((sports[i] == outdoorSports[0]) || (sports[i] == outdoorSports[1]))) { place = "in the gym"; } console.log(sports[i] + " is played " + place + "."); place = "on the ground"; }. let sports = ["Baseball", "Basketball", "Soccer", "Volleyball"]; let outdoorSports = ["Baseball", "Soccer"]; let place = "on the ground"; for (let i = 0; i < 4; i++) { if ((sports[i] == outdoorSports[0]) || (sports[i] == outdoorSports[1])) { place = "in the gym"; } console.log(sports[i] + " is played " + place + "."); place = "on the ground"; }. let sports = ["Baseball", "Basketball", "Soccer", "Volleyball"]; let outdoorSports = ["Baseball", "Soccer"]; let place = "on the ground"; if (let i = 0; i < 4; i++) { if ((sports[i] == outdoorSports[0]) || (sports[i] == outdoorSports[1])) { place = "in the gym"; } console.log(sports[i] + " is played " + place + "."); place = "on the ground"; }.

Select the program that outputs the following: Target String: My hobbies are playing soccer and cooking. let activities = ["playing soccer", "reading books", "cooking", "traveling"]; console.log("My hobbies are " + activities[0] + " and " + activities[2] + ".");. let activities = ["playing soccer"], ["reading books"], ["cooking"], ["traveling"]; console.log("My hobbies are " + activities[0] + " and " + activities[2] + ".");.

Select the program that outputs the following: Kenta will come at 6:00 pm. Ryoya will come at 6:30 pm. Hanako will come at 6:00 pm. Aya will come at 7:00 pm. visiters = ["Kenta"], ["Ryoya"], ["Hanako"], ["Aya"]; let arrivalTime = ""; for (let i = 0; i < 4; i++) { if ((visiters[i] == "Kenta") && (visiters[i] == "Hanako")) { arrivalTime = "6:00 pm"; } else if (visiters[i] == "Ryoya") { arrivalTime = "6:30 pm"; } else { arrivalTime = "7:00 pm"; } console.log(visiters[i] + " will come at " + arrivalTime + "."); }. visiters = ["Kenta", "Ryoya", "Hanako", "Aya"]; let arrivalTime = ""; for (let i = 0; i < 4; i++) { if ((visiters[i] == "Kenta") || (visiters[i] == "Hanako")) { arrivalTime = "6:00 pm"; } else if (visiters[i] == "Ryoya") { arrivalTime = "6:30 pm"; } else { arrivalTime = "7:00 pm"; } console.log(visiters[i] + " will come at " + arrivalTime + "."); }. visiters = ["Kenta"], ["Ryoya"], ["Hanako"], ["Aya"]; let arrivalTime = ""; for (let i = 0; i < 4; i++) { if ((visiters[i] == "Kenta") || (visiters[i] == "Hanako")) { arrivalTime = "6:00 pm"; } else if (visiters[i] == "Ryoya") { arrivalTime = "6:30 pm"; } else { arrivalTime = "7:00 pm"; } console.log(visiters[i] + " will come at " + arrivalTime + "."); }. visiters = ["Kenta", "Ryoya", "Hanako", "Aya"]; let arrivalTime = ""; for (let i = 0; i < 4; i++) { if ((visiters[i] == "Kenta") && (visiters[i] == "Hanako")) { arrivalTime = "6:00 pm"; } else if (visiters[i] == "Ryoya") { arrivalTime = "6:30 pm"; } else { arrivalTime = "7:00 pm"; } console.log(visiters[i] + " will come at " + arrivalTime + "."); }.

Select the program that outputs the following. • I will go on a business trip to the U.S. in April. • I will go on a business trip to France in November. let businessTripDestinations = ["the U.S.", "Japan", "France"]; // let months = ["April", "July", "November"]; // for (let i = 0; i < businessTripDestinations.length; i++) { // if (businessTripDestinations[i] == "Japan") { // console.log("I will go on a business trip to " + businessTripDestinations[i] + " in " + months[i] + "."); // } // } //. let businessTripDestinations = ["the U.S.", "Japan", "France"]; // let months = ["April", "July", "November"]; // for (let i = 0; i < businessTripDestinations.length; i++) { // if (!(businessTripDestinations[i] == "Japan")) { // console.log("I will go on a business trip to " + businessTripDestinations[i] + " in " + months[i] + "."); // } // } //. let businessTripDestinations = ["the U.S."], ["Japan"], ["France"]; // let months = ["April"], ["July"], ["November"]; // for (let i = 0; i < businessTripDestinations.length; i++) { // if (!(businessTripDestinations[i] == "Japan")) { // console.log("I will go on a business trip to " + businessTripDestinations[i] + " in " + months[i] + "."); // } // } //. let businessTripDestinations = ["the U.S."], ["Japan"], ["France"]; // let months = ["April"], ["July"], ["November"]; // for (let i = 0; i < businessTripDestinations.length; i++) { // if (businessTripDestinations[i] == "Japan") { // console.log("I will go on a business trip to " + businessTripDestinations[i] + " in " + months[i] + "."); // } // } //.

Select the result that will be output when this program is executed. let foodList = ["salad", "grilled chicken", "sundae"]; console.log("Order a " + foodList[2] + ".");. Order a grilled chicken. Order a sundae.

Select the program that outputs the following. The possible days for soccer practice games are as follows. 5th 7th. let dates = ["5th", "6th", "7th", "8th"]; let weatherForecasts = ["cloudy", "sunny", "sunny", "rainy"]; let participantsNumbers = [22, 17, 25, 27]; console.log("The possible days for soccer practice games are as follows."); for (let i = 0; i < 4; i++) { if ((weatherForecasts != "rainy") || (participantsNumbers >= 22)) { console.log(dates); } }. let dates = ["5th", "6th", "7th", "8th"]; let weatherForecasts = ["cloudy", "sunny", "sunny", "rainy"]; let participantsNumbers = [22, 17, 25, 27]; console.log("The possible days for soccer practice games are as follows."); for (let i = 0; i < 4; i++) { if ((weatherForecasts[i] != "rainy") && (participantsNumbers[i] >= 22)) { console.log(dates[i]); } }. let dates = ["5th", "6th", "7th", "8th"]; let weatherForecasts = ["cloudy", "sunny", "sunny", "rainy"]; let participantsNumbers = [22, 17, 25, 27]; console.log("The possible days for soccer practice games are as follows."); for (let i = 0; i < 4; i++) { if ((weatherForecasts != "rainy") && (participantsNumbers >= 22)) { console.log(dates); } }. let dates = ["5th", "6th", "7th", "8th"]; let weatherForecasts = ["cloudy", "sunny", "sunny", "rainy"]; let participantsNumbers = [22, 17, 25, 27]; console.log("The possible days for soccer practice games are as follows."); for (let i = 0; i < 4; i++) { if ((weatherForecasts[i] != "rainy") || (participantsNumbers[i] >= 22)) { console.log(dates[i]); } }.

Select the program that outputs the following: Child or senior discount is applied. Regular price applies. Child or senior discount is applied. let ages = [5, 40, 65]; for (let i = 0; i < ages.length; i++) { if ((ages < 10) && (ages > 60)) { console.log("Child or senior discount is applied."); } else { console.log("Regular price applies."); } }. let ages = [5, 40, 65]; for (let i = 0; i < ages.length; i++) { if ((ages < 10) || (ages > 60)) { console.log("Child or senior discount is applied."); } else { console.log("Regular price applies."); } }. let ages = [5, 40, 65]; for (let i = 0; i < ages.length; i++) { if ((ages[i] < 10) && (ages[i] > 60)) { console.log("Child or senior discount is applied."); } else { console.log("Regular price applies."); } }. let ages = [5, 40, 65]; for (let i = 0; i < ages.length; i++) { if ((ages[i] < 10) || (ages[i] > 60)) { console.log("Child or senior discount is applied."); } else { console.log("Regular price applies."); } }.

Select the program that outputs the following. Today's menu is as follows. sandwich salad coffee. let menuList = ["sandwich"], ["salad"], ["coffee"]; console.log("Today's menu is as follows."); for (let i = 0; i < 3; i++) { console.log(menuList[i]); }. let menuList = ["sandwich"], ["salad"], ["coffee"]; console.log("Today's menu is as follows."); for (let i = 0; i < 3; i++) { console.log(menuList); }. let menuList = ["sandwich", "salad", "coffee"]; console.log("Today's menu is as follows."); for (let i = 0; i < 3; i++) { console.log(menuList[i]); }. let menuList = ["sandwich", "salad", "coffee"]; console.log("Today's menu is as follows."); for (let i = 0; i < 3; i++) { console.log(menuList); }.

Select the program that outputs the following. Yuta is the secretary. Shun is the team leader. let memberList = ["Takuya", "Yuta", "Shun", "Kouta"]; let leader = "Shun"; let secretary = "Yuta"; for (let i = 0; i < memberList; i++) { if (memberList[i] == leader) { console.log(memberList[i] + " is the team leader."); } else if (memberList[i] == secretary) { console.log(memberList[i] + " is the secretary."); } }. let memberList = ["Takuya", "Yuta", "Shun", "Kouta"]; let leader = "Shun"; let secretary = "Yuta"; for (let i = 0; i < memberList.length; i++) { if (memberList[i] == leader) { console.log(memberList[i] + " is the team leader."); } else if (memberList[i] == secretary) { console.log(memberList[i] + " is the secretary."); } }.

Select the program that outputs the following: You can get triple points on the 3rd. Free delivery. let shoppingBasket = ["comic", "novel", "computer", "sneakers", "seasonings"]; let date = "3rd"; if (date == "3rd") { console.log("You can get triple points on the " + date + "."); } if (shoppingBasket.length > 3) { console.log("Free delivery."); }. let shoppingBasket = ["comic", "novel", "computer", "sneakers", "seasonings"]; let date = "3rd"; if (date == "3rd") { console.log("You can get triple points on the " date "."); } if (shoppingBasket > 3) { console.log("Free delivery."); }. let shoppingBasket = ["comic", "novel", "computer", "sneakers", "seasonings"]; let date = "3rd"; if (date == "3rd") { console.log("You can get triple points on the " + date + "."); } if (shoppingBasket > 3) { console.log("Free delivery."); }. let shoppingBasket = ["comic", "novel", "computer", "sneakers", "seasonings"]; let date = "3rd"; if (date == "3rd") { console.log("You can get triple points on the " date "."); } if (shoppingBasket.length > 3) { console.log("Free delivery."); }.

Select the program that outputs the following: Bath washing is finished. Room cleaning is finished. Laundry is finished. Homework is finished. let taskList = ["Bath washing", "Room cleaning", "Laundry", "Homework"]; for (let i = 0; i < taskList.length; i++) { console.log(taskList[i] + " is finished."); }. let taskList = ["Bath washing", "Room cleaning", "Laundry", "Homework"]; if (let i = 0; i < taskList; i++) { console.log(taskList[i] + " is finished."); }. let taskList = ["Bath washing", "Room cleaning", "Laundry", "Homework"]; for (let i = 0; i < taskList; i++) { console.log(taskList[i] + " is finished."); }. let taskList = ["Bath washing", "Room cleaning", "Laundry", "Homework"]; if (let i = 0; i < taskList.length; i++) { console.log(taskList[i] + " is finished."); }.

Select the program that outputs the following: Buy a shirt. Buy pants. let clothesList = ["a shirt", "pants", "a skirt"]; for (let i = 0; i < clothesList; i++) { if (!(clothesList[i] == "a skirt")) { console.log("Buy " + clothesList[i] + "."); } }. let clothesList = ["a shirt"], ["pants"], ["a skirt"]; for (let i = 0; i < clothesList; i++) { if (!(clothesList[i] == "a skirt")) { console.log("Buy " + clothesList[i] + "."); } }. let clothesList = ["a shirt"], ["pants"], ["a skirt"]; for (let i = 0; i < clothesList.length; i++) { if (!(clothesList[i] == "a skirt")) { console.log("Buy " + clothesList[i] + "."); } }. let clothesList = ["a shirt", "pants", "a skirt"]; for (let i = 0; i < clothesList.length; i++) { if (!(clothesList[i] == "a skirt")) { console.log("Buy " + clothesList[i] + "."); } }.

Select the program that outputs the following: The battery level has reached 10% Please charge the device. let currentBatteryColor = "Red"; let fullyChargedBatteryColor = "Blue"; let lowBatteryLevel = "10%"; if (currentBatteryColor != fullyChargedBatteryColor) { console.log("The battery level has reached lowBatteryLevel"); console.log("Please charge the device"); } else { console.log("The battery level is sufficient"); }. let currentBatteryColor = "Red"; let fullyChargedBatteryColor = "Blue"; let lowBatteryLevel = "10%"; if (currentBatteryColor != fullyChargedBatteryColor) { console.log("The battery level has reached " + lowBatteryLevel); console.log("Please charge the device"); } else { console.log("The battery level is sufficient"); }. let currentBatteryColor = "Red"; let fullyChargedBatteryColor = "Blue"; let lowBatteryLevel = "10%"; if (currentBatteryColor == fullyChargedBatteryColor) { console.log("The battery level has reached lowBatteryLevel"); console.log("Please charge the device"); } else { console.log("The battery level is sufficient"); }. let currentBatteryColor = "Red"; let fullyChargedBatteryColor = "Blue"; let lowBatteryLevel = "10%"; if (currentBatteryColor == fullyChargedBatteryColor) { console.log("The battery level has reached " + lowBatteryLevel); console.log("Please charge the device"); } else { console.log("The battery level is sufficient"); }.

Select the program that outputs the following: This train is bound for Station B. let trainCode = "A123"; let destination = "Station B"; console.log("This train is bound for " + destination); if ((destination == "Station B") || (trainCode == "B456")) { console.log("This train does not stop at " + destination); }. let trainCode = "A123"; let destination = "Station B"; console.log("This train is bound for " + destination); if ((destination == "Station B") && (trainCode == "B456")) { console.log("This train does not stop at " + destination); }. let trainCode = "A123"; let destination = "Station B"; console.log("This train is bound for " + destination); if ((destination == "Station B") || (trainCode == "B456")) { console.log("This train does not stop at " + destination); }. let trainCode = "A123"; let destination = "Station B"; console.log("This train is bound for " destination); if ((destination == "Station B") && (trainCode == "B456")) { console.log("This train does not stop at " + destination); }.

Select the program that outputs the following: The room number is incorrect Your reserved room is on the 2 floor. reservedRoomNum = 25; roomNum = 20; let floorNum; if (reservedRoomNum != roomNum) { console.log("The room number is incorrect"); } if (reservedRoomNum <= 20) { floorNum = "1"; } else if ((reservedRoomNum > 20) (reservedRoomNum <= 40)) { floorNum = "2"; } else { floorNum = "3"; } console.log("Your reserved room is on the " + floorNum + " floor");. reservedRoomNum = 25; roomNum = 20; let floorNum; if (reservedRoomNum == roomNum) { console.log("The room number is incorrect"); } if (reservedRoomNum <= 20) { floorNum = "1"; } else if ((reservedRoomNum > 20) && (reservedRoomNum <= 40)) { floorNum = "2"; } else { floorNum = "3"; } console.log("Your reserved room is on the " + floorNum + " floor");. reservedRoomNum = 25; roomNum = 20; let floorNum; if (reservedRoomNum != roomNum) { console.log("The room number is incorrect"); } if (reservedRoomNum <= 20) { floorNum = "1"; } else if ((reservedRoomNum > 20) && (reservedRoomNum <= 40)) { floorNum = "2"; } else { floorNum = "3"; } console.log("Your reserved room is on the " + floorNum + " floor");. reservedRoomNum = 25; roomNum = 20; let floorNum; if (reservedRoomNum == roomNum) { console.log("The room number is incorrect"); } if (reservedRoomNum <= 20) { floorNum = "1"; } else if ((reservedRoomNum > 20) (reservedRoomNum <= 40)) { floorNum = "2"; } else { floorNum = "3"; } console.log("Your reserved room is on the " + floorNum + " floor");.

Select the program that outputs the following: Guests with A seats, please enter through Entrance 1. let ticketType = "A"; let entrance; if ((ticketType == "A") || (ticketType == "B")) { entrance = "Entrance 1"; } else { entrance = "Entrance 2"; } console.log("Guests with " ticketType " seats, please enter through " entrance);. let ticketType = "A"; let entrance; if ((ticketType == "A") && (ticketType == "B")) { entrance = "Entrance 1"; } else { entrance = "Entrance 2"; } console.log("Guests with " ticketType " seats, please enter through " entrance);. let ticketType = "A"; let entrance; if ((ticketType == "A") || (ticketType == "B")) { entrance = "Entrance 1"; } else { entrance = "Entrance 2"; } console.log("Guests with " + ticketType + " seats, please enter through " + entrance);. let ticketType = "A"; let entrance; if ((ticketType == "A") && (ticketType == "B")) { entrance = "Entrance 1"; } else { entrance = "Entrance 2"; } console.log("Guests with " + ticketType + " seats, please enter through " + entrance);.

Within business hours We cannot accommodate the requested quantity. let requiredQuantity = 55; let currentTime = 10; let response = "We will prepare the requested quantity"; if ((requiredQuantity < 10) && (requiredQuantity > 50)) { response = "We cannot accommodate the requested quantity"; } if ((currentTime >= 9) (currentTime <= 12)) { console.log("Within business hours"); console.log(response); }. let requiredQuantity = 55; let currentTime = 10; let response = "We will prepare the requested quantity"; if ((requiredQuantity < 10) && (requiredQuantity > 50)) { response = "We cannot accommodate the requested quantity"; } if ((currentTime >= 9) && (currentTime <= 12)) { console.log("Within business hours"); console.log(response); }. let requiredQuantity = 55; let currentTime = 10; let response = "We will prepare the requested quantity"; if ((requiredQuantity < 10) || (requiredQuantity > 50)) { response = "We cannot accommodate the requested quantity"; } if ((currentTime >= 9) (currentTime <= 12)) { console.log("Within business hours"); console.log(response); }. let requiredQuantity = 55; let currentTime = 10; let response = "We will prepare the requested quantity"; if ((requiredQuantity < 10) || (requiredQuantity > 50)) { response = "We cannot accommodate the requested quantity"; } if ((currentTime >= 9) && (currentTime <= 12)) { console.log("Within business hours"); console.log(response); }.

Select the program that outputs the following: Business status: Business day. let closedDay = "15"; let today = "20"; let salesStatus = "Regular closing day"; if (today == closedDay) { salesStatus = "Business day"; } console.log("Business status: " + salesStatus);. let closedDay = "15"; let today = "20"; let salesStatus = "Regular closing day"; if (!(today == closedDay)) { salesStatus = "Business day"; } console.log("Business status: " + salesStatus);. let closedDay = "15"; let today = "20"; let salesStatus = "Regular closing day"; if (today == closedDay) { salesStatus = "Business day"; } console.log("Business status: salesStatus");. let closedDay = "15"; let today = "20"; let salesStatus = "Regular closing day"; if (!(today == closedDay)) { salesStatus = "Business day"; } console.log("Business status: salesStatus");.

Select the program that outputs the following: You will be guided to the large room Today there is a discount on drinks. let guestCount = 14; let visitDay = "Weekday"; if ((guestCount >= 8) (guestCount <= 16)) { console.log("You will be guided to the large room"); } if (!(visitDay == "Holiday")) { console.log("Today there is a discount on drinks"); }. let guestCount = 14; let visitDay = "Weekday"; if ((guestCount >= 8) (guestCount <= 16)) { console.log("You will be guided to the large room"); } if (visitDay == "Holiday") { console.log("Today there is a discount on drinks"); }. let guestCount = 14; let visitDay = "Weekday"; if ((guestCount >= 8) && (guestCount <= 16)) { console.log("You will be guided to the large room"); } if (!(visitDay == "Holiday")) { console.log("Today there is a discount on drinks"); }. let guestCount = 14; let visitDay = "Weekday"; if ((guestCount >= 8) && (guestCount <= 16)) { console.log("You will be guided to the large room"); } if (visitDay == "Holiday") { console.log("Today there is a discount on drinks"); }.

Select the program that outputs the following: We will do futsal We will do volunteer activities We will do meal. let activityList = ["futsal", "volunteer activities", "meal"]; if (let i = 0; i < activityList.length; i++) { console.log("We will do " + activityList[i]); }. let activityList = ["futsal", "volunteer activities", "meal"]; if (let i = 0; i < activityList.length; i++) { console.log("We will do " activityList[i]); }. let activityList = ["futsal", "volunteer activities", "meal"]; for (let i = 0; i < activityList.length; i++) { console.log("We will do " + activityList[i]); }. let activityList = ["futsal", "volunteer activities", "meal"]; for (let i = 0; i < activityList.length; i++) { console.log("We will do " activityList[i]); }.

Select the program that outputs the following: The bus stops are as follows In front of the station In front of City Hall Bus depot. let busStopList = ["In front of the station", "In front of City Hall", "In front of the event venue", "Bus depot"]; let suspendedBusStop = "In front of the event venue"; console.log("The bus stops are as follows"); if (let i = 0; i < busStopList.length; i++) { if (busStopList[i] != suspendedBusStop) { console.log(busStopList[i]); } }. let busStopList = ["In front of the station", "In front of City Hall", "In front of the event venue", "Bus depot"]; let suspendedBusStop = "In front of the event venue"; console.log("The bus stops are as follows"); for (let i = 0; i < busStopList.length; i++) { if (busStopList[i] == suspendedBusStop) { console.log(busStopList[i]); } }. let busStopList = ["In front of the station", "In front of City Hall", "In front of the event venue", "Bus depot"]; let suspendedBusStop = "In front of the event venue"; console.log("The bus stops are as follows"); for (let i = 0; i < busStopList.length; i++) { if (busStopList[i] != suspendedBusStop) { console.log(busStopList[i]); } }. let busStopList = ["In front of the station", "In front of City Hall", "In front of the event venue", "Bus depot"]; let suspendedBusStop = "In front of the event venue"; console.log("The bus stops are as follows"); if (let i = 0; i < busStopList.length; i++) { if (busStopList[i] == suspendedBusStop) { console.log(busStopList[i]); } }.

Select the program that outputs the following: I received cabbage Skip Skip I received carrot. let pipelineFoodItems = ["cabbage", "rice", "potato", "carrot"]; let nonVegetable = "rice"; let enoughFood = "potato"; for (let i = 0; i < pipelineFoodItems.length; i++) { if ((pipelineFoodItems[i] == nonVegetable) && (pipelineFoodItems[i] == enoughFood)) { console.log("Skip"); } else { console.log("I received " + pipelineFoodItems[i]); } }. let pipelineFoodItems = ["cabbage", "rice", "potato", "carrot"]; let nonVegetable = "rice"; let enoughFood = "potato"; if (let i = 0; i < pipelineFoodItems.length; i++) { if ((pipelineFoodItems[i] == nonVegetable) || (pipelineFoodItems[i] == enoughFood)) { console.log("Skip"); } else { console.log("I received " + pipelineFoodItems[i]); } }. let pipelineFoodItems = ["cabbage", "rice", "potato", "carrot"]; let nonVegetable = "rice"; let enoughFood = "potato"; for (let i = 0; i < pipelineFoodItems.length; i++) { if ((pipelineFoodItems[i] == nonVegetable) || (pipelineFoodItems[i] == enoughFood)) { console.log("Skip"); } else { console.log("I received " + pipelineFoodItems[i]); } }. let pipelineFoodItems = ["cabbage", "rice", "potato", "carrot"]; let nonVegetable = "rice"; let enoughFood = "potato"; if (let i = 0; i < pipelineFoodItems.length; i++) { if ((pipelineFoodItems[i] == nonVegetable) && (pipelineFoodItems[i] == enoughFood)) { console.log("Skip"); } else { console.log("I received " + pipelineFoodItems[i]); } }.

Select the program that outputs the following: Tomatoes are sold out The ingredients available at the store are as follows Cabbage Broccoli Celery. let ingredients = ["Tomatoes", "Cabbage", "Broccoli", "Celery"]; let soldOutIngredient = "Tomatoes"; console.log(soldOutIngredient + " are sold out"); console.log("The ingredients available at the store are as follows"); for { if (!(ingredients[i] == soldOutIngredient)) { console.log(ingredients[i]); } }. let ingredients = ["Tomatoes", "Cabbage", "Broccoli", "Celery"]; let soldOutIngredient = "Tomatoes"; console.log(soldOutIngredient + " are sold out"); console.log("The ingredients available at the store are as follows"); for (let i = 0; i < 4; i++) { if (!(ingredients[i] == soldOutIngredient)) { console.log(ingredients[i]); } }. let ingredients = ["Tomatoes", "Cabbage", "Broccoli", "Celery"]; let soldOutIngredient = "Tomatoes"; console.log(soldOutIngredient + " are sold out"); console.log("The ingredients available at the store are as follows"); for { if (ingredients[i] == soldOutIngredient) { console.log(ingredients[i]); } }. let ingredients = ["Tomatoes", "Cabbage", "Broccoli", "Celery"]; let soldOutIngredient = "Tomatoes"; console.log(soldOutIngredient + " are sold out"); console.log("The ingredients available at the store are as follows"); for (let i = 0; i < 4; i++) { if (ingredients[i] == soldOutIngredient) { console.log(ingredients[i]); } }.

Select the program that outputs the following: The users who are allowed access are as follows userA userB userD. let userList = ["userA", "userB", "userC", "userD"]; let deniedUser = "userC"; console.log("The users who are allowed access are as follows"); for (let i = 0; i < 4; i++) { if (userList[i] != deniedUser) { console.log(userList[i]); } }. let userList = ["userA", "userB", "userC", "userD"]; let deniedUser = "userC"; console.log("The users who are allowed access are as follows"); for (let i = 0; i < 4; i++) { if (userList[i] == deniedUser) { console.log(userList[i]); } }. let userList = ["userA"], ["userB"], ["userC"], ["userD"]; let deniedUser = "userC"; console.log("The users who are allowed access are as follows"); for (let i = 0; i < 4; i++) { if (userList[i] == deniedUser) { console.log(userList[i]); } }. let userList = ["userA"], ["userB"], ["userC"], ["userD"]; let deniedUser = "userC"; console.log("The users who are allowed access are as follows"); for (let i = 0; i < 4; i++) { if (userList[i] != deniedUser) { console.log(userList[i]); } }.

Select the program that outputs the following: An invalid score was detected The number of times a high score was achieved is as follows. let playerScores = [800, 500, 700, 1000, 1200]; let highScoreCount = 0; let lowerLimitHighScore = 800; let upperLimitHighScore = 1000; for (let i = 0; i < 5; i++) { if ((playerScores[i] >= lowerLimitHighScore) || (playerScores[i] <= upperLimitHighScore)) { highScoreCount = highScoreCount + 1; } else if (playerScores[i] > upperLimitHighScore) { console.log("An invalid score was detected"); } } console.log("The number of times a high score was achieved is as follows"); console.log(highScoreCount);. let playerScores = [800], [500], [700], [1000], [1200]; let highScoreCount = 0; let lowerLimitHighScore = 800; let upperLimitHighScore = 1000; for (let i = 0; i < 5; i++) { if ((playerScores[i] >= lowerLimitHighScore) || (playerScores[i] <= upperLimitHighScore)) { highScoreCount = highScoreCount + 1; } else if (playerScores[i] > upperLimitHighScore) { console.log("An invalid score was detected"); } } console.log("The number of times a high score was achieved is as follows"); console.log(highScoreCount);. let playerScores = [800, 500, 700, 1000, 1200]; let highScoreCount = 0; let lowerLimitHighScore = 800; let upperLimitHighScore = 1000; for (let i = 0; i < 5; i++) { if ((playerScores[i] >= lowerLimitHighScore) && (playerScores[i] <= upperLimitHighScore)) { highScoreCount = highScoreCount + 1; } else if (playerScores[i] > upperLimitHighScore) { console.log("An invalid score was detected"); } } console.log("The number of times a high score was achieved is as follows"); console.log(highScoreCount);. let playerScores = [800, 500, 700, 1000, 1200]; let highScoreCount = 0; let lowerLimitHighScore = 800; let upperLimitHighScore = 1000; for (let i = 0; i < 5; i++) { if ((playerScores[i] >= lowerLimitHighScore) || (playerScores[i] <= upperLimitHighScore)) { highScoreCount = highScoreCount + 1; } else if (playerScores[i] > upperLimitHighScore) { console.log("An invalid score was detected"); } } console.log("The number of times a high score was achieved is as follows"); console.log(highScoreCount);.

Select the program that outputs the following: Show the capacity of the water bottle 300. let volumes = [0, 300]; for (let i = 0; i < volumes.length; i++) { if (volumes[i] == 0) { console.log("Show the capacity of the water bottle"); console.log(volumes[i]); } }. let volumes = [0, 300]; for (let i = 0; i < volumes.length; i++) { if (!(volumes[i] == 0)) { console.log("Show the capacity of the water bottle"); console.log(volumes[i]); } }. let volumes = [0], [300]; for (let i = 0; i < volumes.length; i++) { if (volumes[i] == 0) { console.log("Show the capacity of the water bottle"); console.log(volumes[i]); } }. let volumes = [0], [300]; for (let i = 0; i < volumes.length; i++) { if (!(volumes[i] == 0)) { console.log("Show the capacity of the water bottle"); console.log(volumes[i]); } }.

Select the program that outputs the following: The subjects to study today are as follows Science Math English. let studySubjects = ["Science"], ["Math"], ["English"]; console.log("The subjects to study today are as follows"); for (let i = 0; i < 3; i++) { console.log(studySubjects[i]); }. let studySubjects = ["Science", "Math", "English"]; console.log("The subjects to study today are as follows"); for (let i = 0; i < 3; i++) { console.log(studySubjects[i]); }. let studySubjects = ["Science"], ["Math"], ["English"]; console.log("The subjects to study today are as follows"); else (let i = 0; i < 3; i++) { console.log(studySubjects[i]); }. let studySubjects = ["Science", "Math", "English"]; console.log("The subjects to study today are as follows"); else (let i = 0; i < 3; i++) { console.log(studySubjects[i]); }.

Select the program that outputs the following: Risa is present Mika is present. let students = ["Risa", "Mika", "Mei"]; let absentStudent = "Mei"; for (let i = 0; i < 3; i++) { if (students != absentStudent) { console.log(students + " is present"); } }. let students = ["Risa", "Mika", "Mei"]; let absentStudent = "Mei"; for (let i = 0; i < 3; i++) { if (students == absentStudent) { console.log(students + " is present"); } }. let students = ["Risa", "Mika", "Mei"]; let absentStudent = "Mei"; for (let i = 0; i < 3; i++) { if (students[i] == absentStudent) { console.log(students[i] + " is present"); } }. let students = ["Risa", "Mika", "Mei"]; let absentStudent = "Mei"; for (let i = 0; i < 3; i++) { if (students[i] != absentStudent) { console.log(students[i] + " is present"); } }.

Select the program that outputs the following: Book C is currently checked out. let bookList = ["Book A", "Book B", "Book C", "Book D"]; let checkedOutBooks = ["Book C", "Book E"]; for (let i = 0; i < bookList.length; i++) { if ((bookList[i] == checkedOutBooks[0]) && (bookList[i] == checkedOutBooks[1])) { console.log(bookList[i] + " is currently checked out"); } }. let bookList = ["Book A", "Book B", "Book C", "Book D"]; let checkedOutBooks = ["Book C", "Book E"]; for (let i = 0; i < bookList.length; i++) { if ((bookList[i] == checkedOutBooks[1]) && (bookList[i] == checkedOutBooks[2])) { console.log(bookList[i] + " is currently checked out"); } }. let bookList = ["Book A", "Book B", "Book C", "Book D"]; let checkedOutBooks = ["Book C", "Book E"]; for (let i = 0; i < bookList.length; i++) { if ((bookList[i] == checkedOutBooks[0]) || (bookList[i] == checkedOutBooks[1])) { console.log(bookList[i] + " is currently checked out"); } }. let bookList = ["Book A", "Book B", "Book C", "Book D"]; let checkedOutBooks = ["Book C", "Book E"]; for (let i = 0; i < bookList.length; i++) { if ((bookList[i] == checkedOutBooks[1]) || (bookList[i] == checkedOutBooks[2])) { console.log(bookList[i] + " is currently checked out"); } }.

Select the program that outputs the following: Today’s schedule: Dentist. let todaySchedules = ["Dentist", "Meeting"]; let rescheduledItem = "Meeting"; for (let i = 0; i < 2; i++) { if (!(todaySchedules == rescheduledItem)) { console.log("Today’s schedule: " + todaySchedules); } }. let todaySchedules = ["Dentist", "Meeting"]; let rescheduledItem = "Meeting"; for (let i = 0; i < 2; i++) { if (todaySchedules[i] == rescheduledItem) { console.log("Today’s schedule: " + todaySchedules[i]); } }. let todaySchedules = ["Dentist", "Meeting"]; let rescheduledItem = "Meeting"; for (let i = 0; i < 2; i++) { if (!(todaySchedules[i] == rescheduledItem)) { console.log("Today’s schedule: " + todaySchedules[i]); } }. let todaySchedules = ["Dentist", "Meeting"]; let rescheduledItem = "Meeting"; for (let i = 0; i < 2; i++) { if (todaySchedules == rescheduledItem) { console.log("Today’s schedule: " + todaySchedules); } }.

Select the program that outputs the following: I will buy milk I will buy bread I will buy eggs. let shoppingList = ["milk", "bread", "eggs"]; for (i < 3) { console.log("I will buy " + shoppingList[i]); }. let shoppingList = ["milk", "bread", "eggs"]; for (i < 3) { console.log("I will buy " + shoppingList); }. let shoppingList = ["milk", "bread", "eggs"]; for (let i = 0; i < 3; i++) { console.log("I will buy " + shoppingList[i]); }. let shoppingList = ["milk", "bread", "eggs"]; for (let i = 0; i < 3; i++) { console.log("I will buy " + shoppingList); }.

Select the program that outputs the following: The high temperatures for the past 3 days are as follows 40. let temperatureList = [20, 30, 40]; let maxTemperature = 0; for (let i = 0; i < 3; i++) { if (maxTemperature < temperatureList) { maxTemperature = temperatureList; } } console.log("The high temperatures for the past 3 days are as follows"); console.log(maxTemperature);. let temperatureList = [20, 30, 40]; let maxTemperature = 0; for (let i = 0; i < 3; i++) { if (maxTemperature < temperatureList[i]) { maxTemperature = temperatureList[i]; } } console.log("The high temperatures for the past 3 days are as follows"); console.log(maxTemperature);. let temperatureList = [20], [30], [40]; let maxTemperature = 0; for (let i = 0; i < 3; i++) { if (maxTemperature < temperatureList) { maxTemperature = temperatureList; } } console.log("The high temperatures for the past 3 days are as follows"); console.log(maxTemperature);. let temperatureList = [20], [30], [40]; let maxTemperature = 0; for (let i = 0; i < 3; i++) { if (maxTemperature < temperatureList[i]) { maxTemperature = temperatureList[i]; } } console.log("The high temperatures for the past 3 days are as follows"); console.log(maxTemperature);.

Select the program that outputs the following: Preferred book genre: Novel Preferred book genre: Business book Preferred book genre: Children’s book. let bookGenres = ["Novel", "Business book", "Children’s book"]; for (let i = 0; i < bookGenres.length; i++) { console.log("Preferred book genre: " + bookGenres[i]); }. let bookGenres = ["Novel", "Business book", "Children’s book"]; for (let i = 0; i < bookGenres.length; i++) { console.log("Preferred book genre: bookGenres[i]"); }. let bookGenres = ["Novel", "Business book", "Children’s book"]; for (let i = 0; i < bookGenres; i++) { console.log("Preferred book genre: bookGenres[i]"); }. let bookGenres = ["Novel", "Business book", "Children’s book"]; for (let i = 0; i < bookGenres; i++) { console.log("Preferred book genre: " + bookGenres[i]); }.

Select the program that outputs the following: We will carry out the task. let statusList = ["Stocked", "Ordered", "Pending"]; if ((statusList >= 3) (statusList[0] == "Stocked")) { console.log("We will carry out the task"); }. let statusList = ["Stocked", "Ordered", "Pending"]; if ((statusList >= 3) && (statusList[0] == "Stocked")) { console.log("We will carry out the task"); }. let statusList = ["Stocked", "Ordered", "Pending"]; if ((statusList.length >= 3) && (statusList[0] == "Stocked")) { console.log("We will carry out the task"); }. let statusList = ["Stocked", "Ordered", "Pending"]; if ((statusList.length >= 3) (statusList[0] == "Stocked")) { console.log("We will carry out the task"); }.

Select the program that outputs the following: You may enter the store. let guests = ["Yumi", "Takuya"]; let reservationStatus = "No reservation"; if ((guests.length <= 2) || (reservationStatus == "Reserved")) { console.log("You may enter the store"); }. let guests = ["Yumi", "Takuya"]; let reservationStatus = "No reservation"; if ((guests <= 2) || (reservationStatus == "Reserved")) { console.log("You may enter the store"); }. let guests = ["Yumi", "Takuya"]; let reservationStatus = "No reservation"; if ((guests.length <= 2) && (reservationStatus == "Reserved")) { console.log("You may enter the store"); }. let guests = ["Yumi", "Takuya"]; let reservationStatus = "No reservation"; if ((guests <= 2) && (reservationStatus == "Reserved")) { console.log("You may enter the store"); }.

Select the program that outputs the following: Show the clothes being worn Jacket Pants Socks. let clothesItems = ["Hat", "Jacket", "Pants", "Socks"]; console.log("Show the clothes being worn"); for (let i = 0; i < clothesItems; i++) { if (!(clothesItems[i] == "Hat")) { console.log(clothesItems[i]); } }. let clothesItems = ["Hat", "Jacket", "Pants", "Socks"]; console.log("Show the clothes being worn"); for (let i = 0; i < clothesItems; i++) { if (!(clothesItems[i] == "Hat")) { console.log(clothesItems[i]); } }. let clothesItems = ["Hat", "Jacket", "Pants", "Socks"]; console.log("Show the clothes being worn"); for (let i = 0; i < clothesItems.length; i++) { if (clothesItems[i] == "Hat") { console.log(clothesItems[i]); } }. let clothesItems = ["Hat", "Jacket", "Pants", "Socks"]; console.log("Show the clothes being worn"); for (let i = 0; i < clothesItems.length; i++) { if (!(clothesItems[i] == "Hat")) { console.log(clothesItems[i]); } }.

Select the program that outputs the following: Check the current reservation status 3 guests have made a reservation 8 guests have made a reservation 5 guests have made a reservation. reservations = ["3", "8", "5"]; console.log("Check the current reservation status"); for (let i = 0; i < reservations.length; i++) { console.log(reservations[i] + " guests have made a reservation"); }. reservations = ["3", "8", "5"]; console.log("Check the current reservation status"); for (let i = 0; i < reservations; i++) { console.log(reservations[i] + " guests have made a reservation"); }. reservations = ["3", "8", "5"]; console.log("Check the current reservation status"); for (let i = 0; i < reservations; i++) { console.log([i] + " guests have made a reservation"); }. reservations = ["3", "8", "5"]; console.log("Check the current reservation status"); for (let i = 0; i < reservations.length; i++) { console.log([i] + " guests have made a reservation"); }.

Report abuse