WorksheetsIntro To Programming Complete Study Set
Total questions: 36
Worksheet time: 19mins
A line that creates a variable and assigns its value
Sentry Variable
Algorithm
Assignment statement
Module
The process of joining two strings together to create a whole new string
Variable
Concatenating strings
infinitive loop
Constant
Numbers with a decimal point
Floating-Point numbers
Concatenating strings
Comparison Operators
Comparison Operators
Whole Numbers with no fractional part
Lists
Nested Sequences
Mutable
Integers
Division where the result is always an integer (the fractional part is ignored)
Block
Integer division
Loop
infintive loop
Provides a way to label and access information
Block
Assignment statement
Variable
Module
Signs that allow you to compare values in a condition
Comparison Operators
Random Module
Sentry Variable
Tracing
Addition
-
+
/
//
Subtraction
-
//
/
+
Multiply
//
+
*
-
True Division
+
-
//
/
Integer Division
*
//
/
-
Modulus
//
%
/
*
List two RULES for creating variable names
Variables can only contain numbers, letters, and underscores
Be Descriptive
Be consistent
Connot start with a number
List four GUIDELINES for creating variable names
Follow Language traditions
Keep Length in check
Be Discriptive
Have the right code
Be Consistent
A set of clear, easy to follow instructions for accomplishing some task
Listing
Algorithm
Assignment statement
Comparison Operator
One or more consecutive lines indented by the same amount
Comparison Operators
Block
Algorithm
Module
An expression that is either true or false
Module
infinite loop
Random Module
Condition
A loop that never stops
Variable
Infinite loop
Integer
Loop
A file that contains code meant to be used in other programs
Module
Dictionary
Tracing
Constant
Contains functions related to generating random numbers and producing random results
Tuple
Slices
For loop
Random Module
A variable used in a condition and compared to some other value or values
Sentry Variable
Dictionaries
Tracing
List
Simulating the running of your program, following every statement, and keeping track of the values assigned to variables.
Item
Lists
Value
Tracing
A value that is not meant to change
Constant
For loop
Condition
Module
A loop that repeats its loop body for each element of the sequence in order
Infinite loop
Variable
For Loop
Item
What does Immutable mean?
changeable
Unchangeable
Slices
Tuple
What does mutable mean?
Tuple
Unchangeable
Slices
Changeable
Continuous sections of elements
Value
List
Slices
Tuple
Let's you organize and manipulate information in ordered groups ()
Tuple
Item
Lists
Nested Sequences
Let you look up one value with another and organize information {}
Dictionaries
Value
Lists
Item
the combination of a term and meaning in a dictionary
Item
Slices
Value
Tuple
Sequences that are mutable - they can be modified [ ]
Tracing
Nested Sequences
Constant
Lists
Sequences inside other sequences. A great way to organize more complex collections of information
Item
Nested Sequences
Dictionaries
Lists
A dictionary meaning
Condition
Block
Algorithm
Value
If lists can do everything tuples can, why use tuples?
When they are required
There constant
Values do not have to be unique
There Faster
There immutable
What are the 3 Dictionary requirements?
2 keys cannot be the same
There faster
There constant
Values don't have to unique
There immutable
