Docsity

STARTING OUT WITH PYTHON 6 LEARNING WORKBOOK 2026 PYTHON BASICS DATA TYPES AND CONTROL STR, Exams of Java Programming

Toggle sidebar
bg1
STARTING OUT WITH PYTHON 6 REVISION
HANDBOOK 2026 FUNCTIONS FILE HANDLING
AND PROGRAM DESIGN
โ—‰ What fundamental set of programs control the internal operations
of the computer's hardware? Answer: 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? Answer: Utility Programs
โ—‰ Word processing programs, spreadsheet programs, email
programs, web browsers, and game programs belong to what
category of software? Answer: Application Software
โ—‰ Today, CPU's are small chips known as _____? Answer:
Microprocessors
โ—‰ This is a volatile type of memory that is only for temporary
storage while a program is running. Answer: RAM or Random Access
Memory
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download STARTING OUT WITH PYTHON 6 LEARNING WORKBOOK 2026 PYTHON BASICS DATA TYPES AND CONTROL STR and more Exams Java Programming in PDF only on Docsity!

STARTING OUT WITH PYTHON 6 REVISION

HANDBOOK 2026 FUNCTIONS FILE HANDLING

AND PROGRAM DESIGN

โ—‰ What fundamental set of programs control the internal operations of the computer's hardware? Answer: 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? Answer: Utility Programs โ—‰ Word processing programs, spreadsheet programs, email programs, web browsers, and game programs belong to what category of software? Answer: Application Software โ—‰ Today, CPU's are small chips known as _____? Answer: Microprocessors โ—‰ This is a volatile type of memory that is only for temporary storage while a program is running. Answer: RAM or Random Access Memory

โ—‰ A type of memory that can hold data for long periods of time, even when there is no power to the computer, is called ____. Answer: Secondary Storage โ—‰ A component that collects data from people or other devices and sends it to the computer is called ____. Answer: An input device โ—‰ A video display is a(n) __________ device. Answer: output โ—‰ A _________ is enough memory to store a letter of the alphabet or a small number. Answer: Byte โ—‰ A byte is made up of eight _____. Answer: Bits โ—‰ In the __________ numbering system, all numeric values are written as sequences of 0's and 1's. Answer: โ—‰ function Answer: a group of statements that exist within a program for the purpose of performing a specific task โ—‰ modularized program Answer: 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.

โ—‰ top down design Answer: Programmers commonly use a technique known as ________ to break down an algorithm into functions โ—‰ hierarchy charts Answer: shows boxes that represent each function in a program โ—‰ local variable Answer: 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 Answer: 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. โ—‰ argument Answer: any piece of data that is passed into a function when the function is called โ—‰ parameter Answer: a variable that receives an argument that is passed into a function;a special variable that is assigned the value of an argument when a function is called. โ—‰ parameter variable scope Answer: the function in which the parameter is used; all of the statements inside the function can

access the parameter variable, but no statement outside the function can access it. โ—‰ by position Answer: the first argument is passed to the first parameter variable, and the second argument is passed to the second argument parameter โ—‰ true Answer: any changes to that are made to the parameter variable will not affect the argument โ—‰ pass by value Answer: The form of argument passing that is used in Python, where a function cannot change the value of an argument that was passed to it. โ—‰ keyword argument Answer: An argument that includes the name of the parameter as a "keyword.";specifies which parameter variable the argument should be passed to โ—‰ true Answer: 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 Answer: when a variable is created by an assignment statement that is written outside all the functions in a

โ—‰ uniform function Answer: 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 Answer: the numbers that are generated by the function in the random module are not truly random, the are actually ________ that are calculated by a formula โ—‰ seed value Answer: the formula that generates random numbers has to be initialized with a value known as a _______.;used in the calculation that returns the next random number in the series โ—‰ value returning statement Answer: has a return statement that returns a value back to the part of the program that called it;must have a return statement โ—‰ IPO chart Answer: a simple but effective tool programmers use for designing and documenting functions (Input Processing Output); describes the input, processing, and output of a function. โ—‰ math module Answer: contains numerous functions that can be used in mathematical calculations

โ—‰ module Answer: a file that contains Python code; large programs are easier to debug and maintain when they are divided into modules โ—‰ Output file Answer: A file that data is written to. โ—‰ Input file Answer: A file that data is read from. โ—‰ Opened Answer: Before a file can be used by a program it must be... โ—‰ Closed Answer: When a program is finished with a file it should be.... โ—‰ Text file Answer: The contents of this type of file can be viewed in a program like Notepad. โ—‰ Binary file Answer: This type of file has data that has not been concerted to text. โ—‰ Sequential access Answer: When working with this type of fike, you access its data from the beginning of the file to the end of the file.

โ—‰ filename extensionos Answer: short sequences of characters that appear at the end of a filename preceded by a period โ—‰ file object Answer: an object that is associated with a specific file and provides a way for the program to work with that file. โ—‰ Raw string Answer: Causes python interpreter to read the backslash characters as literal backslashes, - r option โ—‰ Method Answer: Function that belongs to an object and performs some operation using that object โ—‰ rstrip Answer: removes specific characters from the end of a string โ—‰ str Answer: Built-in function that converts a value to a string