Quiz 1 Flashcards
How is numeric data stored in memory? Character data
numeric-binary
negative numbers- two’s complement
floating point
ASCII
What is an algorithm
A set of well defined logical steps that must be taken to perform a task.
What are the steps in the program cycle or machine cycle?
fetch, decode, execute, store
List three data types in Python
Float, integer, strings
What are the steps in the program development cycle?
Design a program, write the code, correct syntax errors, test program, correct logic
What are some tools you can use during the design a program step in the program development cycle?
pseudocode, flowcharts, algorithms, IPOs
Coding: write a python statement that assigns the sum of 10 and 14 to the variable total.
total = 10 + 14
Write a snippet of code that would prompt the user for their favorite college football team and assigns the user’s input to a variable named team.
team = input( “Please name your favorite football team: “)
Write a statement that prompts the user for a number and casts the input as a float.
float( input (“Please enter a number: “))
Write a statement that prints the following text: Swoop says “It’s time to fly.”
print(‘'’Swoop says, “It’s time to fly.” ‘’’)
10.0/(44%10/4)
10.0
68/11*2.5+30/9
18.787878787878785
42/5(10.52)
176.4