Ch 4 critical thinking questions.pdf - Chapter 4 Critical...

This preview shows page 1 - 2 out of 5 pages.

Chapter 4 Critical Thinking Questions1.a) List four legal identifier names.
b) List four illegal identifier names and explain why each is illegal.
2. a) In two statements, declare an integer named numBeads and assign it the value 5.
b) In one statement, declare an integer named numBeads and assign it the value 5.
3. a) What is the final value of yourNumber after the last statement executes?
13b) What is the final value of yourNumber after the last statement executes?
4. Determine the appropriate data type for each of the following values:a.The number of basketballs in a department store- intb.The price of a basketball - doublec.The number f players on a basketball team- int

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 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Type system, Byte, Primitive data type

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture