




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
D335 Intro to Python Resources EXAM 2025 ACTUAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS GRADED A+ D335 Intro to Python Resources EXAM 2025 ACTUAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS GRADED A+ D335 Intro to Python Resources EXAM 2025 ACTUAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS GRADED A+ D335 Intro to Python Resources EXAM 2025 ACTUAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS GRADED A+ D335 Intro to Python Resources EXAM 2025 ACTUAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS GRADED A+ D335 Intro to Python Resources EXAM 2025 ACTUAL EXAM QUESTIONS AND CORRECT VERIFIED ANSWERS GRADED A+
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!
A learning method involving video lectures at home and labs in class Reverse Course Input-Process-Output thinking standard to determine coding structure IPO thinking standard A special variable in Python that holds the name of the current module name A special variable in Python that indicates the main module main A resource for learning Python programming Python Crash Course Book Application Programming Interfaces accessible to the public Public API's Time management method using a timer to break work into intervals Pomodoro Technique Data structure with key-value pairs used for mapping inputs to outputs Dictionaries An introductory course to computer science offered by Harvard University CS
An efficient, comparison-based sorting algorithm Merge Sort Ordered collection of items in Python denoted by square brackets Lists Immutable ordered collection of items in Python denoted by parentheses Tuples Symbols used to represent values and perform operations Variables and Expressions Blocks of organized, reusable code for specific tasks Functions Guided demonstrations of critical programming exercises Lab Walkthroughs Symbols used to perform mathematical operations in Python Arithmetic Operators Operations that return true or false based on the comparison of values Comparisons Increasing the value of a variable by a specified amount Incrementing Function to obtain the magnitude of an integer, removing the negative sign Absolute value function Function to round a value to a specified number of digits after the decimal point Round function
An ordered and changeable collection in Python allowing duplicates List An unordered and immutable collection in Python, allowing addition/removal but no duplicates Set An ordered and unchangeable collection in Python, allowing duplicates and faster operations Tuple Unable to be changed, e.g., tuple elements Immutable Dividing integers to get the whole number part of the quotient Floor division Estimates average calories burned based on age, weight, heart rate, and time Calories burned equation Using math library for operations like power, absolute value, and square root Math functions Calculating frequencies of keys on a piano based on initial key frequency Frequency calculation Time taken for a substance to reduce to half its original value Half-life Outputting price change and estimated monthly mortgage based on current and last month's price House real estate summary
Calculating product and average of floating-point numbers, rounding and formatting the output Simple statistics Determining the season based on input date and month, considering days in each month Northern hemisphere seasons Spring: March 20 - June 20, Summer: June 21 - September 21, Autumn: September 22 - December 20, Winter: December 21 - March 19 Seasons A year with 366 days, occurring every 4 years and divisible by 4, except for century years not divisible by 400 Leap Year Primary highways: 1-99, odd for north/south, even for east/west. Auxiliary: 100-999, servicing the rightmost two digits of the primary highway Interstate Highway Numbers Score names: 'Eagle' (2 less than par), 'Birdie' (1 less), 'Par' (equals par), 'Bogey' (1 more); 'Error' if par not 3, 4, or 5 Golf Scores Used for multiple choices. 'if' for an option, 'elif' for alternatives, 'else' as the final option if none apply Conditional Statements Used to iterate a specific number of times or through elements in a list For Loop
Function returning 'Heads' or 'Tails' based on a random value of 1 or 0 Coin Flip Function Testing small parts of a program in an isolated manner to ensure they work as expected Unit Tests Evaluates individual functions for correctness and proper naming, parameters, and return type Unit test Separates main code from functions' code for unit testing when running as a script if name == 'main': Function that converts weight in kilograms to pounds kilo_to_pounds() Function that swaps the positions of four integers swap_values Function that checks if a string represents an integer check_integer_string Activity where user provides words to complete a story in unexpected ways Mad Libs Built-in function to keep track of the number of iterations in a loop enumerate Repeats an action for everything in a container for loop Repeats an action based on a condition
while loop Generates a sequence of numbers within a specified range range() function Allows for easy formatting of strings in Python F strings Data structure with key-value pairs, where keys must be unique dictionary