INSY 3300 EXAM 1 REVIEW DAVIS
2025 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
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 1
, 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
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 2
2025 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
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 1
, 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
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 2