JavaScript CH2

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

A logical operator is used to compare two string operands for equality. a. True b. False

False

An anonymous function is a set of related statements that is assigned a name. a. True b. False

False

In JavaScript code, you use the words yes and no to indicate Boolean values. a. True b. False

False

A comparison operator is used to compare two operands and determine if one numeric value is greater than another. a. True b. False

True

Parentheses are used with expressions to change the associativity with which individual operations in an expression are evaluated. a. True b. False

True

Which arithmetic operators have the highest precedence? a. * / % b. < <= c. && d. + -

a. * / %

The variables or values that you place in the parentheses of a function call statement are called ____. a. string operators b. primitive types c. arguments d. event listeners

arguments

You can use the compound ____ to combine two strings. a. value separator b. equals comparison c. assignment operator d. declaration operator

assignment operator

A(n) ____________________ operator requires an operand before and after the operator.

binary

Function statements are contained within the function ____. a. parameters b. braces c. arguments d. parentheses

braces

The And operator is ____. a. != b. || c. && d. ===

c. &&

Which of the following is a false value? a. true b. -1 c. 0 d. 1

c. 0

The strict equal operator is ____. a. = b. == c. === d. !=

c. ===

The ____ operator executes one of two expressions based on the results of a conditional expression. a. . b. () c. , d. ?:

d. ?:

Which of the following is a logical operator? a. ++ b. () c. == d. ||

d. ||

A(n) ____________________ type is the specific category of information that a variable contains.

data

A literal string can be assigned a zero-length string value called a(n) ____ string. a. empty b. undefined c. short d. byte

empty

A(n) ____ tells the compiler or interpreter that the character that follows it has a special purpose. a. exclamation point b. escape character c. null character d. upper case character

escape character

In JavaScript programming, you can write your own procedures, called ____, which refer to a related group of JavaScript statements that are executed as a single unit. a. programs b. functions c. modules d. objects

functions

A ____ variable is one that is declared outside a function and is available to all parts of your program. a. local b. limited c. scoped d. global

global

A(n) ____ is a positive or negative number with no decimal places. a. floating-point number b. scientific number c. exponential number d. integer

integer

A(n) ____________________ variable is declared inside a function and is available only within the function in which it is declared.

local

JavaScript is a ____ programming language. a. static typed b. loosely typed c. strongly typed d. numeric typed

loosely typed

A(n) ____ is a variable that is used within a function. a. method b. property c. parameter d. operator

parameter

Sending arguments to the parameters of a called function is called ____________________ arguments.

passing

Data types that can be assigned only a single value are called ____ types. a. primitive b. null c. numeric d. Boolean

primitive

You can use an arithmetic operator to return the modulus of a calculation, which is the ____ when you divide one number by another number. a. remainder left b. quotient c. product d. difference

remainder left

A(n) ____ statement is a statement that returns a value to the statement that called the function. a. return b. replace c. value d. exit

return

Programming languages that require you to declare the data types of variables are called ____ typed programming languages. a. dynamic b. strongly c. static d. loosely

strongly

Placing a parameter name within the parentheses of a function definition is the equivalent of declaring a new ____________________.

variable


Set pelajaran terkait

english 12 online answers for final

View Set

Comptia A+ core 2 wrong answers

View Set

Patho Midterm 22,23,24, & 25 STUDY!!!

View Set

Management and Production Test 1 (CH. 1)

View Set

C1 B1 Exam Review - Questions I answered incorrectly

View Set