Explain Construct, Algorithm, or Data Structure or Compare Several Approaches
Some possible exercises:
Read or experiment with code to answer questions
Explain why a code segment produces a given result
Explain how the computer interprets specific constructs
Compare results from apparently parallel constructs
Explain why specific data structure used in a program segment
Change constructs and explain what happens
Explain differences between optimized and unoptimized code
Sample Laboratory Exercises
Lab 36, Iteration and Arrays
, from CSC 153,
Fundamentals of Computer Science
Discussion of material (alternative looping constructs in Java)
Compare and explain output of constructs for varying values
Explain result if syntactical constructs changed
Clarify scoping rules
Form hypothesis regarding data type used
Explain how code segment produces observed output
Lab 12, Concurrency in C
, from CSC 195,
Data Representation, Storage Management, and C Programming
Review existing programs
Run multiple times to understand concurrent execution alternatives and explain results
Force order of concurrent execution, using
sleep
statements
Explain result from interruption of concurrent processes
Explain effect of read and write with pipes by varying parameters
created May 4, 2003
last revised May 4, 2003
previous
next