

![]()


Introduction
Programming Fundamentals introduces students to the core concepts of computer programming and problem-solving using a modern programming language. The course covers essential topics including variables, data types, control structures, functions, arrays, and basic algorithms. Students will develop skills in logical thinking and structured program design through hands-on exercises and projects, laying a solid foundation for future study in computer science and software development.
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

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17656
Sample Questions
Q1) Which of these is not a major component of a typical computer system?
A) Central processing unit
B) Main memory
C) Operating system
D) Secondary storage devices
Answer: C
Q2) What is the encoding technique called that is used to store negative numbers in the computer's memory?
A) Unicode
B) ASCII
C) floating-point notation
D) two's complement
Answer: D
Q3) The term _______________ refers to all of the physical devices that a computer is made of.
Answer: hardware
Q4) The Python _______________ is a program that can read Python programming statements and execute them.
Answer: interpreter
To view all questions and flashcards with answers, click on the resource link above. Page 3

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17657
Sample Questions
Q1) A(n) _____ is a diagram that graphically depicts the steps that take place in a program.
A) flowchart
B) algorithm
C) code
D) pseudocode
Answer: A
Q2) Python uses _______________ to categorize values in memory.
Answer: data types
Q3) When applying the .3f formatting specifier to the following number, 76.15854, the result is _______________.
Answer: 76.159
Q4) The line continuation character is a _____.
A) #
B) %
C) &
D) \
Answer: D
Q5) The result of the expression 12.3 + 6.7 is _______________.
Answer: 19.0
To view all questions and flashcards with answers, click on the resource link above. Page 4

Available Study Resources on Quizplus for this Chatper
34 Verified Questions
34 Flashcards
Source URL: https://quizplus.com/quiz/17658
Sample Questions
Q1) In a flowchart, a function call is depicted by a(n) _______________ that has vertical bars.
Answer: rectangle
Q2) The top-down design breaks down the overall task of the program into a series of _______________.
Answer: subtasks
Q3) When a function is called by its name, then it is _____.
A) executed
B) located
C) defined
D) exported
Answer: A
Q4) The main function contains a program's _______________ logic, which is the overall logic of the program.
Answer: mainline
Q5) The value assigned to a global constant can be changed in the mainline logic.
A)True
B)False
Answer: False
To view all questions and flashcards with answers, click on the resource link above. Page 5

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17659
Sample Questions
Q1) Which of the following is the correct if clause to determine whether y is in the range 10 through 50?
A) if 10 < y or y > 50
B) if 10 > y and y < 50
C) if y > 10 and y < 50
D) if y > 10 or y < 50
Q2) Nested decision structures are one way to test more than one condition.
A)True
B)False
Q3) An action in a single alternative decision structure is performed only when the condition ist.
A)True
B)False
Q4) The decision structure that has two possible paths of execution is known as _____.
A) single alternative
B) double alternative
C) dual alternative
D) two alternative
Q5) The _______________ statement is used to create a decision structure.
To view all questions and flashcards with answers, click on the resource link above. Page 6

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17660
Sample Questions
Q1) What type of loop structure repeats the code a specific number of times?
A) Condition-controlled loop
B) Number-controlled loop
C) Count-controlled loop
D) Boolean-controlled loop
Q2) The while loop is known as a(n) _______________ loop because it tests conditions before performing an iteration.
Q3) What is the disadvantage of coding in one long sequence structure?
A) Duplicated code makes the program faster to write.
B) Writing a long sequence of statements is error prone.
C) If parts of the duplicated code have to be corrected, the correction has to be made many times.
D) It does not make use of decision structures.
Q4) In Python, a comma-separated sequence of data items that are enclosed in a set of brackets is called a _____.
A) sequence
B) variable
C) value
D) list
To view all questions and flashcards with answers, click on the resource link above. Page 7

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17661
Sample Questions
Q1) The return values of the trigonometric functions in Python are in _______________.
Q2) A(n) _______________ program displays a list of the operations on the screen and allows the user to select the operation that the program should perform.
Q3) Given the following function definition, what would the statement print magic(5) display? def magic(num):
Return num + 2 * 10
A) 70
B) 25
C) Statement will cause a syntax error.
D) Statement will cause a run-time error.
Q4) What does the following statement mean? num1, num2 = get_num()
A) The function get_num() is expected to return a value each for num1 and num2.
B) The function get_num() is expected to return a value and assign it to num1 and num2.
C) Statement will cause a syntax error.
D) Statement will cause a run-time error.
Q5) The 'P' in the acronym IPO refers to _______________.
Q6) In Python, a module's file name should end in _______________.
To view all questions and flashcards with answers, click on the resource link above. Page 8
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17662
Sample Questions
Q1) A filename _______________ is a short sequence of characters that appear at the end of a filename preceded by a period.
Q2) An exception handler is a piece of code that is written using the try/except statement.
A)True
B)False
Q3) A(n) _______________ file contains data that has not been converted to text.
Q4) When a program needs to save data for later use, it writes the data in a(n)
Q5) The ZeroDivisionError exception is raised when the program attempts to perform a division by zero.
A)True
B)False
Q6) A(n) _______________ includes one or more statements that can potentially raise an exception.
Q7) Strings can be written directly to a file with the write method, but numbers must be converted to strings before they can be written. A)True
B)False

9
To view all questions and flashcards with answers, click on the resource link above.
Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17663
Sample Questions
Q1) What would you use if an element is to be removed from a specific index?
A) del statement
B) remove method
C) index method
D) slice method
Q2) The first step in calculating the average of the values in a list is to get the total of the values.
A)True
B)False
Q3) The _______________ method is commonly used to add items to a list.
Q4) What would be the value of the variable list after the execution of the following code? list = [1, 2, 3, 4]
List[3] = 10
A) [1, 2, 3, 10]
B) [1, 2, 10, 4]
C) [1, 10, 10, 10]
D) invalid code
Q5) A list cannot be passed as an argument to a function.
A)True
B)False

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

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17664
Sample Questions
Q1) An expression of the form string[i] = 'i' is a valid expression.
A)True
B)False
Q2) What will be assigned to the string variable even after the execution of the following code? special = '0123456789'
Even = special[0:10:2]
A) '13579'
B) '2468'
C) '02468'
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) If a whole paragraph is included in a single string, the split() method can be used to obtain a list of the sentences included in the paragraph.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 11

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17665
Sample Questions
Q1) The elements in a dictionary are not stored in a specific order. Therefore a dictionary is not a(n) _______________.
Q2) Sets are created using curly braces {}.
A)True
B)False
Q3) What method can be used to add a group of elements to a set?
A) add
B) addgroup
C) update
D) Elements must be added one at a time.
Q4) The _______________ method returns a value associated with a specified key and if found, removes that key-value pair from the dictionary.
Q5) In a dictionary, you use a(n) _____ to locate a specific value.
A) datum
B) element
C) item
D) key
Q6) The built-in function _______________ returns the number of items in a set.
Q7) The _______________ method clears the contents of a dictionary.
To view all questions and flashcards with answers, click on the resource link above. Page 12

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17666
Sample Questions
Q1) Which section in the UML holds the list of the class's methods?
A) first
B) Second
C) Third
D) fourth
Q2) What type of programming contains class definitions?
A) Procedural
B) Object
C) Object-oriented
D) Modular
Q3) Each object that is created from a class is called a(n) _______________ of the class.
Q4) In _______________ programming, the programming is centered on objects that are created from abstract data types that encapsulate data and functions together.
Q5) What is another name for the mutator methods?
A) Setters
B) Getters
C) Instances
D) 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
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17667
Sample Questions
Q1) An 'is a' relationship exists between a grasshopper and a bumblebee.
A)True
B)False
Q2) Polymorphism works on any two class methods that have the same name.
A)True
B)False
Q3) _____ allows a new class to inherit the members of the class it extends.
A) Encapsulation
B) Domain
C) Methods
D) Inheritance
Q4) In a UML diagram depicting inheritance, you only write the name of the subclass.
A)True
B)False
Q5) 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):
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/17668
Sample Questions
Q1) A problem can be solved with recursion if it can be broken down into _____ problems.
A) smaller
B) one-line
C) manageable
D) modular
Q2) A problem can be solved with recursion if it can be broken into smaller problems that are identical in structure to the overall problem.
A)True
B)False
Q3) If the problem cannot be solved now, then a recursive function reduces it to a smaller but similar problem and _____.
A) exits
B) returns to the main function
C) returns to the calling function
D) calls itself to solve the smaller problem
Q4) Recursive algorithms are more concise and efficient than iterative algorithms.
A)True
B)False
To view all questions and flashcards with answers, click on the resource link above. Page 15

Available Study Resources on Quizplus for this Chatper
35 Verified Questions
35 Flashcards
Source URL: https://quizplus.com/quiz/17669
Sample Questions
Q1) Python does not have GUI programming features built into the language itself.
A)True
B)False
Q2) Using the radio buttons, the user can make multiple selections at one time.
A)True
B)False
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 _______________ module allows you to create GUI programs in Python.
Q6) A(n) _______________ is a widget that the user can click to cause an action to occur.
Page 16
To view all questions and flashcards with answers, click on the resource link above.