best grades
Your fellow student knows the best materials to research on and use. This guarantee you the best grades in your examination. Your fellow students use high quality materials, textbooks and notes on the assignment to ensure high quality.
- 527
- 0
- 32
Community
- Followers
- Following
3 Reviews received
6 items
Engr 102 - Exam 1 Review questions with Complete Solutions |100% Pass
What do variables do? - A variable stores something (value, object, whatever) 
What are the rules for variable naming? - 1. Can't start with numbers 
2. Can't use key words 
3. No spaces 
Place 'good' next to each of the following good variable names. Place 'bad' next to the bad 
ones: 
1. var 
2. total_number_of_students_in_the_room_ZACH_210 
3. sum 
4. maclauren_sum 
5. ion 
6. 36_array 
7. Big chonk - 1. bad (has keyword) 
2. bad (too long) 
3. bad (keyword) 
4. good 
5. bad (can't hav...
- Package deal
- Exam (elaborations)
- • 13 pages •
What do variables do? - A variable stores something (value, object, whatever) 
What are the rules for variable naming? - 1. Can't start with numbers 
2. Can't use key words 
3. No spaces 
Place 'good' next to each of the following good variable names. Place 'bad' next to the bad 
ones: 
1. var 
2. total_number_of_students_in_the_room_ZACH_210 
3. sum 
4. maclauren_sum 
5. ion 
6. 36_array 
7. Big chonk - 1. bad (has keyword) 
2. bad (too long) 
3. bad (keyword) 
4. good 
5. bad (can't hav...
Engr 102 exam 2 (lectures 7-13) Questions and Answers with Complete Solutions |100% Pass
Top Down Design - Starting with a broad concept and breaking it down into smaller and 
smaller pieces. 
end result of top down design - hierarchy 
2 things a unit of design should be - coherent and constant 
parts of a hierarchy - tree, root, node, parent, child, leaves 
tree - A hierarchy of data in which data are organized into nodes, each of which have 
exactly one parent node. The exception is the root node, which has no parents. 
root - at the base of hierarchy (highest level) 
node - an in...
- Package deal
- Exam (elaborations)
- • 16 pages •
Top Down Design - Starting with a broad concept and breaking it down into smaller and 
smaller pieces. 
end result of top down design - hierarchy 
2 things a unit of design should be - coherent and constant 
parts of a hierarchy - tree, root, node, parent, child, leaves 
tree - A hierarchy of data in which data are organized into nodes, each of which have 
exactly one parent node. The exception is the root node, which has no parents. 
root - at the base of hierarchy (highest level) 
node - an in...
ENGR 102 Exam 2 Questions and Answers with Complete Solutions |100% Pass
We'll use top-down design as a way of organizing many of our programs. Which of the following 
steps is included in the top-down design process? 
A. Break the problem into individual "large" steps 
B. Break individual "large" steps into smaller steps 
C. Stop the design process when the code should be "obvious" from the description - A,B,C 
A hierarchy helps manage complexity. - True 
Top-down design refers to taking a problem and creating a hierarchy by breaking it down from 
the top-mos...
- Package deal
- Exam (elaborations)
- • 24 pages •
We'll use top-down design as a way of organizing many of our programs. Which of the following 
steps is included in the top-down design process? 
A. Break the problem into individual "large" steps 
B. Break individual "large" steps into smaller steps 
C. Stop the design process when the code should be "obvious" from the description - A,B,C 
A hierarchy helps manage complexity. - True 
Top-down design refers to taking a problem and creating a hierarchy by breaking it down from 
the top-mos...
ENGR 102 Exam 1 (Collection of quizzes an answers) with Complete Solutions |100% Pass
Write the output of the following code: 
x = 3 
y = 4 
z = x * y 
z += 2 
print(z) - 14 
What is the output of the following code: 
print(((2 ** 3) + 3 * 5) * (sqrt(49) // 4) + (23 % 7)) - (8 + 15) * (7 // 4) + 2 23 * 1 + 2 25.0= 
26.286 
Starting with the following code, write one line of code that prints the value of 2-√2 (square 
root of 2) to the screen. 
from math import * 
# your code goes here - from math import * 
print ( sqrt(2) ) 
Which of the following are valid variable names in py...
- Package deal
- Exam (elaborations)
- • 13 pages •
Write the output of the following code: 
x = 3 
y = 4 
z = x * y 
z += 2 
print(z) - 14 
What is the output of the following code: 
print(((2 ** 3) + 3 * 5) * (sqrt(49) // 4) + (23 % 7)) - (8 + 15) * (7 // 4) + 2 23 * 1 + 2 25.0= 
26.286 
Starting with the following code, write one line of code that prints the value of 2-√2 (square 
root of 2) to the screen. 
from math import * 
# your code goes here - from math import * 
print ( sqrt(2) ) 
Which of the following are valid variable names in py...
ENGR 102 Exam 1 questions with Complete Solutions |100% Pass
Which of the following environment variable for Python tells the Python interpreter where to 
locate the module files imported into a program? - PYTHONPATH 
Which of the following environment variable for Python contains the path of an initialization 
file containing Python source code? - PYTHONSTARTUP 
Which of the following environment variable for Python is used in Windows to instruct Python 
to find the first case-insensitive match in an import statement? - PYTHONCASEOK 
Which of the followi...
- Package deal
- Exam (elaborations)
- • 5 pages •
Which of the following environment variable for Python tells the Python interpreter where to 
locate the module files imported into a program? - PYTHONPATH 
Which of the following environment variable for Python contains the path of an initialization 
file containing Python source code? - PYTHONSTARTUP 
Which of the following environment variable for Python is used in Windows to instruct Python 
to find the first case-insensitive match in an import statement? - PYTHONCASEOK 
Which of the followi...
ENGR 102 Exam 1 Questions and Answers with Complete Solutions |100% Pass
What characters are allowed when using print statements in Python? (Pick all that applies) - 
letters, numbers, and underscores 
The basic types of variables in Python are _____________, floating-point, and string. - 
integers 
Which of the following are valid variable names (pick one) 
-Winner! 
-2nd_name 
-My_Name 
-Gig'Em 
-Gig-Em - My_Name (does not start with a number or _ and does not have a !,',-, or space 
How do you print a floating-point variable, x_value, in Python? - print(float(x_...
- Package deal
- Exam (elaborations)
- • 22 pages •
What characters are allowed when using print statements in Python? (Pick all that applies) - 
letters, numbers, and underscores 
The basic types of variables in Python are _____________, floating-point, and string. - 
integers 
Which of the following are valid variable names (pick one) 
-Winner! 
-2nd_name 
-My_Name 
-Gig'Em 
-Gig-Em - My_Name (does not start with a number or _ and does not have a !,',-, or space 
How do you print a floating-point variable, x_value, in Python? - print(float(x_...
Exam B (MHA 708), MHA 708 QUIZ 1 | 208 Questions with 100% Correct Answers | Verified | Latest Updated 2024 | Already Passed
MHA 708 Study Quiz 1 with 100% Correct Answers | Verified | Latest Updated 2024 | Already Passed
AEM Certification Exam Questions And Answers Already Passed | Graded A+
best just like i wanted it