Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Python Programming Assignment - Prof. Ernest Ackermann, Quizzes of Computer Science

A python programming assignment with questions related to python identifiers, expressions, variables, statements, and program flow. The assignment includes questions about determining the goal of different phases of software development, identifying program patterns, and writing python code to perform specific tasks.

Typology: Quizzes

Pre 2010

Uploaded on 08/19/2009

koofers-user-lt7-1
koofers-user-lt7-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Your Name ________________________________________________________
1. Write the title of the book you are reading for the assignment that is due on February 23 here
________________________________________________________________________
2. What is the operating system on the computer you use most frequently?
Windows Vista ______
Windows XP _______
Mac OS X ___________
Linux ________________
Other _______________________ (put name of
operating system here)
3. Do you have Python downloaded and installed on a computer in your residence so that you can
use Python without coming to Trinkle?
Yes ___________ No _______________
4. What is the code for the lock on the door to the Trinkle lab?
_____________________________________
pf3

Partial preview of the text

Download Python Programming Assignment - Prof. Ernest Ackermann and more Quizzes Computer Science in PDF only on Docsity!

Your Name ________________________________________________________

1. Write the title of the book you are reading for the assignment that is due on February 23 here

________________________________________________________________________

2. What is the operating system on the computer you use most frequently?

Windows Vista ______

Windows XP _______

Mac OS X ___________

Linux ________________

Other _______________________ (put name of

operating system here)

3. Do you have Python downloaded and installed on a computer in your residence so that you can

use Python without coming to Trinkle?

Yes ___________ No _______________

4. What is the code for the lock on the door to the Trinkle lab?

_____________________________________

Your Name ___________________________

  1. The goal of the specification phase of the software development process is A.to determine what the program should do B. to create an algorithm that solves the problem C. to make sure that the program does not contain any errors D. to continue improving the program to meet user needs
  2. The goal of the design phase of the software development process is A. to determine what the program should do B. to create an algorithm that solves the problem C. to make sure that the program does not contain any errors D. to continue improving the program to meet user needs
  3. The program pattern IPO stands for A. interrupt processing organization B. inactive program optimization C. interactive program only D. input process output
  4. Identifiers in Python may not contain A. letters B. spaces C. digits D. underscores
  5. Fragments of code that produce new data values are called A. statements B. identifiers C. variables D. expressions
  6. The Python reserved word for performing output to the screen is A. print B. show C. write D. display
  7. Suppose that the variable x currently has the value 20. What statement would cause the value of x to become 25? A. x + 5 B. y = x + 5 C. x = x + 5 D. None.The value of x can't be changed.
  8. Suppose a program executes the statement: value = input("Enter a number: ") In response to the prompt, the user types 5 + 5. What is the result? A. the program crashes B. value contains 10 C. value contains 5 D. value contains 55
  9. The fragment of code input("Enter a number: ") is best described as: A. an expression that returns the result of evaluating what the user types B. a complete statement for performing input C. a prompt D. a syntax error