
Js variables data type arithmetic expression
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Hard
cid ungriano
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What is the data type of the variable userName?
Number
Boolean
String
Undefined
2.
MULTIPLE CHOICE QUESTION
30 sec • 4 pts
What happens when the line age = 30; is executed?
The value of age is updated to 30.
The program runs without errors.
A TypeError occurs because age is declared with const.
The program will ignore the line.
3.
MULTIPLE CHOICE QUESTION
30 sec • 4 pts
Which of the following correctly explains the line isStudent = false;?
A new variable is created.
The boolean value of isStudent is updated.
A syntax error occurs because let variables cannot be changed.
false is appended to isStudent.
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Why can userName be reassigned but age cannot?
userName is a const variable, and age is a let variable.
Both variables can be reassigned.
userName is declared with let, allowing reassignment, but age is declared with const, making it immutable.
const only prevents reassignment for numbers, not strings.
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which statement is true about the let and const keywords?
let allows reassignment, but const does not.
const is used only for numbers.
let variables are automatically converted to strings.
const variables can be reassigned inside a function.
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
If the user enters "15" in the prompt, what will be the value of userAge immediately after input?
15 (as a number)
"15" (as a string)
Undefined
NaN
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What will be the value of yearsSinceBirth?
2000
25
"25"
NaN
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Quiz 1-15
Quiz
•
9th - 12th Grade
10 questions
Data and Database Fundamentals part 1
Quiz
•
11th Grade
14 questions
Google sheets
Quiz
•
7th Grade - University
10 questions
Penilaian Operasi Komputer Dasar
Quiz
•
7th Grade - University
14 questions
Kuis XI
Quiz
•
11th Grade
10 questions
Tebak Istilah Pengembangan Produk Digital
Quiz
•
11th Grade
10 questions
Quiz Booting dan CPU
Quiz
•
10th Grade - University
12 questions
Fundamentals
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
