week 7 javascript
In javascript, everything between ___ and ___ is a comment and ignored by the browser.
/* */
In javascript, the rest of the line after _____ is a comment and ignored by the browser.
//
Which of the following is not a suitable assignment statement?) wages = hours * rate 2) length * width = area 3) class = "College Algebra" 4) score = 92.8
2
Which of the following is a valid JavaScript variable name?0123 2) 37AB 3) BR549 4) Tax Rate
3
The assignment statement which assigns a value to a variable must contain the __________ symbol:
=
true or false. Using a search engine to perform a web search is an algorithm.
False
Algorithms should:
always achieve the intended result
This javascript statement accomplishes what two things? var tax_rate = 0.06;
declares tax_rate and sets its value to 0.06
true or false? A JavaScript variable cannot be initialized in the same statement in which it is declared.
false
true or false? The statement terminator in JavaScript is the colon (:).
false
true or false? There is only one valid algorithm to solve a problem.
false
A programming language used to make web pages interactive:
javascript
The language that allows us to write programs that interact with HTML, and related technologies:
javascript
When a process involves repeating steps to achieve the desired result, this is know as:
looping
The three basic data types in javascript are:
numbers, strings, booleans
Algorithms that are written in a specific programming language:
programs
To include javascript in a web page it must be in ________ tags.
script
Different algorithms for the same problem can:
solve the same problem differently mean that one algorithm is preferred over others take different amounts of processing time
A computer algorithm must be:
specific, unambiguous, ordered
Which of the following is NOT a valid variable name in javascript?
total price (no spaces in javascript)
true or false A recipe can be an algorithm?
true
true or false? A Boolean value can be either true or false.
true
true or false? All variables in a JavaScript program must be declared.
true
true or false? In programming, names are called variables.
true
Logical names given to locations in memory:
variables