Engr 102 - Exam 1 Review Latest Update - Questions and 100% Verified Correct Answers Guaranteed A+ Verified by Professor
Application - CORRECT ANSWER: Another word for program.
Assembly Language - CORRECT ANSWER: Human-readable processor instructions
BOOLEAN - Operators
- not
- and
3. or - CORRECT ANSWER: 1. none #Not true returns false
- both #true and true returns true
- only one #true and false returns true
Compiler - CORRECT ANSWER: Translates a high-level language program into low-
level machine instructions.
Create a dictionary that stores the ages of Ed, Edd, and Eddy. Their ages are 11, 12, and 12, respectfully. - CORRECT ANSWER: eds_ages = { 'Ed' : 11
'Edd':12,
'Eddy':13
}
Create a list of number 1,9,5, and 2. Create a list of numbers 1-50 - CORRECT
ANSWER: nums_list = [ ]
for i in range(1, 50 + 1):
----nums_list.append(i) 1 / 2
Data type:
tuple - CORRECT ANSWER: An immutable container with ordered elements
Determine what type of loop to use for each of the following scenarios:
- Getting user input until they enter a certain value
- Approximating a function to a user-inputted number of terms
- Doing an operation on each element of a list
- Repeating an operation until the result is within a tolerance - CORRECT ANSWER: 1.
- For
- For
- While
While
Dictionary - CORRECT ANSWER: Iterable
Unordered collection key value { }
Division
' / ' - CORRECT ANSWER: Ex.
20 / 10 is 2.0.50 / 50 is 1.0.
- / 10 is 0.5.
Do lists start at index 0 or 1? - CORRECT ANSWER: Lists start at index 0
Do you spend more time typing of looking at code? - CORRECT ANSWER: Looking.
- / 2