CIS 114 Quiz - Basic Variables

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

JavaScript includes a number of words that cannot be used for variable names. These are called __________ words. A. reserved B. forbidden C. provided D. syntax

A. reserved

______________ is the process wherein data of the incorrect type is converted to a different type to match the operation being performed. A. Numeric conversion B. Data typing C. Type coercion D. Parsing

C. Type coercion

There are several ways to declare a variable in JavaScript, which is NOT one of them? A. var B. const C. int D. let

C. int

Strings must be enclosed in... A. parentheses. B. double quotes only. C. single or double quotes. D. singe quotes only.

C. single or double quotes.

Once you have declared a constant... A. it must be used as a number. B. the variable name will only work when used with all capital letters. C. you cannot reassign the value. D. it cannot be used as part of an expression.

C. you cannot reassign the value.

JavaScript uses ____ bits to store numbers of either integer or floating point values. A. 8 B. 16 C. 32 D. 64

D. 64

To make a string span multiple lines which special character must be used? A.\0 B. \t C.\r D. \n

D. \n

The addition of the _______ keyword introduced block level scope in JavaScript. A. const B. global C. var D. let

D. let

The plus sign (+) acts differently when used on numbers and strings. When it is used on strings the operator performs __________. A. addition. B. negation. C. combination. D. concatenation.

D. concatenation.

When combining numeric input from the user with the intention of combining it with other numeric data, you must first... A. declare the variable as a numeric type. B. convert the number to a string. C. ask the user to only enter numeric characters. D. convert it to a number using a parse function or Number().

D. convert it to a number using a parse function or Number().


Set pelajaran terkait

PrepU Chapter 66: Neurologic Dysfunction

View Set

Retail Strategy Exam 1 Questions: Chapter 2

View Set

Parallel, Perpendicular,Slope, Slope-Intercept Form, Standard Form, and Point-Slope Form, Chapter 6 Parallel and Perpendicular Lines

View Set