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:
- 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
- If the item is a value, then identify its type (int, string, float)
- 3
- hello
- "bob"
- 8
- "9"
- 2.5
- generals
- 1337
- "l33t"
- 1.0
- Identify next to each of the variable names whether or not it is a valid variable name
- x
- xyz
- 2x
- x!
- x2
- this_is_a_long_variable_name
- hello world
- washington-lee
- bobobobob
- 429