0% found this document useful (0 votes)
11 views2 pages

Apcwd102 Midterm

Uploaded by

ibabaoherbie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views2 pages

Apcwd102 Midterm

Uploaded by

ibabaoherbie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MIDTERM EXAMINATION

APCWD 102 – WEB PROGRAMMING

Name Date
Course/Year/Section

I: Identify what is being asked in the following sentences. (1 point each)

1. It is the set of rules, how JavaScript programs are constructed


2. It can also be used to prevent execution, when testing alternative code
3. These are containers for storing data
4. Assign values to JavaScript variables
5. In an arithmetic operation, the numbers are called ___________
6. A defined variable that cannot be redeclared and must be declared before
use
7. In an arithmetic operation, the operation is defined by an __________
8. This assigns a value to a variable
9. Perform arithmetic on numbers
10. Any text between /* and */ will be ignored by JavaScript
11. It is a block of code designed to perform a particular task
12. Loops through a block of code as long as a specified condition is true
13. A variable that can contain many values
14. The method that adds a new element to an array
15. These are variables used to store big integer values that are too big to be
represented by a normal JavaScript Number
16. Can hold more than one value and considered special variable
17. Returns a number written with a number of decimals
18. These are for manipulating and storing text
19. A method that creates a new array by merging existing arrays
20. These are "things" that happen to HTML elements
II: Analyze the given codes carefully. Write DEV if the given code follows the correct
JavaScript syntax or does not contain any error(s). Otherwise, underline what makes the
code invalid then right the correct word, number, or special character on the space
provided. (2 points each)

1. $.ajax( { } )
2. class Students extends People { } -
3. objectName["propertyName"]
4. console.log(name.toUpperCase());
5. function students(name, age, gender)
6. (100 + 23).valueOff();
7. {"firstName":"John", "lastName":"Doe"}
8. c= { name: 'John', age: 51, Gender: 'Male' }
9. numbers.forEach(myFunction);
10. console.log(Object.value(people));
11. const fruits = ["Apple", "Cherry", "Lenovo", "Asus"];
12. class ClassName {constructor() { ... } }
13. getInfo () { return '&{this.Name} is a &{this.Gender} and & {this.Age} years
old ` ; }
14. (100 + 23).toSpring();
15. const cars = new Array("Saab", "Volvo", "BMW");
16. function People(Name, Age, Gender)
17. Math.floor(-4.2);
18. String lastIndexOf()
19. People.prototype.getAge = function[]
20. Math.sqrt(64);
21. switch (new Date().getDate()) {}
22. do { text += "The number is " + i; i++; }

Types of JavaScript Operators







You might also like