python exam #2 questions and answers 100% correct
python exam #2 questions and answers 100% correct Functions - Correct Answer️️ -group of statements that exist within a program for the purpose of performing a specific task Divide and conquer - Correct Answer️️ -Instead of writing 1 large program, break it down into individual tasks. individuals or teams can works independently on separate tasks. Advantages of divide and conquer - Correct Answer️️ -Simpler for programmers code reuse better testing faster development void function - Correct Answer️️ -executes statements, nothing is put into it by the program, and it sends nothing back to the main program value-returning function - Correct Answer️️ -generate a value that is returned to the main program IPO - Correct Answer️️ -input, processing, output local varaible - Correct Answer️️ -anytime you assign a value to a variable inside a function parameter - Correct Answer️️ -in the function, the variable that receives the argument Function header - Correct Answer️️ -is the first, the commands are indented Global Variable - Correct Answer️️ -Variable can be declared outside of all of the functionPDF DOCUMENT block - Correct Answer️️ -set of statements that belong together as a group scope - Correct Answer️️ -the part of a program in which a variable is defined and may be accessed try suite and an except suite - Correct Answer️️ -Instead of if statements, Python uses you don't have to say the path - Correct Answer️️ -If the python program and the file you are reading are in the same folder Numeric data - Correct Answer️️ -is saved as a string double spaced - Correct Answer️️ -When using readline, the n gives you an extra return. The output looks rstrip - Correct Answer️️ -To fix the double spacing, we strip the characters from the right side of the string with You must open the fule - Correct Answer️️ -before you can write to it or read from it. direct access - Correct Answer️️ -you can jump to any piece of data without reading everything. Binary file - Correct Answer️️ -has not been converted to text memory buffer - Correct Answer️️ -Generate data in the program and co
Written for
- Institution
- Python Programming
- Course
- Python Programming
Document information
- Uploaded on
- June 17, 2024
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
python exam 2 questions and answers 100 correct
Also available in package deal