Difference between revisions of "HTTLACS: Ch 1 Exercises"

From WLCS
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
# Put your name at the top
 
# Put your name at the top
 
# Save the file as YOURLASTNAME_ch1.txt
 
# Save the file as YOURLASTNAME_ch1.txt
# Complete the exercises below in this file
+
# Complete the exercises below in this file.  If you use DrPython, then be sure to copy your code back into this file
 
# Be sure to number each of your answers!!
 
# Be sure to number each of your answers!!
 +
 +
'''References:'''
 +
* [http://openbookproject.net/thinkcs/python/english2e/ch01.html How to Think Like a Computer Scientist: Chapter 1]
  
 
'''Exercises:'''
 
'''Exercises:'''
Line 10: Line 13:
 
# What is a '''program'''?
 
# What is a '''program'''?
 
# What does '''debugging''' mean?
 
# What does '''debugging''' mean?
# Define '''syntax errors''', runtime errors''', and '''semantic errors'''
+
# Define '''syntax errors''', '''runtime errors''', and '''semantic errors'''
# What is the difference between a '''formal language''' and a natural language'''?
+
# What is the difference between a '''formal language''' and a '''natural language'''?
 
# Write the print statement that prints the following "YOURNAME is a rock star!"
 
# Write the print statement that prints the following "YOURNAME is a rock star!"
 
# Write a program that says “All work and no play makes Jack a dull boy” 10 times.
 
# Write a program that says “All work and no play makes Jack a dull boy” 10 times.

Latest revision as of 20:28, 18 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_ch1.txt
  4. Complete the exercises below in this file. If you use DrPython, then be sure to copy your code back into this file
  5. Be sure to number each of your answers!!

References:

Exercises:

  1. Define the words high-level language and low-level language to a middle-schooler
  2. What is a program?
  3. What does debugging mean?
  4. Define syntax errors, runtime errors, and semantic errors
  5. What is the difference between a formal language and a natural language?
  6. Write the print statement that prints the following "YOURNAME is a rock star!"
  7. Write a program that says “All work and no play makes Jack a dull boy” 10 times.

Submit: