CSC-171 Introductory Python Programming
Project 1: Ch 1 topics Mastery
Objectives:
Understanding programming and Python vocabulary. Writing Python instructions that requires the use of strings and numbers to store values, formulate expressions and perform numerical calculations
Worksheet 1 (wks 1 and 2) Complete the following Questions (5 points)
1.
Matching(1.8 points)
_D___ Expression A. appends one value to another (usually used with strings)
____ Syntax B. instructions given to a computer to accomplish some task
____ Variable C. small and capital letters are considered different from each other
____ Precedence D. consists of a value or values and operators that can be evaluated
____ Evaluate E. >>> displayed by the Interactive shell
____ Concatenate F. program stops running (and displays an error message)
____ Operator G. program application that lets you type code to be saved into it
____ IDE H. reduce down to a single value
____ Interpreter I. a named storage location that holds a value
____ Editor J. special names that are the commands of a program language
____ Prompt K. a console window where you can try out Python3 instructions
____ Shell L. special symbol in Python that performs some action on values
____ Crash M. the remainder after performing integer-only division
____ Keywords N. what the programmer types into the computer to be run
____ Case-sensitive O. order of how arithmetic operators are applied
____ Modulus P. the rules of a programming language
____ Program Q. a program that translate English-like program to machine language
____ Source code R. a tool that programmer’s use that include an Editor, debugger, and interpreter (or compiler)
2.
Identify
3 Python data types
and
show assignment statement
examples for each. (1.2 points)
3.
Show the line of code to exactly print to screen: “What’s up Doc?“ (including all “ and ‘ )(0.5 points)
4.
What is the result of the following expressions? (1 point)
a. 10 / 3
b. 10 % 3
c. 10 // 3
d. 0 % 5
5.
Show Python3 code that will report the number of characters in: “E A G L E S !” (0.5 pt)