CIS 1110 Review Sheet, Test 2


In addition to the material from Chapters 1-5, you should be able to do the following, from Chapters 6-9 and lectures:


1. evaluate expressions using logical operators (||, &&, !).


2. use the bool data type


3. use a do-while loop to control the flow of a program.


4. write a function that calls another function


5. use the switch statement, including break and default


6. terminate data input and control a loop using any of these three methods: the header value method, the user-response method, and the reading-to-input-failure method


7. declare, initialize and use an array; use array elements


8. send an array as a parameter to a function and change an array in a function


9. use reference parameters to allow a function to change the value of one or more of its parameters


10. find the largest or smallest element in an array or in an input stream


11. sort an array using either the linear sort or the bubble sort


12. search for an item in an array using the linear search [or the binary search, if we covered it]


13. declare, initialize, assign a value to a string; print, or read a value into a string


14. concatenate strings using +, compare strings using relational operators


15. use functions from string.h: length(), find(), insert(), erase(), replace(), substr()


16. use getline() to read strings that contain whitespace characters.


17. write a function to perform string manipulation--such as counting the number of characters in a string, finding an ‘e’ in a string, etc.


18. use subscripts to access characters in a string; use char functions isspace(), isalph(), isdigit(), isalnum(), ispunct(), isupper(), islower(), toupper(), tolower()


19. convert from decimal to binary, binary to decimal, binary to hexadecimal, hexadecimal to binary, and hexadecimal to decimal.


20. do arithmetic in binary or hex.


21. know something of the history of computing.


22. know the parts of a computer