Computer Science 217-University of Calgary

Computer Science 217 – Introduction to Python

The database of questions will be available online for future students up to 10 years (published August 2012) or till the database crash or when Python 3 language rules are significantly updated.

Disclaimer: While every reasonable effort is made to ensure that the information provided is accurate, no guarantees for the currency or accuracy of information are made. It takes several proof readings and rewrites to bring the quiz to an exceptional level. If you find an error, please contact me as soon as possible. Please indicate the question ID-Number or description because server may randomize the questions and answers.

Go to: Final Exam

Computer Science (CPSC 217-UCAL) Midterm Exam

Some questions have hints and explanations. Click Start to begin.
Start

Congratulations - you have completed Computer Science (CPSC 217-UCAL) Midterm Exam.

You scored %%SCORE%% out of %%TOTAL%%. With incorrect multiple attempts your score is %%PERCENTAGE%%

Your performance has been rated as %%RATING%%


Your answers are highlighted below.
Return
Shaded items are complete.
12345
678910
1112131415
1617181920
2122232425
2627282930
3132333435
3637383940
4142434445
End
Return

Credits: Based on the excellent class notes provided by, Dr. Ben Stephenson during Fall 2012.
FAQ | Report an Error

If you get a question wrong, you can still click on the other answers. You have multiple opportunities to select the correct answer. This will open up hints and explanations (if available), which will provide additional information.




What is Python 3?

python-logo-official Python is a high level programming language developed in 1991 mostly influenced by Java language. If you would like to take up Java, Python may be a good gateway to Java object oriented programming. It is a relatively easy language to learn with lots of built in useful functions and libraries. Since the initial deployment, it has been evolved to the current standard (2012) known as Python 3.

You do not need a compiler to run a Python based program, but it is recommended to download the modules for testing. There are several universities and colleges use Python 3 as their primary introductory language for Computer Science students.