INSY 3300 EXAM 1 REVIEW DAVIS QUESTIONS AND ANSWERS
3 views 0 purchase
Course
INSY 3300
Institution
INSY 3300
INSY 3300 EXAM 1 REVIEW DAVIS
QUESTIONS AND ANSWERS
What are the data types in Python? (4) - Answer- strings, floats, integers, boolean
variables
Definition What are the logical operators? (3) - Answer- Allow you to connect multiple
Boolean expressions to create a compound expression: and, or,...
INSY 3300 EXAM 1 REVIEW DAVIS QUESTIONS AND ANSWERS What are the data types in Python? (4) - Answer - strings, floats, integers, boolean variables Definition What are the logical operators? (3) - Answer - Allow you to connect multiple Boolean expressions to create a compound expression: and, or, not Define what are conditional/relational operators? (6) - Answer - Determines if statement is true/false: <,>, <=, ==, >=, != What are the mathematical operators? - Answer - + - * / ** //% What is the operator precedence? - Answer - 1. Paranthesis 2. Exponents ** 3. Multiplication, divison, remainder * / // % 4.Addition, Subtraction What is a counter while? - Answer - While loop with known reiterations What is a sentinel while? - Answer - While loop with unknown reiterations, has special value to end loop When do you use which while construct? - Answer - Counter while is used when you know how many times to reiterate and sentinel is used when you dont know and its up to the user A _____ error does not prevent the program from running, but it causes it to produce incorrect results - Answer - Logic A ______ is a single function that the program must preform in order to satisfy the customer - Answer - software requirement An _________ is a set of well defined logical steps that must be taken to perform a task. - Answer - Algorithm An informal language that has no syntax rules, and is not meant to be compiled or executed is called __________. - Answer - psuedocode A ________ is a sequence of characters - Answer - string A _______ is a name that references a value in the computers memory - Answer - variable a string literal in python must be enclosed in - Answer - either single -quotes or double -
quotes A __________ makes a variable reference a value in the computers memory - Answer - assignment statement this symbol marks the beginning of a comment in python - Answer - # which of the following statements will cause an error? A. x-17 B. 17=x C. x=17 - Answer - B) 17 = x in the expression 12 + 7, the values on the right and left of the + symbol are called - Answer - operands integer division - Answer - // raises a number to a power - Answer - **
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 GraceAmelia. 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.