ECOR 1042 AB - Mock Final-2
docx
keyboard_arrow_up
School
Carleton University *
*We aren’t endorsed by this school
Course
1042
Subject
Mechanical Engineering
Date
Apr 3, 2024
Type
docx
Pages
7
Uploaded by PrivateOryxPerson1069
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
It is most beneficial to you to write this mock final UNDER EXAM CONDITIONS
. This means: •
Complete the exam in 2 hours. •
Work on your own and attempt every question. •
Keep your notes and textbook closed. •
Attempt the mock by hand.
After the time limit, go back over your work with a different colour or on a separate piece of paper and try to do the questions you are unsure of. Record your ideas in the margins to remind yourself of what you were thinking when you take it up at PASS. The purpose of this mock exam is to give you practice answering questions in a timed setting and to help
you to gauge which aspects of the course content you know well, and which are in need of further development and review. Use this mock exam as a learning tool
in preparing for the actual exam. Please note:
Complete the mock exam before
attending the take-up session. During the session you can work
with other students to review your work.
Often, there is not enough time to review the entire exam in the PASS workshop. Decide which questions you most want to review – the Facilitator may ask students to vote on which questions they want to discuss in detail.
Facilitators will not distribute an answer key for mock exams
.
The Facilitator’s role is to help students work together to compare and assess the answers they have. If you are not able to attend the PASS workshop, you can work alone or with others in the class.
PASS worksheets are designed as a study aid only for use in PASS workshops. Worksheets may contain errors, intentional or otherwise. It is up to the student to verify the information contained within by attending the PASS workshop.
Good Luck writing the Mock Exam!!
Take-up Session #1:
Monday, December 11th, 1:35-3:25pm (ML 402)
With Becca Young
Take-up Session #2:
Tuesday, December 12th, 3:05-4:55pm (ML 402)
With Braeden Kloke
Office Hour:
Thursday, December 14th, 7:00-7:25pm (ML 413)
With Becca Young
Contact Information:
beccayoung@cmail.carleton.ca
braedenkloke@cmail.carleton.ca
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
Part A: Multiple Choice
1.
What is bound to x after we run this code?
my_list = [[15, 16, 22], [1, 2, 3], [55, 9, 0]]
x = my_list[1][1]
a)
[15, 1]
b) 1,2
c) 15
d) 2
2.
Which of the following types cannot
be used as a key within a python dictionary?
a)
tuple
b) int c) string d) float e) list f) They can all be used.
3.
What would be the most appropriate degree of polynomial to use for fitting a curve through five data points using interpolation?
a) first degree b) second degree c) third degree d) fourth degree e) fifth degree
4.
How many of these lines of code will work
line_1 = “I like {name}, because it’s {space}”.format( name = “PASS”, space = “helpful”)
line_2 = “I like {0}, because it’s {1}”.format(“PASS”, “helpful”)
line_3 = “I like {}, because it’s {}”.format(“PASS”, “helpful”)
line_4 = [“I like{}, because it’s{}”].format(“PASS”, “helpful”)
a)
1
b) 2
c) 3
d) 4
e) None of the above
5.
Students can connect to Brightspace from several devices at the same time. Suppose each connection is identified by the user’s student id and we’d like to know the number of students connected. Which collection should we use?
a) List
b) String
c) Tuple
d) Set
e) Dictionary
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
6.
What is the output of the following script assuming the user enters
valid integers for both prompts?
number_one =
input("Input an integer: ")
number_two =
input("Input another integer: ")
sum_val =
number_one +
number_two
print(sum_val)
a)
The script will produce an error
b)
The sum of the two input integers
c)
None
d)
number_one attached to number_two
e)
None of these 7.
What is the final value bound to z following the execution of the script below?
t1 = (8, (4, 5))
t2 = (10, 2)
a, b = t1
c, d = t2
z = d + a
a)
14
b) 6
c) 18
d) 10
e) The code will produce an error
8.
Suppose you have the following list of numbers to sort: [19, 1, 14, 2, 4, 90, 21]. Which of the following represents the sorted list after three
iterations of insertion sort?
a) [1, 2, 4, 14, 19, 90, 21]
b) [1, 2, 4, 21, 19, 20, 90]
c) [19, 1, 2, 14, 4, 21, 90]
d) [1, 2, 4, 19, 14, 21, 90]
e) [1, 2, 14, 19, 4, 90, 21]
f) None of these
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
9.
Which of the following statements will correctly strip the whitespace from both ends of the string?
my_string = " Hello, world! "
a) my_string.strip() b) my_string.replace(" ", "") c) my_string.split() d) All of the above
10.
We have a dictionary with the names of students as keys and a list of percentage grades as the associated values. Suppose we want to add a 95 to Khai’s grades in the following dictionary:
dictionary =
{ "leywin": [99, 99, 98] }
How many of the following statements will work?
dictionary["khai"] =
dictionary["khai"].append(95)
#1
dictionary["khai"] =
dictionary.get("khai", []) +
[95]
#2
dictionary["khai"] +=
dictionary.get("khai", []) +
[95]
#3
dictionary.update({"khai" : dictionary.get("khai", []) +
[95]}) #4
dictionary.update({"khai" : dictionary.get("khai", []).append(95)}) #5
dictionary.get("khai", []).append(95)
#6
a)2
b) 3
c) 4
d) 5
e) 6
11.
Which line of code will produce an error?
import numpy # line 1
x = [1,2,3,4] # line 2
y = np.linspace(1, 5, 4) # line 3
coefficients = numpy.polyfit(x, y, 3) # line 4
a) line 1 b) line 2 c) line 3
d) line 4 d) There are no errors in the code
12.
What is bound to x after this code is run?
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
a_list = list(np.linspace(2.3, 55, 3))
x = len(a_list)
a)
3 b) 55
c) 1
d) 54
Part B: Long Answer
1.
Create a function alpha_count
that prompts users to enter a single letter from the alphabet until
the user enters a 0 – indicating they’d like to stop. The function should only accept single characters at a time or 0, any other input should result in some warning to the user. Internally, the function should keep count of the number of times each character was entered and, when the user quits, it should print all the letters entered by the user alongside the number of times it was input.
Hint: Lists might not be the best approach.
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
2.
How can we use Python to calculate the modulus of elasticity for a steel specimen based on its stress and strain values obtained by a team of engineering students? To achieve this, we can import the values from a CSV file and compute the line of best fit, which will enable us to find the slope of the stress vs strain curve. After finding the line of best fit, we can create a graph to represent the relationship between stress and strain. Write a function that imports the given table from a CSV file, plots the data points and line of best fit, and returns the modulus of elasticity.
Stress (Mpa)
Strain
5
2
7.1
3
9.4
3.9
11.5
4.7
14
7
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
COURSE: ECOR 1042 AB
FACILITATOR NAME: Becca Young and Braeden Kloke
MOCK EXAM (FOR PRACTICE ONLY)
3.
Create a function get_best_average
that accepts a dictionary which contains the grades of various students stored within lists:
grades =
{
"shim": [65, 100, 73],
"leywin": [20, 88, 75],
"shay":
[95, 99, 98]
}
The function should return the average of all the students. For the example above this would be 79.22
, you can have any number of decimals. You may also assume that each student has the same number of grades (3 each in the case above).
Related Documents
Related Questions
I need parts 1, 2, and 3 answered pertaining to the print provided.
NOTE: If you refuse to answers all 3 parts and insist on wasting my question, then just leave it for someone else to answer. I've never had an issue until recently one single tutor just refuses to even read the instructions of the question and just denies it for a false reasons or drags on 1 part into multiple parts for no reason.
arrow_forward
This is an engineering problem and not a writing assignment. Please Do Not Reject. I had other engineering tutors on bartleby help me with problems similar to this one.
This problem must be presented in a logical order showing the necessary steps used to arrive at an answer. Each homework problem should have the following items unless otherwise stated in the problem:
a. Known: State briefly what is known about the problem.
b. Schematic: Draw a schematic of the physical system or control volume.
c. Assumptions: List all necessary assumptions used to complete the problem.
d. Properties: Identify the source of property values not given to you in the problem. Most sources will be from a table in the textbook (i.e. Table A-4).
e. Find: State what must be found.
f. Analysis: Start your analysis with any necessary equations. Develop your analysis as completely as possible before inserting values and performing the calculations. Draw a box around your answers and include units and follow an…
arrow_forward
I need parts 8, 9, and 10 answered. Number 1 is an example of how it should be answered.
NOTE: Read the instructions, no where does it say any drawing is required. It is really frustrating when I wait all this time for an answer to a question and some tutor does even read the instructions and just declines it...its ridicilous.
arrow_forward
Josh and Jake are both helping to
build a brick wall which is 6 meters in
height. They lay 250 bricks each, but
Josh finishes this task in three (3)
hours while Jake requires 4.5 hours
to complete his part. select the BEST
response below:
Jake does more work than Josh
O Josh does more work than Jake
Both Josh and Jake do the same amo
O of work and have the same amount of
power
Both Josh and Jake does the same
O amount of work, however, Josh has m
power than Jake.
arrow_forward
Help!!! Answer all parts correctly!! Please
arrow_forward
Need help with this
arrow_forward
Please double check before rejecting this question. If it needs to be rejected, please explain why as I cannot see how this is a breach of the honor code.
This is a questions from the previous year's exam at my university in Engineering Science. I have submitted a solution given to us for study purposes as proof that I will not be graded on this assessment.
In this solution, the formula (2gh)1/2 is used to find the solution, but I am on familliar with Bernoulli's Principle (P=1/2pv^2+pgh), and I was not able to find a solution using this. My solution incurred an error when I found that I had two unkown variables left that I could not break down in any meaningful way. (Velocity being the desired variable, Pressure being the problematic variable). Pressure = Force x Area, but I don't know enough about the dimensions of the tank or tap to be able to understand this.
Thank you for your help.
arrow_forward
The class I'm taking is physics for scientists and engineers!
**** I need help with part D only*****
Can you please write out the solution and not type out the solution? I had to reask this question because the last tutor typed out the solution and it was very hard for me to follow . Please and thank you for the special request.
I have attached the problem. Please view attachment before answering. Thank you!
arrow_forward
Create a reading outline for the given text "STRESS and STRAIN".
arrow_forward
please help solve A-F. thank you
You are an engineer working on a project and your prototype has failed prematurely. You question whether or not a key component of the prototype was manufactured with the correct material. There are two way to check for the material properties. The first way is to have a material certification done to confirm the exact material composition. This will take some time. The second method to confirm the material properties is to make an ASTM test sample and test for the material properties. This tensile test was completed on a test sample with an initial diameter of .501” and an initial length of 2”. The Load-Deflection data for this tensile test is below. Use this data to answer the first set of questions on the Final Exam in eLearning. A. Determine the Ultimate Tensile Strength B. Determine the 0.2% Offset Yield Strength C. Determine the value of the Proportional Limit D. Determine the Modulus of Elasticity E. Determine the Strain at Yield F. Calculate %…
arrow_forward
all one question help asap please!
arrow_forward
TOPIC: ENGINEERING ECONOMICS
SPECIFIC INSTRUCTION: Solve each problem NEATLY and SYSTEMATICALLY. Show your
COMPLETE solutions and BOX your final answers. Express all your answers in 2 decimal places.
PROBLEM:
Cardinal Financing lent an engineering company Php 500,000 to retrofit an environmentally
unfriendly building. The loan is for 5 years at 10 % per year simple interest. How much money
will the firm repay at the end of 5 years?
arrow_forward
J 6
arrow_forward
I need answers to problems 7, 8, and 9.
NOTE: Please stop wasting my time and yours by rejecting my question because it DOES NOT REQUIRE YOU TO DRAW anything at all. They are simple questions pertaining to the print provided. READ THE INSTRUCTIONS of the assignment before you just reject it for a FALSE reason or leave it for someone to answer that actually wants to do their job. Thanks.
arrow_forward
I need answers to questions 7, 8, and 9 pertaining to the print provided.
Note: A tutor keeps putting 1 question into 3 parts and wasted so many of my questions. Never had a issue before until now, please allow a different tutor to answer because I was told I am allowed 3 of these questions.
arrow_forward
operations research - pert cpm
arrow_forward
Astronomy Question:
Read the questions slowly and answer with precise and long details about each of the questions. Answer correctly and follow my guidelines for a long and wonderful review after results. Your target/main observable galaxy is the whirlpool galaxy. Target: Whirlpool Galaxy Object Type: Galaxy Distance: 37 million light-years Constellation: Canes Venatici. DO NOT COPY AND PASTE OTHER WORK OR THINGS FROM THE INTERNET, use your own words.Provide refernces if used
In 500 words, please explain the relevance of this object to the physics course material in university andits importance to astronomy. (Some question you may seek to answer are: What beyond the objectitself is learned by studying this class of objects? What sorts of telescopes and observations would beneeded for more detailed, broader reaching studies of this source and objects of its nature?)
arrow_forward
Cathy Gwynn for a class project is analyzing a "Quick Shop" grocery store. The store emphasizes quick service, a limited assortment of grocery items, and higher prices. Cathy wants to see if the store hours (currently 0600 to 0100) can be changed to make the store more profitable.
Time Period
Daily Sales in the Time Period
0600-0700
$40
0700-0800
70
0800-0900
120
0900-1200
400
1200-1500
450
1500-1800
500
1800-2000
600
2000-2200
200
2200-2300
50
2300-2400
85
2400-0100
40
The cost ofthe groceries sold averages 65% of sales. The incremental cost to keep the store open, including the clerk's wage and other operating costs, is S23 per hour. To maximize profit, when should the store be opened, and when should it be closed?
arrow_forward
as per your policy, customer service from bartley stated since you took a incomplete question and answered it instead of questions that actually need answering.
you owe me my questions and not to only solve one question, kindly solve all 3. And when i end up switching to CHEG not only will i be posting this on my vlog and social media i will also be contacting BBB and i will make sure to find out whos the special kid behind answering and trolling me ((:
kindly answer all 3 , thanks
arrow_forward
Mech. Engg. Dept.
4th year 2022-2023
Solar Energy
Spring course MEC364
Dr. Mahmoud U. Jasim
Review/Recap Sheet
Q1- Answer with true or false and rewrite the false statements completely in
correct form, otherwise no mark will be put on the false statements.
1
2
To represent a location on earth surface you need to define its altitude and longitude
angles.
3
Solar zenith and solar incidence angles have the same value for horizontal surface.
At sunset time the value of solar altitude angle is maximum.
4
The angle which represents the inclination of a given surface is the zenith angle
5
6
7
8
When the absolute value of sun-wall azimuth angle exceeds 90' this means that the sun
rays are reaching the receiving plane.
The solar irradiance and the solar irradiation have the same physical meaning.
In the case of clear sky weather, the beam solar irradiation on a horizontal surface is less
than the diffused irradiation.
The total solar radiation received by a tilted surface is the same as that…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- I need parts 1, 2, and 3 answered pertaining to the print provided. NOTE: If you refuse to answers all 3 parts and insist on wasting my question, then just leave it for someone else to answer. I've never had an issue until recently one single tutor just refuses to even read the instructions of the question and just denies it for a false reasons or drags on 1 part into multiple parts for no reason.arrow_forwardThis is an engineering problem and not a writing assignment. Please Do Not Reject. I had other engineering tutors on bartleby help me with problems similar to this one. This problem must be presented in a logical order showing the necessary steps used to arrive at an answer. Each homework problem should have the following items unless otherwise stated in the problem: a. Known: State briefly what is known about the problem. b. Schematic: Draw a schematic of the physical system or control volume. c. Assumptions: List all necessary assumptions used to complete the problem. d. Properties: Identify the source of property values not given to you in the problem. Most sources will be from a table in the textbook (i.e. Table A-4). e. Find: State what must be found. f. Analysis: Start your analysis with any necessary equations. Develop your analysis as completely as possible before inserting values and performing the calculations. Draw a box around your answers and include units and follow an…arrow_forwardI need parts 8, 9, and 10 answered. Number 1 is an example of how it should be answered. NOTE: Read the instructions, no where does it say any drawing is required. It is really frustrating when I wait all this time for an answer to a question and some tutor does even read the instructions and just declines it...its ridicilous.arrow_forward
- Josh and Jake are both helping to build a brick wall which is 6 meters in height. They lay 250 bricks each, but Josh finishes this task in three (3) hours while Jake requires 4.5 hours to complete his part. select the BEST response below: Jake does more work than Josh O Josh does more work than Jake Both Josh and Jake do the same amo O of work and have the same amount of power Both Josh and Jake does the same O amount of work, however, Josh has m power than Jake.arrow_forwardHelp!!! Answer all parts correctly!! Pleasearrow_forwardNeed help with thisarrow_forward
- Please double check before rejecting this question. If it needs to be rejected, please explain why as I cannot see how this is a breach of the honor code. This is a questions from the previous year's exam at my university in Engineering Science. I have submitted a solution given to us for study purposes as proof that I will not be graded on this assessment. In this solution, the formula (2gh)1/2 is used to find the solution, but I am on familliar with Bernoulli's Principle (P=1/2pv^2+pgh), and I was not able to find a solution using this. My solution incurred an error when I found that I had two unkown variables left that I could not break down in any meaningful way. (Velocity being the desired variable, Pressure being the problematic variable). Pressure = Force x Area, but I don't know enough about the dimensions of the tank or tap to be able to understand this. Thank you for your help.arrow_forwardThe class I'm taking is physics for scientists and engineers! **** I need help with part D only***** Can you please write out the solution and not type out the solution? I had to reask this question because the last tutor typed out the solution and it was very hard for me to follow . Please and thank you for the special request. I have attached the problem. Please view attachment before answering. Thank you!arrow_forwardCreate a reading outline for the given text "STRESS and STRAIN".arrow_forward
- please help solve A-F. thank you You are an engineer working on a project and your prototype has failed prematurely. You question whether or not a key component of the prototype was manufactured with the correct material. There are two way to check for the material properties. The first way is to have a material certification done to confirm the exact material composition. This will take some time. The second method to confirm the material properties is to make an ASTM test sample and test for the material properties. This tensile test was completed on a test sample with an initial diameter of .501” and an initial length of 2”. The Load-Deflection data for this tensile test is below. Use this data to answer the first set of questions on the Final Exam in eLearning. A. Determine the Ultimate Tensile Strength B. Determine the 0.2% Offset Yield Strength C. Determine the value of the Proportional Limit D. Determine the Modulus of Elasticity E. Determine the Strain at Yield F. Calculate %…arrow_forwardall one question help asap please!arrow_forwardTOPIC: ENGINEERING ECONOMICS SPECIFIC INSTRUCTION: Solve each problem NEATLY and SYSTEMATICALLY. Show your COMPLETE solutions and BOX your final answers. Express all your answers in 2 decimal places. PROBLEM: Cardinal Financing lent an engineering company Php 500,000 to retrofit an environmentally unfriendly building. The loan is for 5 years at 10 % per year simple interest. How much money will the firm repay at the end of 5 years?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY