Introduction to Computer Science:
Quiz 14:  Strings and Vectors
 Sewickley Academy, 2000-2001

See Course Home Page.
 
Date of Quiz: Mon Feb-12

1.  Read a word into an apstring.

2.  Access each letter inside an apstring (set each one to 'D').

3.  Read in a vector of apstrings of size 10.

4.  Read in a vector of apstrings when you don't know the length (terminated by "done").  Note:  Be sure to resize efficiently (not every time).

5.  With a vector of apstrings called sentence and a character called c, set c to the 2nd letter in the 4th word in sentence.

6.  Now the other way, set the 2nd letter in 4th word in sentence to the character c.

7.  In 20 words or less, what is the difference between single quote (') and. double quote (")?

8.  In 10 words or less, what is the meaning of life?

9. Briefly, how do we set up our projects for apvector, apstring, and apmatrix?


See Course Home Page.