{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

exam2review_ques

exam2review_ques - 20.180:Exam2reviewQ Here are a few...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
20.180:Exam2reviewQ Here are a few simple questions that should remind you of the four sections of our course: 1. Python programming 2. DNA programming 3. DNA->mRNA->Protein coding 4. Spatial programming Q1. Consider the following two simple Python code examples: Case A. def multiply(x,y): ___prod=x*y ___return prod print multiply(2,3.14159265) print multiply(4,'MIT') Case B. y=2*3.14159265 print y z=4*'MIT' print z Which is better? Why? A1. Case A is better because a reusable function, multiply , has been defined that can be called many times other as needed (i.e., in different programs). Q2. What is the difference between an engineered biological part and an engineered biological device? A2. A part is a basic biological function that can be encoded as genetic material (e.g., a open reading frame encoding a specific protein). A device is a combination of one or more biological parts that performs a human-defined function (e.g., a genetically encoded inverter). Devices are made from parts. Functions encoded by parts are defined by the
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

exam2review_ques - 20.180:Exam2reviewQ Here are a few...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon bookmark
Ask a homework question - tutors are online