Made with ScholarlyMake flashcards like these from your own notes
Question:What is a Control Structure?
Answer:Controls the flow/order of statements
Question:What is a Sequence Structure?
Answer:Statements execute in order, top to bottom
Question:What is a Decision Structure?
Answer:Statements execute based on a condition
Question:What is a Boolean Expression?
Answer:An expression that evaluates to true or false
Question:Name a Relational Operator supported by Python.
Answer:>, <, >=, <=, ==, !=
Question:List the six Python relational operators mentioned.
Answer:>, <, >=, <=, ==, !=
Question:What is a Nested Decision Structure?
Answer:A decision structure inside another decision structure
Question:What defines a Compound Boolean Expression?
Answer:Two or more Boolean expressions linked with and, or, not
Question:What is a Logical Operator?
Answer:Operator used to join Boolean expressions: and, or, not
Question:What is a Unary Operator?
Answer:An operator with only 1 operand
Question:What is Short-Circuit Evaluation?
Answer:Interpreter stops evaluating if result will not change
Question:What is a Flag in programming?
Answer:A Boolean variable indicating some status
Question:What is a Repetition Structure?
Answer:A loop that causes statements to execute more than once
Question:What is an Iteration in loops?
Answer:Each execution of the loop body
Question:What is a Conditional Loop?
Answer:Repeats as long as a condition is true
Question:What is an Infinite Loop?
Answer:A loop that iterates forever
Question:What is a Counted Loop?
Answer:A loop that repeats an exact number of times
Question:What is a Step Value in loops?
Answer:Value used to increase the counter, often 1
Question:What is an Augmented Assignment Operator?
Answer:A short-hand that combines arithmetic with assignment
Question:What is Input Validation?
Answer:Checking that user-entered data is valid before use
Question:What is a Trace Table used for?
Answer:A table that tracks variables and outputs
Question:What is a Nested Loop?
Answer:A loop inside another loop
Question:What is a Sentinel Value?
Answer:A special value indicating end of data sequence
Question:What is GIGO?
Answer:Garbage-In, Garbage-Out; output integrity depends on input
Question:What is a Nested Loop (alternate definition)?
Answer:A loop within another loop
Question:What is a Trace Table (alternate definition)?
Answer:A debugging technique to analyze variables and outputs
Question:What is a Standard Library?
Answer:A collection of commonly used functions installed with a language
Question:What is an API?
Answer:Application Programming Interface, same as Standard Library
Question:What is a Module?
Answer:A collection of related functions in a .py file
Question:What is Dot Notation used for in Python?
Answer:Calling a function from an imported module using moduleName.function
Question:What is a Pseudorandom Number?
Answer:A fake random number generation based on seed
Question:What is a Seed in random number generation?
Answer:An integer used to calculate next random number
Question:What is Namespace in Python modules?
Answer:Module import creates its own namespace requiring dot notation
Question:What is Modularization in programming?
Answer:Grouping related functions into separate modules