Random, Parse and String Review

Quiz
•
Instructional Technology
•
10th Grade
•
Medium
Gabrielle G Procario
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
How can you convert a string into a decimal number in JavaScript
parseDecimal()
parseFloat()
stringToFloat()
parseRandom()
2.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
What data type does a prompt always return in JavaScript?
number
Boolean
object
string
3.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
What is the purpose of using a prompt in JavaScript
take input from the user
create comments in the code
display messages to the user
import external modules, such as "prompt sync"
4.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
Which method is used to convert a string into an integer in JavaScript?
parseString()
parseInt()
toInt()
stringTolnt()
5.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
What does the const keyword indicate when declaring a variable in JavaScript?
The value of the variable cannot be changed after initialization
The value of the variable must be a number value
The variable can only be accessed by a specific piece of code
The variable must be changed after initialization
6.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
Given the code line below - which statement is true.
const prompt = require("prompt-sync")();
the require method is used to include external modules/files in a program
the name prompt, variable name must always be used in the require instance
the const use will allow the variable prompt to be changed throughout the program
the option prompt is calling internal code to process information
7.
MULTIPLE CHOICE QUESTION
3 mins • 3 pts
Which of the following code statement will generate random numbers (integers) in JavaScript
between -10 and 3?
let random5=Math.floor(Math.random()*14-10)
let random5=Math.floor(Math.random()*-10+3)
let random5=Math.floor(-10)Math.random(3)*1
let random5=Math.floor(Math.random()*14-10
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
introducción a JavaScript

Quiz
•
10th Grade
10 questions
🎯 ¿Verdadero o falso? La IA en la escuela

Quiz
•
9th Grade - University
20 questions
Types and Components of Computer Systems

Quiz
•
9th - 12th Grade
10 questions
TLE ASSESSMENT

Quiz
•
10th Grade
10 questions
ICT Q4 M3

Quiz
•
10th Grade
14 questions
Quiz de refuerzo, tecnología Segundo Trimestre

Quiz
•
1st - 12th Grade
10 questions
JavaScript basics (vidcode, BR JSDJ Day 1)

Quiz
•
5th - 12th Grade
10 questions
Prompts IA

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Instructional Technology
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade