CS8, 09M, UCSB
H00: (Based on Miller/Ranum, Chapter 1) Total points: ? (printable PDF)
Accepted: on paper, in lecture (11am-12:25pm, Phelps 1401) on Tuesday, August 4th
No email submission allowed.
Name: (2 pts)______________________________ UCSBNetID (2 pts) _____________________
Lab Section (2 pts) Circle one: Thu 11am Thu 12:30pm Unknown
Read the syllabus for the course, and then read Chapter 1, at least up through page 17. Then, answer the following questions. Be sure to check both sides.
- (4 pts) The name of this course is "Introduction to Computer Science". Yet, the authors of our textbook, in Chapter 1, indicate that there is some difficulty with applying the word "science" to Computer Science. They make the point that Computer Science is fundamentally different from Biology, Chemistry or Physics. Why do the authors make this claim—that is, what is different about Computer Science vs. those other fields?
- (4 pts) The authors state that Computer Science is the study of Algorithms. According to the authors, what is an algorithm?
- On p. 11, there is an example of a Python session. There are several symbols in this session. Describe what each of these symbols means:
- (4 pts) >>>
- (4 pts) *
- (4 pts) //
- (4 pts) %
Please turn over for more problems
Continued from other side
- Read pages 10-17 about the three types of numbers that we can work with in the Python programming language. These include integers, floating-point, and complex numbers.
- (4 pts) Which of these types of number would we use to represent your GPA?
Circle one: integer floating-pt complex
- (4 pts) Which of these types of numbers would we use to represent the number of students registered for this class?
Circle one: integer floating-pt complex
- (4 pts) Which of these types of numbers would we use to represent the square root of -4 ?
Circle one: integer floating-pt complex
- (4 pts) Fill in the blank: A complex number has an imaginary part and a _________________ part.
- (4 pts) In Math class, we often use the letter i to represent the square root of negative 1, and we write complex numbers in the format (a + bi).
What letter of the alphabet is used in Python to represent the imaginary part of a complex number?
End of H00