Chapter 1, Starting out with Python, 4th Edition, Tony Gaddis, Python chapter 5-6 2026., Exams of Nursing

Chapter 1, Starting out with Python, 4th Edition, Tony Gaddis, Python chapter 5-6 2026.

Typology: Exams

2025/2026

Available from 05/06/2026

jimmy-brown-4
jimmy-brown-4 🇬🇧

740 documents

1 / 14

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Chapter 1, Starting out with
Python, 4th Edition, Tony
Gaddis, Python chapter 5-6 2026
A set of instructions that a computer follows to perform
a task is called a ________? - correct answers✅Program
The physical devices, or components, of which a
computer is made of are referred to as _____? - correct
answers✅Hardware
List the five major components of a computer system. -
correct answers✅The CPU, main memory, secondary
storage devices, input devices, and output devices.
What part of the computer actually runs programs? -
correct answers✅Central Processing Unit (CPU)
What part of the computer serves as a work area to
store a program and its data while the program is
running? - correct answers✅Main memory or Random
Access Memory (RAM)
What part of the computer holds data for long periods
of time, even where there is no power to the computer?
- correct answers✅Secondary storage devices
(Disk drive, SSD, USB Drive, flash drives, optical drives)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download Chapter 1, Starting out with Python, 4th Edition, Tony Gaddis, Python chapter 5-6 2026. and more Exams Nursing in PDF only on Docsity!

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

A set of instructions that a computer follows to perform a task is called a ________? - correct answers ✅Program The physical devices, or components, of which a computer is made of are referred to as _____? - correct answers ✅Hardware List the five major components of a computer system. - correct answers ✅The CPU, main memory, secondary storage devices, input devices, and output devices. What part of the computer actually runs programs? - correct answers ✅Central Processing Unit (CPU) What part of the computer serves as a work area to store a program and its data while the program is running? - correct answers ✅Main memory or Random Access Memory (RAM) What part of the computer holds data for long periods of time, even where there is no power to the computer?

  • correct answers ✅Secondary storage devices (Disk drive, SSD, USB Drive, flash drives, optical drives)

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

What part of the computer formats and presents data for people or other devices? - correct answers ✅Output devices What fundamental set of programs control the internal operations of the computer's hardware? - correct answers ✅Operating Systems What do you call a program that performs a specialized task, such as a virus scanner, a file compression program, or a data backup program? - correct answers ✅Utility Programs Word processing programs, spreadsheet programs, email programs, web browsers, and game programs belong to what category of software? - correct answers ✅Application Software Today, CPU's are small chips known as _____? - correct answers ✅Microprocessors This is a volatile type of memory that is only for temporary storage while a program is running. - correct answers ✅RAM or Random Access Memory

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

modularized program - correct answers ✅a program that has been written with each task in its own function; benefits include simpler code, code reuse, better testing, faster development, easier facilitation of teamwork. void function - correct answers ✅executes the statements it contains and then terminates value returning function - correct answers ✅executes the statements it contains, and then it returns a value back to the statement that called it; ex. input function, int, float function definition - correct answers ✅the code for a function; specifies what a function does function header - correct answers ✅the first line in a function that begins with the key word def; marks the beginning of the function definition block - correct answers ✅a set of statements that belong together as a group; performed any time the function is executed

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

mainline logic - correct answers ✅the overall logic of the program;contained in the main function main function - correct answers ✅called when a program starts, then calls other functions in the program as needed top down design - correct answers ✅Programmers commonly use a technique known as ________ to break down an algorithm into functions hierarchy charts - correct answers ✅shows boxes that represent each function in a program local variable - correct answers ✅anytime you assign a value to a variable inside a function;belongs to the function in which it is created, and only statements inside that function can access the variable scope - correct answers ✅the part of a program in which the variable may be accessed. a variable is visible only to statements in the variable's scope. a local variable's scope is the function in which the variable is created.

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

keyword argument - correct answers ✅An argument that includes the name of the parameter as a "keyword.";specifies which parameter variable the argument should be passed to true - correct answers ✅it is possible to mix positional arguments and keyword arguments in a function call, but the positional arguments must appear first followed by the keyword argumens global variable - correct answers ✅when a variable is created by an assignment statement that is written outside all the functions in a program file; accessible by any statement in the program file including the statements in any function true - correct answers ✅global variables make debugging difficult; functions that use global variables are usually dependent on those variables; global variables make a program hard to understand global constant - correct answers ✅a global name that references a value that cannot be changed

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

value returning function - correct answers ✅a function that will return a value back to the part of the program that called it library function - correct answers ✅a pre-written function that is built into a programming language randrange function - correct answers ✅similar to range function; returns a randomly selected value from a sequence of values; ex number = random.randomrange(10) random function - correct answers ✅returns a random floating point number in the range of 0.0 up to (but not including) 1. ex number = random.random( ) uniform function - correct answers ✅returns a random floating point number but allows you to specify the range of values to select from; ex: number = random.uniform(1.0, 10,0) psuedorandom numbers - correct answers ✅the numbers that are generated by the function in the

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

Output file - correct answers ✅A file that data is written to. Input file - correct answers ✅A file that data is read from. Opened - correct answers ✅Before a file can be used by a program it must be... Closed - correct answers ✅When a program is finished with a file it should be.... Text file - correct answers ✅The contents of this type of file can be viewed in a program like Notepad. Binary file - correct answers ✅This type of file has data that has not been concerted to text. Sequential access - correct answers ✅When working with this type of fike, you access its data from the beginning of the file to the end of the file. Direct access - correct answers ✅When working with this type of file, you can jump directly to any piece of

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

data in the file without reading the data that come before it. Buffer - correct answers ✅This is a small "holding section" in memory that many systems write data to before writing the data to a file. Read position - correct answers ✅This marks the location of the next item that will be read from a file. Append mode - correct answers ✅When a file is opened in this mode, data will be written at the end of the file's existing contents. Field - correct answers ✅This is a single piece of data within a record. Raised - correct answers ✅This occurs when an exception is generated. Exception handler - correct answers ✅This is a section of code that gracefully responds to exceptions.

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

str - correct answers ✅Built-in function that converts a value to a string record - correct answers ✅complete set of data that describes one item traceback - correct answers ✅An error message that gives information regarding the line numbers that caused the exception exception - correct answers ✅An error that occurs while a program is running. try suite - correct answers ✅one or more statements that can potentially raise an exception exception object - correct answers ✅contains various data about an exception; created when an exception is thrown. Else suite - correct answers ✅block of statements executed after statements in try suite, only if no exceptions were raised

Python, 4th Edition, Tony

Gaddis, Python chapter 5-6 2026

finally suite - correct answers ✅block of statements after the finally clause. Always executed after the try suite has executed, and after any exception handlers have executed. Executes whether an exception occurs or not.