What does a computer do? - Answers Store and process information
What is information? - Answers Any valuable data
What is data? - Answers measure of a quantity/quality
What are the various type of data that exist? - Answers numeric
symbolic
visual
audio
What is the simplest way of representing a number? - Answers Binary system
What is a binary digit called? - Answers a bit
What is a byte? - Answers 8 bits
Whats the highest amount of values you can store in a byte? - Answers 256 (0-255) (2^0 + 2^1 +
2^2 + 2^3 + 2^4 + 2^5 + 2^6 + 2^7) = 11111111
What is a pixel? - Answers The smallest digital element
What is one common format for pixels? - Answers RGB - Gives quantity of each
What happens when we max out RGB? - Answers you get white.
What happens when there is 0 for RGB? - Answers you get black.
What is boolean algebra? - Answers it takes and makes decisions, made by George Boole
Who is Claude Shannon? - Answers Father of information theory
What are transistors? - Answers the smallest electrical unit where you can create circuits and do
on/off logic on circuits.
How do we communicate with computers? - Answers Programming language (Python)
pseudocode - Answers Shorthand notation for programming which uses a combination of
informal programming structures and verbal descriptions of code.
variables - Answers a name that we give to a memory location
how to make a single line comment - Answers #
how to make a multiline comment - Answers '''
, this
is a multiline
comment
'''
how to have output be a bunch of words? - Answers print("Hello World")
or
print('Hello World')
or
print('''Hello World''')
Literal string - Answers A series of characters that appear exactly as entered. Any literal string in
Java appears between double quotation marks.
Rules for variables - Answers 1. Should always start with a letter
2. Case-sensitive
3. Underscores for spaces
4. No symbols
5. No keywords
what does = represent? - Answers assignment operator
How do we print a variable? - Answers print(a) No quotations
How do we get something printed on a new line? - Answers \n inside the quotations
print("The value of a is", a, "\nAnd the value of b is", b, "The sum of a + b is", c)
How do we add a tab space? - Answers \t
print("The value of a is", a, "\nAnd the \t value of b is", b, "\nThe sum of a + b is", c)
How to use integer divison? - Answers // (only get back integer part of the value)
How to test if something is an odd #? - Answers Check its divisibility by 2
if the remainder is 0, it means it can be completely divided