MCDB 108C Spring 2023 Midterm Exam: Programming & Integration
.pdf
keyboard_arrow_up
School
University of California, Santa Barbara *
*We aren’t endorsed by this school
Course
108C
Subject
Mathematics
Date
Jun 11, 2024
Type
Pages
10
Uploaded by CorporalSquirrelMaster1081
Name: ______________________________ 1/10 Student’s perm #: ________________________ Student’s signature: ________________________ Grade =______________/80 pts. MCDB 108C Spring 2023
MIDTERM EXAM #1 DO NOT OPEN THE EXAM UNTIL YOU ARE INSTRUCTED TO DO SO This exam should have 10 pages. Two blank pages are collated to the exam for you to draft your answers. Please put your name on every page. You are allowed to use one page
of your own hand-written notes. You may not
use a computer or smart phone during the exam, but you shouldn't need them since you can leave your answers in exact form whenever numerical values cannot be provided. Do not spend all your time answering one question, allocate your time among the questions appropriately. For the short-answer questions, you should show how you arrived at your final conclusion(s)
. Each point of this exam represents 1 point of the final grade of the class (total: 500 points). (source: Wikipedia)
Name: ______________________________ 2/10 [ /25 points] Part 1 – Programming Question 1.1
[ /10 pts]: Two vectors are inputted in Matlab by using the following commands: v1 = [0 1 2]; v2 = [2 1 0]; After having run the following for
loop, what are the value(s) of variable w
? W = zeros(3,1); for i
= 1:3 w(i) = v1(i) * v2(i); end Question 1.2
[ /5 pts]: What is the value of variable z
after having run the following commands? mysterious_vector = -3:1:3; z = length(mysterious_vector)
Name: ______________________________ 3/10 Question 1.3
[ /10 points]: Consider scripts 1 and 2. What will be the value of counter_1
and counter_2
after each script has been executed? Will the values of these two counters be the same? Please briefly justify your answer by explaining the algorithmic logic of each script. Script 1: counter_1(1) = 0; for i = 1:9 counter_1(i+1) = counter_1(i) + 1; end disp(counter_1) Script 2: clearvars counter_2(1) = 0; for i = 2:10 counter_2(i) = counter_2(i-1) + 1; end disp(counter_2)
Name: ______________________________ 4/10 [ /25 points] Part 2 – Derivation and numerical integration Question 2.1
[ /10 points]: The expression of a transcription factor ࠵?
is monitored in a cell over time. The concentration of ࠵?
(mM) is measured at time intervals spaced by 1 second. The graph of the time series of ࠵?(࠵?)
is displayed on the right graph. How will the graph of the rate of change of ࠵?
with respect to time (࠵?࠵?/࠵?࠵?
) look like? Please pick one of the 4 options (A-D) based on your expectations of ࠵?࠵?/࠵?࠵?
and briefly justify your choice. Hint: Provide a reason to rule out the 3 options that do not apply.
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