Student Name: _
Student Number: _
Partners Name and Student #: _
Demonstrator's Name: _
PLEASE NOTE:
If ANY of the above information is UNCLEAR or not provided, your grade
will NOT be recorded!
Lab Day (circle):
Lab Week (circle):
Tues aft
Tues night Wed
11/4/2016
Booleans,Import,Namespaces,andifStatements|Coursera
Booleans, Import, Namespaces, and if
Statements
16questions
1
point
1.
Variable courses refers to the value 3. Select the expression(s) that produce True .
courses != 3
3 = courses
3 >= courses
11/4/2016
Python,Variables,andFunctions|Coursera
Python, Variables, and Functions
12questions
1
point
1.
Read the description given by
1
help(round)
Then select the function call(s) below that run without error. You can check your answers
by running the c
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Moment of a Couple
A couple is two forces F and F which have the same magnitude, parallel lines of action,
but opposite sense.
r2
-F
O
r1
F
A couple is simply a two force moment.
M
O
r1 F r2 F r1 r2 F
i
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Welcome:
Professor:
o Bahareh Momenan
o E-mail: bmome005@uottawa.ca
o Office: CBY B210
o Office hours: TBD
Course material:
o Posted on virtual campus (Black Board)
o Majority of the typed equations an
11/4/2016
TuplesandDictionaries|Coursera
Tuples and Dictionaries
12questions
1
point
1.
Consider this code:
1
2
3
4
5
>d=cfw_'a':1,'b':2
>#CODEMISSINGHERE
>d
cfw_'a':1,'c':3,'b':2
Write the missing assignment statement that that modies the dictionary as s
6(a). State whether the following is true or false, and justify your answer.
(i) If A is an invertible matrix and AB = 0 then B = 0.
(ii) The columns of a 4 by 3 matrix are always linearly dependent.
(iii) If A is a 3 by 4 matrix, then the rows of A must
6(a). State whether the following is true or false, and justify your answer.
(i) If A is an invertible matrix and AB = 0 then B = 0.
(ii) The columns of a 4 by 3 matrix are always linearly dependent.
(iii) If A is a 3 by 4 matrix, then the rows of A must
Topic 6:
Thermochemistry
Types of Energy
ENERGY: the capacity to do work or to produce heat.
Sugar + KClO4 CO2 + H2O + heat + light
CHM1311
Thermochemistry
2
Units of Energy
SI Unit for energy is the joule, J:
kg m2
1J = 1
s2
James Joule, 1818-1889
We s
Topic 4:
Chemical Kinetics
k = Ae-Ea/RT
Chemical Kinetics
We can use H to tell if a reaction is energetically
possible or not
We can use K to tell if a reaction is product or
reactant favoured.
But this gives us no information on how and how
fast the r
#Divyang Arora
#8713396
#Number 3
'def alarmtimer(ct, hta):
addintime = hta%24
tta = ct + addintime
if tta > 24:
toa = tta - 24
else:
toa = tta
return toa
'
def pay(wage,hours):
'
(Number,Number) -> Number
enter your wage and hours you worked and this wil
CHM1311A Midterm #1A 2015
Page 1 of 12
LAST NAME: _
FIRST NAME: _
Student Number: _
CHM 1311 A
Midterm #1 A
Fall 2015
Please keep your work covered at all times and keep your eyes on your
own paper! Cheating or any appearance of cheating will result in an
def quiz2(l):
if len(l) < 2:
return 0
else:
i = 0
count = 0
while i < len(l) - 2:
num = l[i] + l[i + 1] + l[i + 2]
if num < 0 and num >= -10:
count = count + 1
i = i + 1
return count
11/4/2016
ForLoopsandFancyStringManipulation|Coursera
For Loops and Fancy String Manipulation
14questions
1
point
1.
Select the expression(s) that produce True .
len('aabbcc') = 6
'do' in "don't"
'as' in 'it happens'
len('aabbcc') = 3
1
point
What value d
11/4/2016
ForLoopsOverIndices,ParallelListsandStrings,andFiles|Coursera
For Loops Over Indices, Parallel Lists and Strings, and
Files
13questions
1
point
1.
Consider this code:
1
2
3
4
5
6
7
defmerge(L):
merged=[]
foriinrange(0,len(L),3):
merged.append(L[
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Example of Forces in 3D on a Particle
Example of Forces in 3D on a Particle
The forces at A are P, TAB, TAC and TAD. Only TAD is known, thus we have 3 unknowns.
Forces:
PPj
Example of Forces in 3D on a P
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Equilibrium Practice Problems
1. Final Exam 2007
(12 points total) The inclined plate shown in the sketch
is supported by two hinges, B and C, attached to a
vertical wall, and by a cable AD which exerts
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Chapter 2: Statics of Particles
Rectangular Components of a Force
y
y
or
F
Fy
F
Fy
x
Fx
x
Fx
Unit Vectors
y
i = x direction
j = y direction
k = z direction
j
x
i
so,
Fx Fx i
thus
F Fx i Fy j
and
Fy Fy j
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Chapter 3: Rigid Bodies
F1
F1
Particle
Rigid body
F2
F2
The point of application affects the motion of the object!
Chapter 3: Rigid Bodies
External Forces
FBD:
y
Centre of gravity
F
x
R1
W = weight of th
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Chapter 2: Statics of Particles
Examples, page 53
Find Tensions in cable AB and AC such that the system is in equilibrium
B
C
A
50
30
FBD:
y
TAC
C
TAB
50
A
30
x
75kg
W
Using trigonometry:
W
TAB
W
sin 60
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Sample problem 3.2: Determine the moment of the force about B.
+Y
800N
A
+X
60
Fy
A
+Z out of
page
F = 800N
60
Fx
0.16m
160mm
MB
B
B
200mm
M B rA B F rx Fy ry Fx
M B 0.2m 800sin 60 N 0.16m cos 60 N
M B
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Chapter 4: Equilibrium of Rigid Bodies
In order to properly understand the equilibrium of rigid bodies, it is of the utmost
importance that we draw good FBDs.
Free Body Diagram Summary
1. Choose which ri
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Chapter 2: Statics of Particles
Forces
A force represents the action of one body on another. Whats important:
- point of application
- magnitude
- direction and sense
magnitude
30
point of application
di
def seconds_difference(time_1, time_2):
" (number, number) -> number
Return the number of seconds later that a time in seconds
time_2 is than a time in seconds time_1."
time_2 = time_2 - time_1
return(time_2)
def hours_difference(time_1, time_2):
" (numbe
def get_length(dna):
" (str) -> int
Return the length of the DNA sequence dna."
dna=len(dna)
return(dna)
def is_longer(dna1, dna2):
" (str, str) -> bool
Return True if and only if DNA sequence dna1 is longer than DNA sequence
dna2."
dna1=len(dna1)
dna2=le
11/5/2016
StringsandDesigningFunctions|Coursera
Strings and Designing Functions
18questions
1
point
1.
Which of the following results in a syntax error?
1
2
"yes
no"
1
2
'yes
no'
1
'yesno'
1
'yes\nno'
1
point
2.
Which of the following results in a syntax
GNG 1105: Section C
Engineering Mechanics
Fall 2016
Chapter 4: Equilibrium of Rigid Bodies
Two Force Members
Special case of equilibrium, forces must have:
- same magnitude
- same line of action
- opposite sense
Two force members reduce the number of unkn
11/4/2016
WhileLoops,Lists,andMutability|Coursera
While Loops, Lists, and Mutability
14questions
1
point
1.
Select the expression(s) that evaluate to True .
len([1, 2, 3]) = len(['a', 'b', 'c'])
len('mom') in [1, 2, 3]
int('3') in [len('a'), len('ab'), le
Ionic Equilibria
1
The function of a buffer is to resist changes in the pH of a
solution when either H+ or OH- is added.
Consists of a conjugate acid-base pair
Could be comprised of either:
i. A weak acid and its conjugate base
ii. A weak base and its