Fall 2007 Prelim 1 Review Questions.pdf

Fall 2007 Prelim 1 Review Questions.pdf - o P2.3.2 4....

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS100 M Review Questions for Prelim 1 1. Be sure to review all the lecture examples, section/lab exercises, and homework problems! 2. Short Questions: Smith textbook, pp110-111, questions 1-5, 7. Note that we have focused so far on the logical AND (&&) and OR (||) operators. We will use & and | later. 3. Questions from FVL: o P1.3.1 o P1.3.2 o P2.1.6
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: o P2.3.2 4. Modify lecture example SqrtWhile.m to include graphics. In each iteration draw the rectangle using function DrawRect. Draw the rectangles side-by-side, lining up the top of the rectangles. 5. Write a program fragment to determine whether a user input value x is prime. Display the value and either "is prime" or "is composite."...
View Full Document

This note was uploaded on 02/28/2008 for the course CS 100 taught by Professor Fan/vanloan during the Fall '07 term at Cornell.

Ask a homework question - tutors are online