INSY 3300 DAVIS EXAM 1 REVIEW QUESTIONS & ANSWERS 2024/2025
10 views 0 purchase
Module
INSY 3300 DAVIS
Institution
INSY 3300 DAVIS
INSY 3300 DAVIS EXAM 1 REVIEW QUESTIONS & ANSWERS 2024/2025
What are the data types in Python? (4) - ANSWERSstrings, floats, integers, boolean variables
Definition What are the logical operators? (3) - ANSWERSAllow you to connect multiple Boolean expressions to create a compound expression:...
INSY 3300 DAVIS EXAM 1 REVIEW
QUESTIONS & ANSWERS 2024/2025
What are the data types in Python? (4) - ANSWERSstrings, floats, integers, boolean variables
Definition What are the logical operators? (3) - ANSWERSAllow you to connect multiple Boolean
expressions to create a compound expression: and, or, not
Define what are conditional/relational operators? (6) - ANSWERSDetermines if statement is true/false:
<,>, <=, ==, >=, !=
What are the mathematical operators? - ANSWERS+ - * / ** //%
What is the operator precedence? - ANSWERS1. Paranthesis
2. Exponents **
3. Multiplication, divison, remainder * / // %
4.Addition, Subtraction
What is a counter while? - ANSWERSWhile loop with known reiterations
What is a sentinel while? - ANSWERSWhile loop with unknown reiterations, has special value to end loop
When do you use which while construct? - ANSWERSCounter 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 -
ANSWERSLogic
, A ______ is a single function that the program must preform in order to satisfy the customer -
ANSWERSsoftware requirement
An _________ is a set of well defined logical steps that must be taken to perform a task. -
ANSWERSAlgorithm
An informal language that has no syntax rules, and is not meant to be compiled or executed is called
__________. - ANSWERSpsuedocode
A ________ is a sequence of characters - ANSWERSstring
A _______ is a name that references a value in the computers memory - ANSWERSvariable
a string literal in python must be enclosed in - ANSWERSeither single-quotes or double-quotes
A __________ makes a variable reference a value in the computers memory - ANSWERSassignment
statement
this symbol marks the beginning of a comment in python - ANSWERS#
which of the following statements will cause an error?
A. x-17
B. 17=x
C. x=17 - ANSWERSB) 17 = x
in the expression 12 + 7, the values on the right and left of the + symbol are called - ANSWERSoperands
integer division - ANSWERS//
raises a number to a power - ANSWERS**
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 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 Bensuda. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £6.53. You're not tied to anything after your purchase.