It reads and interprets the data and determines the sequence for processing the data.
Back
What does isdigits do?
Front
lets you know if a string is only digits or not
Back
What is it called when we check input?
Front
input validation
Back
How do you check if two strings are equal in Python?
Front
== symbol
Back
What is a constant in Python?
Front
a variable whose value should not be changed after it's assigned an initial value
Back
What is a return value?
Front
The output that a round function computes
Back
Is 10,000 a valid number literal?
Front
no because there is a comma
Back
name = "Don" what is name[0]?
Front
D
Back
What is an algorithm?
Front
An algorithm is a step by step description of how to solve a problem.
Back
Algorithm for brushing your teeth, please create one
Front
1. Get toothpaste from cabinet
2. Get toothbrush from cabinet
3. Put toothpaste on toothbrush
4. Wet toothpaste on toothbrush
5. Brush teeth for 2 min.
6. Spit out toothpaste
7. Rinse mouth
8. Rinse toothbrush
9. Return toothbrush to cabinet
10. Return toothpaste to cabinet
Back
Give a example of a built in math function
Front
abs (x) = gets the absolute value of "x"
Back
Is 12pack a valid variable name? Why?
Front
no because it starts with a number
Back
Algorithm is a sequence of ?
Front
A sequence of steps to help solve a problem.
Back
parenthesis number is it always even or odd?
Front
even
Back
Concatenate what does it mean?
Front
adding one string to the end of another string
Back
What is a common error with if statements?
Front
duplication in branches
Back
What's the difference between software and hardware?
Front
Software is an application program such as Microsoft Word. Meanwhile, Hardware consists of the physical elements in a computer system.
Back
Why would 4 = 20/5 cause an error as a relational operator?
Front
it should be 4 == 20/5.
Back
Give 3 examples of relational operators in python
Front
> greater than
< less than
== equal to
Back
What is the ALU?
Front
The ALU or arithmetic logic unit holds the circuitry to carry out calculations and perform comparisons.
Back
Name 2 different data types in Python
Front
integer, float, string
Back
What is the only way to get false as an answer when using or?
Front
only if both conditions are false
Back
price = round(6.6554, 3) what is the value of price?
Front
6.655
Back
What is a variable?
Front
A variable is a named storage location in a computer program
Back
What does the in operator check for?
Front
the in operator analyzes or asks certain questions about a particular string
Back
Do the if and else words have to be aligned?
Front
yes they have to be aligned
Back
What is an escape sequence?
Front
an escape sequence uses the "\" backslash to enter a new line of text without leaving the same print function
Back
Whats the value of length?
Front
The value of length is 5
Back
What symbol do we use for a comment in Python?
Front
#
Back
What does is alpha do?
Front
isalpha checks to see if the string contains only alphabetical characters.
Back
What does CPU stand for in computer science?
Front
Central Processing Unit
Back
What is a function?
Front
A sequence of instructions with a name
Back
What is the input and output for the round function
Front
input is argument, output is return value
Back
How does the ends width work with file extensions?
Front
Endswith makes sure the file has the correct extension with an if statement
The header of a function includes the name of the function and tells what type of data it expects to receive and the type of data it will return to the calling function.
Back
What does a function call do?
Front
a function call orders a function to execute its instructions
Back
What do you think nesting refers to with if statements?
Front
Using an if statement within an if statement
Back
write a python program that inputs your name and year you graduate
Front
name = input("What is your name?")grad_year = int(input("What year will you graduate?"))
print("My name is", name, "and I graduate in", grad_year)
Back
What does the colon indicate in an if else statement?
Front
the colon indicates a compound statement
Back
Whats an example of secondary storage?
Front
Secondary storage is a flash drive that does not need electric power.
Back
How large is a megabyte?
Front
1,048,576 bytes
Back
What type of branching is an elif?
Front
multiway branching
Back
What does a computer program do?
Front
A computer program tells a computer the sequence of steps needed to complete a specific task.
Back
What is the only way to get true when using an And?
Front
only if both conditions are true
Back
How does assignment work in Python?
Front
The assignment statement '=' is used to place a new value into a variable
a sentinel value denotes the end of a data set but is not part of the data
Back
What can a boolean variable be set to value wise.
Front
true or false
Back
Argument vs Parameter what is the difference?
Front
The argument value contains the contents of a variable, while the parameter variable is declared in the called function which is initialized with the value of the argument value.
Back
1. Write a python program that uses a for loop to print out your name ten times, includethe counter values(ie.)0 john doe1 john doe
Front
for num in range (10):
print(num, "Griffin" )
Back
Write a python program that uses a while loop to print out your name ten times, includethe counter values(ie.)0 john doe1 john doe