

Computer Science I Exam Preparation Guide
Course Introduction
Computer Science I is an introductory course designed to provide students with a foundational understanding of problem-solving and programming concepts. The course covers the basic principles of computer science, including data types, control structures, algorithms, and software design. Students will learn how to write, test, and debug simple programs using a high-level programming language such as Python or Java. Emphasis is placed on logical thinking, algorithmic solutions, and systematic program development, preparing students for more advanced topics in computer science.
Recommended Textbook
Starting Out with Python 2nd Edition by Tony Gaddis
Available Study Resources on Quizplus
14 Chapters
489 Verified Questions
489 Flashcards
Source URL: https://quizplus.com/study-set/895

Page 2

Chapter 1: Introduction to Computers and Programming
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17656
Sample Questions
Q1) RAM is a volatile memory used for temporary storage while a program is running.
A)True
B)False
Answer: True
Q2) e: All programs are normally stored in ROM and loaded into RAM as needed for processing.
A)True
B)False
Answer: False
Q3) The _______________ is the part of a computer that actually runs programs and is the most important component in a computer.
Answer: central processing unit or CPU
Q4) Main memory is commonly known as _______________.
Answer: random-access memory or RAM
Q5) A(n) _______________ is a set of instructions that a computer follows to perform a task.
Answer: program
Q6) _______________ are small central processing unit chips.
Answer: Microprocessors
To view all questions and flashcards with answers, click on the resource link above. Page 3

Chapter 2: Input, Processing, and Output
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17657
Sample Questions
Q1) When applying the .3f formatting specifier to the following number, 76.15854, the result is _______________.
Answer: 76.159
Q2) What type of error produces incorrect results but does not prevent the program from running?
A) syntax
B) logic
C) grammatical
D) human
Answer: B
Q3) _______________ are notes of explanation that document lines or sections of a program.
Answer: Comments
Q4) What symbol is used to mark the beginning and end of a string?
A) Slash
B) Asterisk
C) Quotation
D) Comma
Answer: C
To view all questions and flashcards with answers, click on the resource link above. Page 4

Chapter 3: Simple functions
Available Study Resources on Quizplus for this Chatper
34 Verified Questions
34 Flashcards
Source URL: https://quizplus.com/quiz/17658
Sample Questions
Q1) The top-down design breaks down the overall task of the program into a series of _______________.
Answer: subtasks
Q2) Arguments are passed by _______________ to the corresponding parameter variables in the function.
Answer: position
Q3) It is recommended that programmers should avoid using _____ variables in a program when possible.
A) local
B) global C) string global
D) keyword
Answer: B
Q4) The _____ argument specifies which parameter the argument should be passed into.
A) keyword
B) local C) global
D) string
Answer: A
To view all questions and flashcards with answers, click on the resource link above. Page 5

Chapter 4: Decision Structures and Boolean Logic
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17659
Sample Questions
Q1) A(n) _______________ expression is made up of two or more Boolean expressions.
Q2) Python uses the same symbols for the assignment operator and the equality operator.
A)True B)False
Q3) In Python the _____ symbol is used as the equality operator.
A) ==
B) =
C) >=
D) <=
Q4) Decision structures are also known as selection structures.
A)True B)False
Q5) Expressions that are tested by the if statement are called Boolean expressions. A)True B)False
Q6) Short-circuit evaluation is performed with the not operator. A)True B)False
Page 6
Q7) The logical _______________ operator reverses the truth of a Boolean expression.
To view all questions and flashcards with answers, click on the resource link above.
Page 7

Chapter 5: Repetition Structures
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17660
Sample Questions
Q1) The while loop is known as a(n) _______________ loop because it tests conditions before performing an iteration.
Q2) _____ is the process of inspecting data that has been input to a program to make sure it is valid before it is used in a computation.
A) Input validation
B) Correcting data
C) Data validation
D) Correcting input
Q3) What type of loop structure repeats the code based on the value of the Boolean expression?
A) Condition-controlled loop
B) Number-controlled loop
C) Count-controlled loop
D) Boolean-controlled loop
Q4) The acronym _______________ refers to the fact that the computer cannot tell the difference between good data and bad data.
Q5) The first line in the while loop is referred to as the condition clause. A)True B)False
To view all questions and flashcards with answers, click on the resource link above. Page 8
Chapter 6: Value-Returning functions and Modules
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17661
Sample Questions
Q1) A value-returning function is _____.
A) a single statement that perform a specific task
B) called when you want the function to stop
C) a function that will return a value back to the part of the program that called it
D) a function that receives a value when it is called
Q2) The term _______________ is used to describe any mechanism that accepts input, performs some operation that cannot be seen, and produces output.
Q3) What is the result of the following statement? x = random.randint(5, 15) * 2
A) A random integer from 5 to 15, multiplied by 2, assigned to the variable x
B) A random integer from 5 to 15 assigned to the variable x
C) A random integer from 5 to 15, selected in 2 steps, assigned to the variable x
D) A random integer from 5 to 15, raised to the power of 2, assigned to the variable x
Q4) One of the drawbacks of a modularized program is that the only structure we could use is sequence structure.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above.

Page 9

Chapter 7: files and Exceptions
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17662
Sample Questions
Q1) A(n) _______________ access file retrieves data from the beginning of the file to the end of the file.
Q2) Which mode specifier will open a file but will not let you change the file or write to it?
A) 'w'
B) 'r'
C) 'a'
D) 'e'
Q3) Which step creates a connection between a file and a program?
A) Open the file.
B) Read the file.
C) Process the file.
D) Close the file.
Q4) Which method could be used to strip specific characters from the end of a string?
A) estrip
B) rstrip
C) strip
D) remove
Q5) A(n) _______________ file contains data that has not been converted to text.
To view all questions and flashcards with answers, click on the resource link above. Page 10

Chapter 8: Lists and Tuples
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17663
Sample Questions
Q1) The _______________ exception is raised when a search item is not in the list being searched.
Q2) What would be the value of the variable list2 after the execution of the following code? list1 = [1, 2, 3]
List2 = []
For element in list1
List2.append(element)
List1 = [4, 5, 6]
A) [1, 2, 3]
B) [4, 5, 6]
C) [1, 2, 3, 4, 5, 6]
D) invalid code
Q3) Lists are dynamic data structures such that items may be added to them or removed from them.
A)True
B)False
Q4) Tuples are _______________ sequences, which means that once a tuple is created, it cannot be changed.
Q5) The _______________ method reverses the order of the items in the list.
Page 11
Q6) A(n) _______________ is an object that holds multiple items of data.
To view all questions and flashcards with answers, click on the resource link above.

Chapter 9: More About Strings
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17664
Sample Questions
Q1) In slicing, if the end index specifies a position beyond the end of the string, Python will use the length of the string instead.
A)True
B)False
Q2) What is the value of the variable string after the execution of the following code? string = 'abcd' String.upper()
A) 'abcd'
B) 'Abcd'
C) 'ABCD'
D) Invalid code
Q3) What is the first negative index in a string?
A) 0
B) -1
C) -0
D) Size of the string minus one
Q4) The _______________ method returns the list of the words in the string.
Q5) A(n) _______________ exception will occur if you try to use an index that is out of range for a particular string.
To view all questions and flashcards with answers, click on the resource link above. Page 12

Chapter 10: Dictionaries and Sets
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17665
Sample Questions
Q1) The difference of set1 and set2 is a set that contains only the elements that appear in set1 but do not appear in set2.
A)True
B)False
Q2) What is the process used to convert an object to a stream of bytes that can be saved in a file?
A) Pickling
B) Streaming
C) Writing
D) Dumping
Q3) The index of the first key-value pair in a dictionary is 0.
A)True
B)False
Q4) Sets are immutable.
A)True
B)False
Q5) The union of two sets is a set that contains only the elements that appear in both sets.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 13

Chapter 11: Classes and Object-Oriented Programming
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17666
Sample Questions
Q1) A class _______________ is a set of statements that define a class's methods and data attributes.
Q2) An object's _______________ is simply the values of the object's attributes at any given moment.
Q3) What is the combining of data and code in a single object known as?
A) Modularity
B) Instantiation
C) Encapsulation
D) Objectification
Q4) The _______________ attributes are created by the self parameter and they belong to a specific instance of the class.
Q5) Each object that is created from a class is called a(n) _______________ of the class.
Q6) _______________ provides a set of standard diagrams for graphically depicting object-oriented systems.
Q7) A mutator method has no control over the way that a class's data attributes are modified.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 14

Chapter 12: Inheritance
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17667
Sample Questions
Q1) Base classes are also called _____.
A) superclasses
B) derived
C) subclasses
D) classes
Q2) Which of the following is the correct syntax for defining a class dining which inherits from class furniture?
A) class furniture(dining)
B) class dining(furniture)
C) class furniture(dining):
D) class dining(furniture):
Q3) Which method can you use to determine whether an object is an instance of a class?
A) isinstance
B) isclass
C) isobject
D) isinheritance
Q4) When a subclass method has the same name as a superclass method, it is often said that the subclass method _______________ the superclass method.
To view all questions and flashcards with answers, click on the resource link above. Page 15

Chapter 13: Recursion
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17668
Sample Questions
Q1) The process of calling a function requires _____.
A) a long memory access
B) a quick memory access
C) several actions to be performed by the computer
D) one action to be performed by the computer
Q2) What is the second step that needs to be taken in order to apply a recursive approach?
A) Identify at least one case in which the problem can be solved without recursion.
B) Determine a way to use recursion in order to solve the problem in all circumstances which cannot be solved without recursion.
C) Identify a way to stop the recursion.
D) Determine a way to return to the main function.
Q3) A function is called from the main function for the first time. It then calls itself seven times. What is the depth of recursion?
A) Eight
B) Two
C) One
D) Seven
To view all questions and flashcards with answers, click on the resource link above.
16

Chapter 14: GUI Programming
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17669
Sample Questions
Q1) With what part of the computer does the user interact?
A) Graphical unit
B) User interface
C) Register
D) CPU
Q2) The Label widget's _______________ method determines where a widget should be positioned and makes the widget visible when the main window is displayed.
Q3) In which type of interface is a prompt displayed that allows the user to enter a command, which is then executed?
A) Command line
B) GUI
C) ALU
D) CPU
Q4) In which environment can a user determine the order in which things happen?
A) Command line
B) GUI
C) ALU
D) CPU
Q5) The _______________ widget is used to display text in a window.
To view all questions and flashcards with answers, click on the resource link above. Page 17