Difference between revisions of "CSC111 Midterm Exam Preparation 2015"
m (Thiebaut moved page CSC111 Midterm Exam Preparation to CSC111 Midterm Exam Preparation 2015) |
|||
Line 15: | Line 15: | ||
=Question 2= | =Question 2= | ||
<br /> | <br /> | ||
+ | What does camelcase refer to? Give an example of camelcase. | ||
+ | <br /> | ||
+ | =Question 3= | ||
+ | <br /> | ||
+ | What is the output of the following program? | ||
+ | <br /> | ||
+ | <source lang="python"> | ||
+ | def main(): | ||
+ | print( "main" ) | ||
+ | for i in range( 3 ): | ||
+ | print( i, end="-" ) | ||
+ | print( "done!" ) | ||
+ | |||
+ | main() | ||
+ | </source> | ||
+ | <br /> | ||
+ | =Question 4= | ||
+ | <br /> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
</onlydft> | </onlydft> | ||
<br /> | <br /> |
Revision as of 18:16, 28 February 2015
--D. Thiebaut (talk) 18:08, 28 February 2015 (EST)
Midterm Exam Prep
The midterm is an in-class exam given under the rules of the honor code. It lasts 70 minutes. It will be closed books, closed notes, closed computers.