
JavaScript Numbers and Strings – MCQs
Authored by Dheepan G
Information Technology (IT)
Professional Development
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
let x = 10;
let y = "5";
console.log(x + y);
15
105
10 + 5
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods converts a number to a string?
toNumber()
toText()
toString()
parseInt()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output?
console.log(Number("123"));
"123"
123
NaN
undefined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of:
console.log(parseInt("12.34"));
12.34
12
13
NaN
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method converts a number into an exponential notation?
toExponential()
toPrecision()
toFixed()
toLocaleString()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of:
console.log(isNaN("Hello"));
true
false
"Hello"
NaN
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of:
console.log((0.1 + 0.2).toFixed(2));
0.3
"0.30"
0.30
"0.3"
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
30 questions
ALEGO TES AKHIR WEB DEV
Quiz
•
Professional Development
30 questions
Post Test of Digital literacy & AI Training
Quiz
•
Professional Development
35 questions
html css js
Quiz
•
Professional Development
31 questions
CCSA-3
Quiz
•
Professional Development
35 questions
Quiz 5: Java Swing
Quiz
•
Professional Development
30 questions
Quizz Day 2 Python Testing Short Version
Quiz
•
Professional Development
32 questions
Quiz de Informática Básica
Quiz
•
Professional Development
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)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...