The add instruction adds the values in memory

This preview shows page 3 - 7 out of 12 pages.

15. The ADD instruction adds the values in memory locations, not the address numbers of the memory locations A. True B. False 16. Every memory location in the computer is numbered, starting at 0 A. True B. False 17. The ability to store different values in its memory locations make the computer a  flexible tool  A. True B. False
Image of page 3

Subscribe to view the full document.

Chapter 17:  1. All independent variables in a JavaScript program must be declared. A. True B. False 2. A JavaScript variable cannot be initialized in the same statement in which it is declared. A. True B. False 3. The statement terminator in JavaScript is the colon (:). A. True B. False 4. In JavaScript, strings must be enclosed by single (‘) or double (“) quotes. A. True B. False 5. A Boolean value can be either true or false. A. True B. False 6. The outcome of a relational expression is always true or false. A. True B. False 7. Which of the following is a valid JavaScript variable name? A. 01234 B. 37AB C. BR549 D. Tax Rate 8. In JavaScript, the escape symbol is the: A. Slash (/) B. Backslash (\) C. Colon (:) D. Semicolon (;) 9. Which of the following is not a suitable assignment statement? A. Wages = hours*rate B. Length*width = area
Image of page 4
C. Class + “College Algebra” D. Score = 92.8 10. In JavaScript, 17%5 is A. The name of a variable B. 2 C. 3 D. The same as 17/5 11. An if statement must have: A. The word then in it B. the <then-statement> on a separate line C. A semicolon at the end of it D. All of the above 12. In JavaScript, an empty string: A. Contains a single space enclosed in double quotes B. Is not valid C. Is the same as an undefined value D. Is written as “” 13. String Constants or string literals: A. Are stored in memory with the surrounding quotes or double quotes B. Are surrounded by quotes in JavaScript code C. Can’t include a tab character D. All of the above 14. In JavaScript, variables must be declared at the top of the program  A. True B. False
Image of page 5

Subscribe to view the full document.

Chapter 18:  1. JavaScript is designed for Web Applications A. True B. False 2. JavaScript is an event-based programming language A. True B. False 3. In programming, equality comparisons between strings are not case sensitive A. True B. False 4. The browser records all the information about a Web page, e.g., forms, images, and other elements, in a data structure for the Web page called the Document Object Model (DOM).
Image of page 6
Image of page 7

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern