Difference between revisions of "CSC111 Midterm Preparation 2014"
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <onlydft> | ||
The midterm is closed-notes, closed-books, closed-computers. | The midterm is closed-notes, closed-books, closed-computers. | ||
− | Note that depending on which textbook is used for CSC111, different topics are covered in different orders, and sometimes topics covered one semester before the midterm are covered after the midterm another semester. The purpose of this page is to give you an idea of the format that will be used and the type of questions to expect. Do not pay close attention to the actual Python constructs being tested. | + | Note that depending on which textbook is used for CSC111, different topics are covered in different orders, and sometimes topics covered one semester before the midterm are covered after the midterm another semester. The purpose of this page is to give you an idea of the format that will be used and the type of questions to expect. '''Do not pay close attention to the actual Python constructs being tested.''' |
<br /> | <br /> | ||
<code><pre> | <code><pre> | ||
Line 28: | Line 29: | ||
b = 4 | b = 4 | ||
for a in range( b ): | for a in range( b ): | ||
− | print a, a+b | + | print( a, a+b ) |
</source> | </source> | ||
<code><pre> | <code><pre> | ||
Line 106: | Line 107: | ||
a = input( "Enter first number? " ) | a = input( "Enter first number? " ) | ||
b = input( "Enter second number? " ) | b = input( "Enter second number? " ) | ||
− | print f1( b ), f2( a ) | + | print( f1( b ), f2( a ) ) |
Line 184: | Line 185: | ||
</pre></code> | </pre></code> | ||
− | + | </onlydft> | |
<br /> | <br /> | ||
<br /><br /><br /><br /><br /> | <br /><br /><br /><br /><br /> | ||
[[Category:CSC111]][[Category:Exams]] | [[Category:CSC111]][[Category:Exams]] |
Latest revision as of 10:50, 2 September 2017