
JavaScript Numbers and Strings – MCQs
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Hard
Dheepan G
Used 1+ times
FREE Resource
Enhance your content in a minute
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"
Create a free account and access millions of resources
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
25 questions
React and NodeJS with Docker
Quiz
•
Professional Development
28 questions
Computer Hardware and Troubleshooting Quiz
Quiz
•
Professional Development
30 questions
Loop Logic Challenge – C Basics Edition
Quiz
•
Professional Development
30 questions
Revisão 2° Sistemas (AVB3)
Quiz
•
Professional Development
25 questions
Routing Protocols MCQs
Quiz
•
Professional Development
27 questions
High-throughput streaming with Bigtable
Quiz
•
Professional Development
29 questions
JavaScript Fundamentals Quiz
Quiz
•
Professional Development
32 questions
Quiz 2
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
