Difference between revisions of "Values, Types, and Variables Identification assignment"

From WLCS
(Created page with "'''Directions:''' * Identify next to each of the numbered items below whether or not it is a value or a variable ** If the item is a value, then identify its type (int, string, f...")
 
Line 1: Line 1:
 
'''Directions:'''
 
'''Directions:'''
 +
 +
# Open a text editor (Applications->Accessories->gEdit Text Editor)
 +
# Put your name at the top
 +
# Save the file as YOURLASTNAME_vtv.txt
 +
# Complete the exercises below in this file
 +
# Be sure to number each of your answers!!
 +
 
* Identify next to each of the numbered items below whether or not it is a value or a variable
 
* Identify next to each of the numbered items below whether or not it is a value or a variable
 
** If the item is a value, then identify its type (int, string, float)
 
** If the item is a value, then identify its type (int, string, float)

Revision as of 08:15, 12 October 2010

Directions:

  1. Open a text editor (Applications->Accessories->gEdit Text Editor)
  2. Put your name at the top
  3. Save the file as YOURLASTNAME_vtv.txt
  4. Complete the exercises below in this file
  5. Be sure to number each of your answers!!
  • Identify next to each of the numbered items below whether or not it is a value or a variable
    • If the item is a value, then identify its type (int, string, float)
  1. 3
  2. hello
  3. "bob"
  4. 8
  5. "9"
  6. 2.5
  7. generals
  8. 1337
  9. "l33t"
  10. 1.0
  • Identify next to each of the variable names whether or not it is a valid variable name
  1. x
  2. xyz
  3. 2x
  4. x!
  5. x2
  6. this_is_a_long_variable_name
  7. hello world
  8. washington-lee
  9. bobobobob
  10. 429