Professional Documents
Culture Documents
1.-Comp-10 1st Quarterly Assessment
1.-Comp-10 1st Quarterly Assessment
Quarter 1, Week 10
Quarterly Assessment
Computer 10
I. TRUE OR FALSE
Directions: Write TRUE if the statement is true, otherwise write FALSE. Write your answer on the space
provided at the right side. (2 points each)
1. Inserting JavaScript program requires that you use the <script> and </script> tags. 1. ____________
2. You may also place the script in an external text file. 2. ____________
3. Comments are used to put information that can be useful later. 3. ____________
4. A comment that occupies a single line may be inserted by starting it with two slashes 4. ____________
(//).
5. A multi-line comment that occupies two or more lines should be enclosed use /* and 5. ____________
*/.
6. JavaScript is case-sensitive. 6. ____________
7. A variable is a temporary storage for values that you will use in your program. 7. ____________
8. In explicit declaration, you need to use the var keyword. 8. ____________
9. Implicit declaration is assigning a value to a nonexistent variable instantly creates it. 9. ____________
10. Numeric values are made up of numeric characters and can be used for calculations. 10. ____________
11. A string values is enclosed in a single or double quotes and may contain any 11. ____________
characters or set of characters.
12. A Boolean value is either true or false 12. ____________
13. Null is a especial value that means full. 13. ____________
14. A JavaScript statement may be an assignment operation, a function call or a control 14. ____________
structure.
15. A function call is used to determine how statements will be performed. 15. ____________
16. The prompt () function is used to display a dialogue box that will ask the user to 16. ____________
enter a number in the textbox.
17. The document. write() function is used to insert text and HTML elements into page. 17. ____________
18. Initial value is a string that will be display in the dialogue box. 18. ____________
19. Text to display is the initial value of the textbox. 19. ____________
20. An expression is a set of values, variables, functions and operators that produces 20. ____________
(Returns) a value.
III. COMPLETION
Directions: Complete the table below. 20 points.
SPECIAL CHARACTERS
CODE DESCRITPTION EXAMPLE RESULT
Inset a single quote 2. 3.
1.
4. 5. Documents.write(“This is a “ 6.
string” )
& 7. 8. 9.
---END---
“Do your best and God will do the Rest”
It is better to say God bless than Good luck. GODBLESS!!!
Prepared by :
Mark Louie A. Ferrer
(Subject Teacher)