9781111969752_TB_ch02 - Chapter 2 Elements of High-Quality Programs TRUE\/FALSE 1 A variable can hold more than one value at any given moment in time ANS

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.ANS: FPTS:1REF:392.Because one memory location can be used repeatedly with different values, you can write program instructions once and then use them for thousands of separate calculationsANS: TPTS:1REF:393.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.ANS: TPTS:1REF:404.Variable names can be more than one word with blanks between the words.ANS: FPTS:1REF:415.The assignment operator has left-to-right-to-left associativity, which means that the value of the expression to the left of the assignment operator is evaluated first and that the result is assigned to the operand on the right.ANS: FPTS:1REF:426.A string variable can hold digits such as phone numbers and zip codes.ANS: TPTS:1REF:437.Programmers generally write programs as one long series of steps.ANS: FPTS:1REF:488.Modularization makes it harder for multiple programmers to work on a problem.ANS: FPTS:1REF:509.Program comments are a type of internal documentation.ANS: TPTS:1REF:6410.Most modern programming languages require that program statements be placed in specific columns.ANS: FPTS:1REF:68a.values; variables, or named values; and unnamed valuesMULTIPLE CHOICE1.When you write programs, you work with data in three different forms: ____.
Background image
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) ____.3.Fractional numeric variables that contain a decimal point are known as ____ variables.4.In most programming languages, before you can use any variable, you must include a ____ for it.5.The process of naming program variables and assigning a type to them is called ____ variables.a.initializingc.identifyingb.declaringd.proclaimingANS: BPTS:1REF:396.A variable’s unknown value is commonly called ____.
Background image
Image of page 3

You've reached the end of your free preview.

Want to read all 8 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes