Functions, Data Types, & Operators

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

global

A ____ variable is one that is declared outside a function and is available to all parts of your program.

true

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

empty

A literal string can be assigned a zero-length string value called a(n) ____ string.

false

A logical operator is used to compare two string operands for equality.

integer

A(n) ____ is a positive or negative number with no decimal places.

parameter

A(n) ____ is a variable that is used within a function.

binary

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

return

A(n) ____ statement is a statement that returns a value to the statement that called the function.

escape character

A(n) ____ tells the compiler or interpreter that the character that follows it has a special purpose.

data

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

local

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

False

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

primitive

Data types that can be assigned only a single value are called ____ types.

braces

Function statements are contained within the function ____.

functions

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.

loosely typed

JavaScript is a ____ programming language.

True

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

variable

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

strongly

Programming languages that require you to declare the data types of variables are called ____ typed programming languages.

passing

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

&&

The AND operator is ____.

?:

The ____ operator executes one of two expressions based on the results of a conditional expression.

===

The strict equal operator is ____.

arguments

The variables or values that you place in the parentheses of a function call statement are called ____.

* / %

Which arithmetic operators have the highest precedence?

0

Which of the following is a falsy value?

||

Which of the following is a logical operator?

remainder left

You can use an arithmetic operator to return the modulus of a calculation, which is the ____ when you divide one number by another number.

assignment operator

You can use the compound ____ to combine two strings.


Kaugnay na mga set ng pag-aaral

Fall Physical Science semester exam

View Set

Business 201 Mid Term Exam Study Guide

View Set

Ch. 14: Preoperative Patient Care

View Set

Wireless Network and its Security

View Set

Croup, Epiglottis, & Bronchiolitis

View Set