q3 sol - CSCI.1100 Computer Science I Quiz 3 September 27,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CSCI.1100 Computer Science I Quiz 3 September 27, 2007 Closed book, closed notes, no computers or calculators of any kind. Name: RCS login: Circle your lab section: (01 MR 10:00) (02 MR 12:00) (03 MR 2:00) (04 MR 4:00) (05 MR 6:00) (06 MR 10:00) (07 TF 10:00) (08 TF 12:00) (09 MR 12:00) (010 TF 2:00) You will have 15 minutes to complete this test. Make sure you do not spend too much time on any question. The time spent on each question should be proportional to the number of points 1. Mark each of these five statements TRUE if the statement is a valid test of whether the character c is a digit, otherwise mark it FALSE? (1 point each) a) if (’0’ <= c <= ’9’) { FALSE b) FALSE c) if (c == ’0’ || c == ’1’ || c == ’2’ || c == ’3’ || c == ’4’ || c == ’5’ || c == ’6’ || c == ’7’ || c == ’8’ || c == ’9’) { TRUE d) if (!(c < ’0’ || c > ’9’)) { TRUE
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
e) FALSE 2. What will the program below print
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

q3 sol - CSCI.1100 Computer Science I Quiz 3 September 27,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online