Python Programming - Chapters 1 To 6 Text Exam
PYTHON PROGRAMMING - CHAPTERS 1 TO 6 TEXT EXAM def function name: - CORRECT ANSWERS-Indicates the beginning of a function definition and - CORRECT ANSWERS-The Boolean operator that only returns true if BOTH of its operands are true. or - CORRECT ANSWERS-The Boolean operator that returns true if EITHER of its operands are true not - CORRECT ANSWERS-The Boolean operator that returns true if its single operand is false return value - CORRECT ANSWERS-Specifies the value to be returned by a function back to its function call (seconds) - CORRECT ANSWERS-Instructs the program to pause for the specified number of seconds : - CORRECT ANSWERS-A colon marks the end of a statement and indicates that the next line should be the beginning of a new block IDLE - CORRECT ANSWERS-Python's Integrated DeveLopment Environment, a program that lets you write code, test and debug, all in the one place. Monty Python - CORRECT ANSWERS-A British surreal comedy group after which Python was named. = - CORRECT ANSWERS-assignment operator variable = expression - CORRECT ANSWERS-assignment statement import module - CORRECT ANSWERS-loads an existing Python module into the current program block - CORRECT ANSWERS-one of more lines of code grouped together with the same minimum amount of indentation while condition: - CORRECT ANSWERS-begins a pre-test loop if condition: - CORRECT ANSWERS-begins a binary selection statement break - CORRECT ANSWERS-tells the program to immediately jump out of a whileblock nt(low, high) - CORRECT ANSWERS-returns a random integer between (and including) the two integers we give it int(string) - CORRECT ANSWERS-converts the string argument to its integer form. str(number) - CORRECT ANSWERS-converts a numeric argument to its string form. true - CORRECT ANSWERS-the Boolean data value for yes/on/one false - CORRECT ANSWERS-the Boolean data value for no/off/zero == - CORRECT ANSWERS-the comparison operator for equality. Used in conditions, "Is value1 equal to value2?" input() - CORRECT ANSWERS-a function that takes user keyboard input and returns it to the program as a string. - CORRECT ANSWERS-Backslash, the Python string escape character / - CORRECT ANSWERS-Forward slash, the Python division operator - CORRECT ANSWERS-Represents a single backslash in a Python string n - CORRECT ANSWERS-Represents a new line in a Python string t - CORRECT ANSWERS-Represents a tabbed space in a Python string ' - CORRECT ANSWERS-Represents an apostrophe in a Python string ' - CORRECT ANSWERS-Single quote, can be used to surround a string literal value " - CORRECT ANSWERS-Double quotes, can be used to surround a string literal value end='' - CORRECT ANSWERS-A keyword parameter for the print() function that causes the function t
Document information
- Uploaded on
- November 20, 2023
- Number of pages
- 2
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers