CIT 110 Final Exam)
1. In programming, names for values are called variables.: True
2. The flow of an assignment is always right to left: True
3. In JavaScript, the escape symbol is the: backslash (\)
4. In JavaScript, 17%5 is: 2
5. is the logical OR operator in JavaScript: ||
6. is the logical AND operator in JavaScript: &&
7. is the relational operator symbol for "equal to": ==
8. The assignment symbol in JavaScript is .: =
9. In JavaScript, an empty string: is written as ""
10.In JavaScript, the + sign represents: either addition or string
concatenation, depending on the types of the values it is used with
11.The best way to develop a program is to just write code and modify it
as needed.: False
12.JavaScript is an event-based programming language.: True
13.JavaScript is added between script tags.: True
14.In JavaScript, output displayed in a popup box can be produced
using the:: alert command
15.Data values can be referenced: all of the above
16.When a button is clicked in a form: a click event is generated
17.Buttons and checkboxes are known as of forms: Elements
18.A(n) is an indication from the computer (operating system) that
something just happened (such as a mouse click).: event
19.A grid of rows and columns can be created using the: <table> tag
20.A Web page can have only one form.: False
21.Variables in the parameter list of a JavaScript function are
automatically declared.: True
22.The return value for a JavaScript function must be a variable.: False
23.A variable cannot be used as part of a calculation to assign a value
to itself: False
24.Variable names declared in a function:: can only be used inside that
function
25.When defining a function, how do you specify the result?: You return it.
26.Which of the following is an alternate term for function?: all of the above
27.Inputs to a function are known as .: parameters
28.Variables declared inside a function are in scope: local
29.The random numbers generated by Math.random( ): are really pseudo-
ran- dom
30.The values returned by the Math.random( ) function are between: 0
(inclu- sive) and 1 (exclusive)
1/3
1. In programming, names for values are called variables.: True
2. The flow of an assignment is always right to left: True
3. In JavaScript, the escape symbol is the: backslash (\)
4. In JavaScript, 17%5 is: 2
5. is the logical OR operator in JavaScript: ||
6. is the logical AND operator in JavaScript: &&
7. is the relational operator symbol for "equal to": ==
8. The assignment symbol in JavaScript is .: =
9. In JavaScript, an empty string: is written as ""
10.In JavaScript, the + sign represents: either addition or string
concatenation, depending on the types of the values it is used with
11.The best way to develop a program is to just write code and modify it
as needed.: False
12.JavaScript is an event-based programming language.: True
13.JavaScript is added between script tags.: True
14.In JavaScript, output displayed in a popup box can be produced
using the:: alert command
15.Data values can be referenced: all of the above
16.When a button is clicked in a form: a click event is generated
17.Buttons and checkboxes are known as of forms: Elements
18.A(n) is an indication from the computer (operating system) that
something just happened (such as a mouse click).: event
19.A grid of rows and columns can be created using the: <table> tag
20.A Web page can have only one form.: False
21.Variables in the parameter list of a JavaScript function are
automatically declared.: True
22.The return value for a JavaScript function must be a variable.: False
23.A variable cannot be used as part of a calculation to assign a value
to itself: False
24.Variable names declared in a function:: can only be used inside that
function
25.When defining a function, how do you specify the result?: You return it.
26.Which of the following is an alternate term for function?: all of the above
27.Inputs to a function are known as .: parameters
28.Variables declared inside a function are in scope: local
29.The random numbers generated by Math.random( ): are really pseudo-
ran- dom
30.The values returned by the Math.random( ) function are between: 0
(inclu- sive) and 1 (exclusive)
1/3