Python Programming Exam Questions and Answers
comments - Answer-Using descriptive text to explain portions of code. Comments do not change the way a computer behaves, but are important for the programmer to remember what the code does.
""" - Answer-used to create a multi line comment
# - An...
Python Programming Exam Questions
and Answers
comments - Answer-Using descriptive text to explain portions of code. Comments do
not change the way a computer behaves, but are important for the programmer to
remember what the code does.
""" - Answer-used to create a multi line comment
# - Answer-used to create an in line comment
naming guidelines - Answer-all lower case letters, no spaces, use underscores, cannot
start with a number, use descriptive names
function - Answer-combines many lines of instructions into one line of code
variable - Answer-a container to store information to use in the code; can be text or
numbers
if statements - Answer-The common programming structure that implements
"conditional statements"; the condition must be true in order for the command to be
followed.
Python Code - Answer-a high-level general-purpose programming language. Its design
philosophy emphasizes code readability with its use of significant indentation.
For Loop - Answer-Loops that have a predetermined beginning, end, and increment
(step interval).
for i in range ( ): - Answer-loop syntax
indent - Answer-to move text horizontally away from the left margin; used in loops,
functions and if statements.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Perfectscorer. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.