9781111969752_TB_ch02 - Chapter 2: Elements of High-Quality...

This preview shows page 1 - 3 out of 8 pages.

Chapter 2: Elements of High-Quality ProgramsTRUE/FALSE1.A variable can hold more than one value at any given moment in time.PTS:1REF:39
2.Because one memory location can be used repeatedly with different values, you can write programinstructions once and then use them for thousands of separate calculationsPTS:1REF:39
3.In many programming languages, if you declare a variable and do not initialize it, the variable containsan unknown value until it is assigned a value.PTS:1REF:40
4.Variable names can be more than one word with blanks between the words.PTS:1REF:41
5.The assignment operator has left-to-right-to-left associativity, which means that the value of theexpression to the left of the assignment operator is evaluated first and that the result is assigned to theoperand on the right.PTS:1REF:42
6.A string variable can hold digits such as phone numbers and zip codes.PTS:1REF:43
7.Programmers generally write programs as one long series of steps.PTS:1REF:48
8.Modularization makes it harder for multiple programmers to work on a problem.PTS:1REF:50
9.Program comments are a type of internal documentation.PTS:1REF:64
10.Most modern programming languages require that program statements be placed in specific columns.PTS:1REF:68
MULTIPLE CHOICE1.When you write programs, you work with data in three different forms: ____.
We have textbook solutions for you!
/JavaScript-The-Web-Warrior-Series-6th-Edition-9781305078444-2709/
The document you are viewing contains questions related to this textbook.
Chapter 2 / Exercise 3
JavaScript: The Web Warrior Series
Vodnik
Expert Verified
b.variables; named constants; and named memoryc.variables; literals, or unnamed constants; and named constantsd.variations; transliterals, or unnamed constants; and named valuesANS: CPTS:1REF:382.A specific numeric value is often called a(n) ____.PTS:1REF:38
3.Fractional numeric variables that contain a decimal point are known as ____ variables.a.partialc.integerb.stringd.floating-pointANS: DPTS:1REF:38
4.In most programming languages, before you can use any variable, you must include a ____ for it.PTS:1REF:39
5.The process of naming program variables and assigning a type to them is called ____ variables.PTS:1REF:39
6.A variable’s unknown value is commonly called ____.PTS:1REF:40

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 8 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
JavaScript: The Web Warrior Series
The document you are viewing contains questions related to this textbook.
Chapter 2 / Exercise 3
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture