Difference between revisions of "CSC111 Midterm Exam Preparation 2015"

From dftwiki3
Jump to: navigation, search
Line 101: Line 101:
  
  
 +
<br />
 +
=Question 10=
 +
<br />
 +
What is printed by this program?
 +
<br />
 +
::<source lang="python">
 +
def main0():
 +
    print( "Hello World" )
 +
    main()
 +
 +
def main1():
 +
    print( "Hello CSC111!" )
 +
    main0()
 +
 +
def main():
 +
    print( "This line is the only one printed" )
 +
 +
main()
 +
</source>
 
<br />
 
<br />
  
  
 
</onlydft>
 
</onlydft>

Revision as of 20:17, 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.



...