
js expressions
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Medium
cid ungriano
Used 1+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
If the user enters "5" in the prompt, what will be the value of doubled?
"10"
10
"55"
NaN
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
If the user enters "5", what will be the value of converted?
"55"
10
"10"
NaN
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
If the user enters "8", what will be displayed in the second alert()?
"String concatenation result: 88"
"String concatenation result: 16"
"String concatenation result: 8 + 8"
"String concatenation result: 8 8"
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which statement correctly describes the behavior of alert("You entered: " + userInput);?
It displays the entered value as a string.
It converts the input into a number before displaying.
It multiplies the input by 2 before displaying.
It removes spaces from the input before displaying.
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the purpose of parseInt() in the code?
It converts user input into a whole number.
It checks if the input is odd or even.
It adds two numbers together.
It displays an alert with the sum.
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
If the user enters "10" and "5", what will be the second alert message?
"The sum is: 10"
"The sum is: 5"
"The sum is: 15"
"The sum is: 105"
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which operator is used to check if a number is odd or even?
+ (Addition)
* (Multiplication)
% (Modulus)
/ (Division)
8.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
If the user enters 4 and 7, what will be the last alert message?
"The sum is even."
"The sum is odd."
"The sum is: 4"
"The sum is: 7"
9.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
How many alert() messages does this code display?
1
2
3
4
Similar Resources on Wayground
10 questions
Berpikir Komputasional (BK)
Quiz
•
8th Grade - University
10 questions
The Gartner Hype Cycle
Quiz
•
11th Grade
10 questions
Microsoft Excel (IF bersarang)
Quiz
•
11th Grade
10 questions
EmpoTech Quiz Bee
Quiz
•
11th Grade
12 questions
File Compression and Digital Audio/Video Formats
Quiz
•
9th - 12th Grade
10 questions
ASESMEN DIAGNOSTIK INFORMATIKA X DPB 2
Quiz
•
10th Grade - University
14 questions
CPU Components Quiz
Quiz
•
10th Grade - University
10 questions
Pengantar Pemrograman Web
Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Thanksgiving Trivia
Quiz
•
11th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
