CSC1023 Quiz 6

Spring 2012
Herbert J. Bernstein ( )

CSC1023 Quiz 6
Spring 2012

 


This web page is http://www.bernstein-plus-sons.com/.dowling/CSC1023S12/CSC1023_Quiz_6.html
Copyright © 2003-2004, 2010-2012 Herbert J. Bernstein and other parties. All rights reserved.


This is the sixth weekly quiz to be taken on Friday, 23 March 2012 after you have completed the first part of assignment 6. In order to do this quiz, you must use a computer that has Python and IDLE installed. You may use Dowling's computer laboratory computers or you may install Python on your own computer. It should take you approximately half an hour to 2 hours to answer these questions. You may not help one another.

  <==== Do this AFTER you've answered all the questions

You probably DON'T want to do this ===>  

Please fill in the following information:

Name:


Email:

Skype ID:

Please answer the following questions on this form.

  1. Give the URL of your analysis of convert_story.py.

  2. Give the URL of your pseudocode for a program to ask a user for a list of names that need to be changed in your story and then to go through the story replacing each name with its intended replacement.

  3. Briefly explain how to create a Python program to work as a CGI script.

  4. How to you define and document a function in Python?

  5. Explain abstraction, giving an example from a fast food place.

  6. Explain how to return a value from a Python function.

  7. Explain the Python positional and keyword function arguments.

  8. Explain global variables and constants, giving examples.

  9. Give a Python function that asks for a number within a range and returns a number within the range specified.

  10. Explain the concept of encapsulation.

  11. Explain the concept of software reuse.

  12. Explain the role of the main() function, both specifically in the Tic-Tac-Toe game and as a general concept.

  <==== Do this AFTER you've answered all the questions

You probably DON'T want to do this ===>  

Revised 16 March 2012