option
Questions
ayuda
daypo
search.php

Assessments for Programming and Artificial Intelligence - Practical - 2025

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

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

Creation Date: 2025/12/19

Category: Computers

Number of questions: 79

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

Please select the correct way to write your comment. Write your comments here.//. //Write your comments here. /Write your comments here./. /Write your comments here.

Select the correct program to output the calculation results of "50+100" to the console. console.log("50 + 100");. console.log(50 + 100);. console.log(50" + "100);. console.log("50" + "100");.

Select the correct program to output "Hello" to the console. log.console("Hello");. consolelog("Hello"). console.log("Hello");. console.logHello;.

Select the correct symbol for the division used in the program. -. *. /. ÷.

Select the correct program to output "Today is the 17th.7 days ago was the 10th." to the console. console.log("Today is the 17th.7 days ago was the (17 - 7)th.");. console.log("Today is the 17th.7 days ago was the " + "17 - 7" + "th.");. console.log("Today is the 17th.7 days ago was the " + (17 - 7) + "th.");. console.log("Today is the 17th.7 days ago was the + 17 - 7 + th.");.

Select the correct program to declare the variable score. score let;. score;. let score;. score =;.

Select the correct program to output the value of the variable score to the console. The variable score has already been declared and assigned. console.log(score);. console.log score;. console.log("score");. console.log = score;.

Select the correct program to output "Hello" to the console. console.log("Hello");. console.logHello;. log.console("Hello");. consolelog("Hello").

Select the correct program that will let the computer calculate "5+7" and output the calculation results to the console. console.log("5 + 7");. console.log(5" + "7);. console.log(5 + 7);. console.log("5" + "7");.

Select the correct symbol for multiplication used in the program. -. /. *. +.

Select the correct declaration for the variable number. number let;. let number;. let = number;. number;.

Select a program that says, "If ~, then ________.". (conditional){processing} if. if (conditional){processing}. (conditional) if {processing}. if {processing}(conditional).

Select the conditional expression "the value of the variable num is equal to 50". 50 >= num. num == 50. 50 = num. num = 50.

Please select the output result of the following program. let num = 200; console.log(num == 100);. 100. false. true. num.

Select a program that says if ~ then do A, otherwise do B. if (conditional) else{B} {A}. else{B} if (conditional){A}. if (conditional){A} else{B}. else (conditional){A} if {B}.

Select a program with the conditional expression "the value of the variable num is less than or equal to 80". num < 80. num > 80. num <= 80. num == 80.

Select a program with the condition "the value of the variable num is greater than 30". num < 30. num == 30. num >= 30. num > 30.

Choose a program that says, "If ~, do A; if not, do B.". if (conditional){A}{B} else if (conditional). if (conditional) (conditional) else if {A}{B}. if (conditional){A} else if (conditional){B}. if (conditional){A} else if {B}.

Please select the output result of the following program. let score = 62; if (score == 100){console.log("Perfect score");} else if (score >= 80){console.log("So close");} else if (score >= 60){console.log("Pass");}. Pass. So close. Perfect score. No output.

Please select the output result of the following program. let num = 10; console.log(num == 10);. 100. true. 10. false.

Select a program with the conditional expression "the value of the variable num is less than 20". num >= 20. num == 20. num < 20. num <= 20.

Please select the output result of the following program. let score = 92; if (score == 100){console.log("Perfect score");} else if (score >= 80){console.log("So close");} else if (score >= 60){console.log("Pass");}. Perfect score. Pass. So close. No output.

Select a program that means "A and B". A || B. A // B. A && B. A & B.

Select the program that means "A or B". A < B. A && B. A || B. A == B.

Please select the output result when executing the following program. let age = 20; if (age <= 18 || age >= 60){console.log("20% OFF");} else{console.log("Regular Price");}. No output. Error. 20% OFF. Regular Price.

Select the first thing you would write in a program that represents "outputting the word "apple" to the console 10 times over. let. if. for. num.

Please select the correct answer for the program that repeats the specified process 10 times. 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 }. for {Specified process} (  let i=0; i<10; i++ ).

Please select the output result of running the program let num = 9; if (num <= 3 || num >= 7) {console.log("A");} else{console.log("B");}. A. No output. B. 9.

Select the correct program to add 1 to variable i. i+. i++1. 1+1. i++.

Select the correct answer for the program that repeats the specified processing 10 times. 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 }. for { Specified process } (  let i=0; i<10; i++ ).

Please select the output result of running the program for (let i = 0; i < 2; i++) { console.log("Hello"); };. Hello. Hello Hello Hello. Hello Hello. No output.

Select the correct program to create a function whose function name is calc and argument name is num. function (num) calc {   processing }. (num)function calc{   processing }. (num)calc function {   processing }. function calc(num) {   processing }.

Select the correct function to round off. Math.round(1.8). round(1.8). round.Math(1.8). Math.roundoff(1.8).

Please select the output results of the following program that you have executed. console.log(Math.max(20,40,60));. 20. 60. 40. 120.

Please select the correct answer to be displayed in the console as a result of executing the following program. function calc(num) { let result = num * 3; return result; } } console.log(calc(5));. 15. 5. 3. 0.

Select the correct program to output random numerical values. console.log(Math.max());. console.log(Math.min());. console.log(random());. console.log(Math.random());.

Select the correct function to truncate decimals. console.log(Math.min(10.5));. console.log(Math.round(10.5));. console.log(Math.max(10.5));. console.log(Math.floor(10.5));.

Select the output results of the following program. console.log(Math.floor(7.7));. 8. No output. 7. 6.

Select the correct function to round off. Math.round(1.8). round(1.8). Math.roundoff(1.8). round.Math(1.8).

Select the output result of running the following program. console.log(Math.max(10,50,100));. 160. 50. 10. 100.

Select the correct program to output random numerical values. console.log(Math.random());. console.log(Math.max());. console.log(random());. console.log(Math.min());.

Select the output results of the following program. console.log(Math.floor(12.8));. 13. 12. 11. No output.

Select the correct program to create a function whose function name is sum and argument name is num. function sum(num) {   processing }. (num)function sum{   processing }. (num)sum function {   processing }. function (num) sum {   processing }.

Select the correct data type below. console.log("50+30");. Numerical value. No particular data type. String.

Select the correct program that outputs "string". console.log(typeof 1);. console.log(typeof "1");. console.log(string "1");. console.log(Number "1");.

Select the output results of the following program. console.log(100 === 500);. false. true. string. numerical value.

Select the output results of the following program. console.log(Number("Hello"));. number. NaN. false. true.

Select the output result of executing the following program. let num = [5, 10, 15, 20, 25]; console.log(num[2]);. 20. 10. 15. 2.

Select the output result of executing the following program. let num = [1, 2, 3]; let sum = 0; for (let i = 0; i < 3; i++) { sum = sum + num[i]; } console.log(sum);. 2. 1. 3. 6.

Select the correct data type below. console.log("11");. No particular type. String. Numerical value.

Select the correct program that outputs "string". console.log(typeof "50");. console.log(Number "50");. console.log(String "50");. console.log(typeof 50);.

Select the output results of the following program. console.log(200 === 20);. true. string. number. false.

Select the output results of the following program. console.log(Number("value"));. NaN. false. number. true.

Select the output result of executing the following program. let num = [5, 10, 15, 20, 25]; console.log(num[3]);. 15. 10. 20. 5.

Select the output result of executing the following program. let num = [2, 4, 6]; let sum = 0; for (let i = 0; i < 3; i++) { sum = sum + num[i]; } console.log(sum);. 12. 2. 4. 6.

Select the result that will be output when this program is executed let num = 2000; if (num > 1000) { num = num + 22; } console.log(num);. 2022. 1000. 2000. 1022.

Select the program that outputs “ABC”. let num1 = 3; let num2 = 4; let num3 = num1 + num2; if (num3 < 10) { console.log("ABC"); }. let num1 = 3; let num2 = 4; let num3 = num1 * num2; if (num3 > 10) { console.log("ABC"); }.

Select the program that outputs “ABC”. let num1 = 3; let num2 = 4; let num3 = num1 + num2; if (num3 < 10) { console.log("ABC"); }. let num1 = 3; let num2 = 4; let num3 = num1 + num2; if (num3 > 10) { console.log("ABC"); }.

Select the program that outputs “ABC”. let num1 = 3; let num2 = 4; let num3 = num1 * num2; if (num3 < 10) { console.log("ABC"); }. let num1 = 3; let num2 = 4; let num3 = num1 * num2; if (num3 > 10) { console.log("ABC"); }.

Select the program that outputs the following: 4 4. 2 + 2; 2 * 2;. console.log(2 + 2); console.log(2 / 2);. 2 + 2; 2 / 2;. console.log(2 + 2); console.log(2 * 2);.

Select the result that will be output when this program is executed: let num = 5; let ans = 0; num = ans; console.log(num); ans = num + 10; console.log(ans);. 5 0. 5 5. 0 15. 0 10.

Select the program that outputs the following: TOFAS Programming Let’s do our best. let num = 1; let text1 = "TOFAS Programming"; let text2 = "Let’s do our best."; if (num == 1) { console.log(text1); } console.log(text2);. let num = 1; let text1 = "TOFAS Programming"; let text2 = "Let’s do our best."; num == 1 { text1; } text2;. let num = 1; let text1 = "TOFAS Programming"; let text2 = "Let’s do our best."; num == 1 { console.log(text1); } console.log(text2);. let num = 1; let text1 = "TOFAS Programming"; let text2 = "Let’s do our best."; if (num == 1) { text1; } text2;.

Select the program that outputs "300". let num1 = 10; let num2 = 30; else (num2 > num1) { console.log(num1 + num2); }. let num1 = 10; let num2 = 30; if (num2 > num1) { console.log(num1 * num2); }. let num1 = 10; let num2 = 30; if (num2 > num1) { console.log(num1 + num2); }. let num1 = 10; let num2 = 30; else (num2 > num1) { console.log(num1 * num2); }.

Select the result that will be output when this program is executed let time = 15; if (time < 10) { console.log("Good morning."); } else { console.log("Hello."); } time = 20; console.log(time);. 15. 20. Hello. 15. Hello. 20.

Select the program that outputs "Good night". let time = 22; let str = "Hello."; console.log (time == 22) { str = "Good night."; } console.log(str);. let time = 22; let str = "Hello."; if (time > 22) { str = "Good night."; } console.log(str);. let time = 22; let str = "Hello."; if (time == 22) { str = "Good night."; } console.log(str);. let time = 22; let str = "Hello."; console.log (time > 22) { str = "Good night."; } console.log(str);.

Select the result that will be output when this program is executed console.log(2 * 3); console.log(6 + 2);. 5 8. 6 8. 5 4. 6 4.

Select the program that outputs "Hello". let hello "Hello."; console.log(hello);. let hello = "Hello."; console.log(hello);. let hello = "Hello."; console.log = hello;. let hello "Hello."; console.log = hello;.

Select the result that will be output when this program is executed let greeting = "Hello."; console.log(greeting); greeting = "Good morning."; console.log(greeting);. Hello. Good morning. Hello. Hello.

Select the result that will be output when this program is executed let breakfast = "Bread"; breakfast = "Rice"; console.log(breakfast);. Bread. breakfast, Bread. breakfast, Rice. Rice.

Select the program that outputs the following: Items over 1000 yen are 50% off! So this item is half price!. let productPrice = 1200; console.log("Items over 1000 yen are 50% off!"); if (productPrice > 1000) { console.log("So this item is half price!"); }. let productPrice = 1200; console.log("Items over 1000 yen are 50% off!"); (productPrice > 1000) { console.log("So this item is half price!"); }. let productPrice = 1200; console.log("Items over 1000 yen are 50% off!"); if { console.log("So this item is half price!"); }. let productPrice = 1200; console.log("Items over 1000 yen are 50% off!"); if { console.log("So this item is half price!"); }(productPrice > 1000).

Select the program that outputs "2". if (2 < 5) { console.log(4 / 2); }. (2 < 5) { console.log(4 / 2); }. (2 < 5) { console.log(4 * 2); }. if (2 < 5) { console.log(4 * 2); }.

Select the program that outputs "There are more oranges". let appleCount = 5; let orangeCount = 7; if (appleCount > orangeCount) { console.log("There are more apples."); else { console.log("There are more oranges."); } }. let appleCount = 5; let orangeCount = 7; if (appleCount > orangeCount) { console.log("There are more apples."); } else (appleCount < orangeCount) { console.log("There are more oranges."); }. let appleCount = 5; let orangeCount = 7; if (appleCount > orangeCount) { console.log("There are more apples."); } if (else) { console.log("There are more oranges."); }. let appleCount = 5; let orangeCount = 7; if (appleCount > orangeCount) { console.log("There are more apples."); } else { console.log("There are more oranges."); }.

Select the program that outputs "I used it all". let apple = 200; let num = 5; let money = 1000; money = money - apple * num; if (money == 0) { console.log("I used it all."); } else { console.log("You can still buy it."); }. let apple = 200; let num = 5; let money = 1000; money = money - apple + num; if (money == 0) { console.log("I used it all."); } else { console.log("You can still buy it."); }. let apple = 200; let num = 5; let money = 1000; money = money - apple * num; if (money = 0) { console.log("I used it all."); } else { console.log("You can still buy it."); }. let apple = 200; let num = 5; let money = 1000; money = money - apple + num; if (money = 0) { console.log("I used it all."); } else { console.log("You can still buy it."); }.

Select the program that outputs the following: Good morning. I won’t eat breakfast. I’ll go to school at 9 o’clock. let time = 8; if (time > 8) { console.log("Good morning."); } if (time > 7) { console.log("I won’t eat breakfast."); } console.log("I’ll go to school at 9 o’clock.");. let time = 8; if (time > 8) { console.log("Good morning."); } if (time > 7) { console.log("I won’t eat breakfast."); } else { console.log("I’ll eat breakfast."); } console.log("I’ll go to school at 9 o’clock.");. let time = 8; if (time == 8) { console.log("Good morning."); } if (time > 7) { console.log("I won’t eat breakfast."); } console.log("I’ll eat breakfast."); console.log("I’ll go to school at 9 o’clock.");. let time = 8; if (time == 8) { console.log("Good morning."); } if (time > 7) { console.log("I won’t eat breakfast."); } else { console.log("I’ll eat breakfast."); } console.log("I’ll go to school at 9 o’clock.");.

Select the program that outputs "The apples are heavier". let appleWeight = 400; let orangeWeight = 300; if (appleWeight == orangeWeight) { console.log("The apples are heavier."); } else { console.log("The oranges are heavier."); }. appleWeight = 400; orangeWeight = 300; if (appleWeight == orangeWeight) { console.log("The apples are heavier."); } else { console.log("The oranges are heavier."); }. let appleWeight = 400; let orangeWeight = 300; if (appleWeight > orangeWeight) { console.log("The apples are heavier."); } else { console.log("The oranges are heavier."); }. appleWeight = 400; orangeWeight = 300; if (appleWeight > orangeWeight) { console.log("The apples are heavier."); } else { console.log("The oranges are heavier."); }.

Select the program that outputs "Well done!". let score = 70; let average = 65; if (score > average) { console.log("Let’s try a little harder."); } else { console.log("Well done!"); }. let score = 70; let average = 65; if (score < average) { console.log("Let’s try a little harder."); else { console.log("Well done!"); } }. let score = 70; let average = 65; if (score > average) { console.log("Let’s try a little harder."); else { console.log("Well done!"); } }. let score = 70; let average = 65; if (score < average) { console.log("Let’s try a little harder."); } else { console.log("Well done!"); }.

Select the result that will be output when this program is executed let num1 = 1; let num2 = 5; let ans = 0; if (num1 > num2) { ans = num1; } else if (num1 == num2) { ans = num1 + num2; } else { ans = num2; } console.log(ans);. 1. 0. 6. 5.

Select the program that outputs the following: Police Fire department. let num = 110; if (num == 110) { ("Police"); } num = 119; if (num == 119) { ("Fire department"); }. let num = 110; if (num == 110) { console.log("Police"); } num = 119; if (num == 119) { console.log("Fire department"); }. let num = 110; if (num == 119) { ("Fire department"); } num = 119; if (num == 110) { ("Police"); }. let num = 110; if (num == 119) { console.log("Fire department"); } num = 119; if (num == 110) { console.log("Police"); }.

Select the program that outputs the following: Mountain Sea. let place = "Mountain"; place - "Sea"; console.log(place); console.log(place);. let place = "Mountain"; console.log(place); place - "Sea"; console.log(place);. let place = "Mountain"; console.log(place); place = "Sea"; console.log(place);. let place = "Mountain"; place = "Sea"; console.log(place); console.log(place);.

Report abuse