

![]()


Introduction to Programming is a foundational course designed to familiarize students with the core concepts and techniques of computer programming. Through a hands-on approach, students will learn how to write, test, and debug simple programs using a modern programming language. Key topics include variables, data types, control structures (such as loops and conditionals), functions, and basic data structures. By the end of the course, students will have developed problem-solving skills and a fundamental understanding of how software is created, laying the groundwork for further study in computer science and related fields.
Recommended Textbook
Starting Out with Python 4th Edition by Tony Gaddis
Available Study Resources on Quizplus 13 Chapters
533 Verified Questions
533 Flashcards
Source URL: https://quizplus.com/study-set/2419 Page 2

Available Study Resources on Quizplus for this Chatper
39 Verified Questions
39 Flashcards
Source URL: https://quizplus.com/quiz/48072
Sample Questions
Q1) A disk drive stores data by __________ encoding it onto a circular disk.
Answer: magnetically
Q2) RAM is a volatile memory used for temporary storage while a program is running.
A)True
B)False
Answer: True
Q3) The following is an example of an instruction written in which computer language?
10110000
A) Assembly language
B) Java
C) machine language
D) C#
Answer: C
Q4) What is the largest value that can be stored in one byte?
A) 255
B) 128
C) 8
D) 65535
Answer: A
To view all questions and flashcards with answers, click on the resource link above. Page 3
Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/48073
Sample Questions
Q1) What symbol is used to mark the beginning and end of a string?
A) a slash (/)
B) an asterisk (*)
C) a quote mark (")
D) a comma (,)
Answer: C
Q2) When the + operator is used with two strings,it performs string __________.
Answer: concatenation
Q3) The Python turtle is initially positioned in the __________ of a graphics window and it first appears,by default,to be heading __________.
A) center, up
B) top left corner, east
C) bottom left corner, down
D) center, east
Answer: D
Q4) A __________ is a name that represents a value the cannot be changed during a program's execution.
Answer: named constant
Q5) The % symbol is the remainder operator,also known as the ___________ operator.
Answer: modulus,mod

4
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/48074
Sample Questions
Q1) When using the __________ logical operator,both subexpressions must be true for the compound expression to be true.
A) or B) and C) not
D) either or or and
Answer: B
Q2) Decision structures are also known as selection structures.
A)True
B)False
Answer: True
Q3) Python allows you to compare strings,but it is not case sensitive.
A)True
B)False
Answer: False
Q4) Boolean variables are commonly used as __________ to indicate whether a specific condition exists.
Answer: flags
Q5) The logical __________ operator reverses the truth of a Boolean expression. Answer: not
To view all questions and flashcards with answers, click on the resource link above. Page 5

Available Study Resources on Quizplus for this Chatper
41 Verified Questions
41 Flashcards
Source URL: https://quizplus.com/quiz/48075
Sample Questions
Q1) In Python,you would use the __________ statement to write a count-controlled loop.
Q2) The first line in a while loop is referred to as the condition clause.
A)True
B)False
Q3) What are the values that the variable num contains through the iterations of the following for loop?
For num in range(2,9,2):
A) 2, 3, 4, 5, 6, 7, 8, 9
B) 2, 5, 8
C) 2, 4, 6, 8
D) 1, 3, 5, 7, 9
Q4) When will the following loop terminate?
While keep_on_going != 999:
A) when keep_on_going refers to a value less than 999
B) when keep_on_going refers to a value greater than 999
C) when keep_on_going refers to a value equal to 999
D) when keep_on_going refers to a value not equal to 999
Q5) The ___________ function is a built-in function that generates a list of integer values.
To view all questions and flashcards with answers, click on the resource link above. Page 6

66 Verified Questions
66 Flashcards
Source URL: https://quizplus.com/quiz/48076
Sample Questions
Q1) A value-returning function is
A) a single statement that performs 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 called
Q2) The return values of the trigonometric functions in Python are in __________.
Q3) The function header begins with the keyword __________ and is followed by the name of the function.
Q4) Arguments are passed by __________ to the corresponding parameter variables in a function.
Q5) When a function is called by its name during the execution of a program,then it is A) executed
B) located C) defined D) exported
Q6) The value assigned to a global constant can be changed in the mainline logic. A)True B)False
To view all questions and flashcards with answers, click on the resource link above. Page 7

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/48077
Sample Questions
Q1) Which method could be used to strip specific characters from the end of a string?
A) estrip
B) rstrip
C) strip
D) remove
Q2) Closing a file disconnects the communication between the file and the program.
A)True
B)False
Q3) Which of the following is the correct way to open a file named users.txt in 'r' mode?
A) infile = open('r', users.txt)
B) infile = read('users.txt', 'r')
C) infile = open('users.txt', 'r')
D) infile = readlines('users.txt', r)
Q4) Which method could be used to convert a numeric value to a string?
A) str
B) value
C) num
D) chr
To view all questions and flashcards with answers, click on the resource link above. Page 8

Available Study Resources on Quizplus for this Chatper
40 Verified Questions
40 Flashcards
Source URL: https://quizplus.com/quiz/48078
Sample Questions
Q1) The index of the first element in a list is 1,the index of the second element is 2,and so forth.
A)True
B)False
Q2) Which of the following would you use if an element is to be removed from a specific index?
A) a del statement
B) a remove method
C) an index method
D) a slice method
Q3) Each element in a tuple has a(n)__________ that specifies its position in the tuple.
Q4) Invalid indexes do not cause slicing expressions to raise an exception.
A)True
B)False
Q5) The ___________ function can be used to convert a list to a tuple.
Q6) The __________ method reverses the order of the items in a list.
Q7) The built-in function __________ returns the length of a sequence.
Page 9
Q8) Lists are ___________,which means their elements can be changed in a program.
Q9) 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.
Page 10

Available Study Resources on Quizplus for this Chatper
37 Verified Questions
37 Flashcards
Source URL: https://quizplus.com/quiz/48079
Sample Questions
Q1) What will be the value of the variable string after the following code executes?
String = 'abcd'
String.upper()
A) 'abcd'
B) 'ABCD'
C) 'Abcd'
D) Nothing; this code is invalid
Q2) The __________ operator can be used to determine whether one string is contained in another string.
Q3) The strip()method returns a copy of the string with all the leading whitespace characters removed but does not remove trailing whitespace characters.
A)True
B)False
Q4) The __________ method returns the list of the words in a string.
Q5) Indexing works with both strings and lists.
A)True
B)False
Q6) When the operand on the left side of the * symbol is a string and the operand on the right side is an integer,the * becomes the ___________ operator.
To view all questions and flashcards with answers, click on the resource link above. Page 11
Available Study Resources on Quizplus for this Chatper
39 Verified Questions
39 Flashcards
Source URL: https://quizplus.com/quiz/48080
Sample Questions
Q1) The __________ method returns a value associated with a specific key and,if found,removes that key-value pair from the dictionary.
Q2) Which method can be used to add a group of elements to a set?
A) add
B) addgroup
C) update
D) addset
Q3) What is the value of the variable phones after the following code executes?
Phones = {'John' : '5555555','Julie' : '5557777'}
Phones['John'] = 5556666'
A) {'John' : '5555555', 'Julie' : '5557777'}
B) {'John' : '5556666', 'Julie' : '5557777'}
C) {'John' : '5556666'}
D) This code is invalid.
Q4) Each element in a dictionary view is a __________.
Q5) The elements in a dictionary are not stored in a specific order. Therefore,a dictionary is not a(n)___________.
Q6) You would typically use a for loop to iterate over the elements in a set.
A)True
B)False

Page 12
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
38 Verified Questions
38 Flashcards
Source URL: https://quizplus.com/quiz/48081
Sample Questions
Q1) Which section in the UML holds the list of the class's data attributes?
A) first section
B) second section
C) third section
D) fourth section
Q2) A method that returns a value from a class's attribute but does not change it is known as a(n)__________ method.
Q3) What is the special name given to the method that returns a string containing an object's state?
A) __state__
B) __obj__
C) __str__
D) __init__
Q4) When an object is passed as an argument,__________ is passed into the parameter variable.
A) a copy of the object
B) a reference to the object's state
C) a reference to the object
D) Objects cannot be passed as arguments.
Q5) A(n)__________ method in a class initializes an object's data attributes.
To view all questions and flashcards with answers, click on the resource link above. Page 13

Available Study Resources on Quizplus for this Chatper
36 Verified Questions
36 Flashcards
Source URL: https://quizplus.com/quiz/48082
Sample Questions
Q1) What does a subclass inherit from a superclass?
A) instances and attributes
B) objects and methods
C) methods and instances
D) attributes and methods
Q2) In a UML diagram,what does the open arrowhead point to?
A) the superclass
B) the subclass
C) the object
D) a method
Q3) The term ___________ refers to an object's ability to take different forms.
Q4) __________ allows a new class to inherit members of the class it extends.
A) Encapsulation
B) Attributes
C) Methods
D) Inheritance
Q5) A superclass inherits attributes and methods from its subclasses without any of them having to be rewritten.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 14

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/48083
Sample Questions
Q1) Recursion is
A) never required to solve a problem
B) required to solve certain mathematical problems
C) sometimes required to solve string problems
D) required to solve some problems
Q2) Usually a problem solved by recursion is reduced by making the value of one or more parameters __________ with each recursive call.
Q3) Each time a function is called in a recursive solution,the system incurs overhead that is not incurred with a loop.
A)True
B)False
Q4) A recursive function includes __________ which are not necessary in a loop structure.
A) function calls
B) conditional clauses
C) overhead actions
D) object instances
Q5) Recursive function calls are __________ efficient than loops.
Q6) The majority of repetitive programming tasks are best done with ___________.
Page 15
To view all questions and flashcards with answers, click on the resource link above.

Available Study Resources on Quizplus for this Chatper
42 Verified Questions
42 Flashcards
Source URL: https://quizplus.com/quiz/48084
Sample Questions
Q1) In a(n)__________ interface,a prompt is displayed that allows the user to enter a command which is then executed.
A) windows
B) command line
C) GUI
D) operating
Q2) To create a line with the create_line method of the Canvas widget,you must include four arguments that represent beginning and ending __________.
Q3) A __________ program is an event-driven program.
A) GUI
B) command line
C) procedural
D) modular
Q4) In an event-driven environment,the user interacts with
A) the graphical unit
B) the user interface
C) the register
D) the CPU
Q5) The __________ module allows you to create GUI programs in Python.
To view all questions and flashcards with answers, click on the resource link above. Page 16