1: why should you learn to write programs? Flashcards
Define CPU and its function
Central Processing Unit; the part of the computer that is built to be obsessed with asking you “what’s next”?
What does PDA stand for?
Personal Digital Assistant
Define main memory and its function
A location in the computer used to store information that the CPU needs in a hurry. It is nearly as fast as the CPU but the memory is stored only as long as the computer has an active power source
Define secondary memory and its function
This is another location to store memory for the CPU to use. Unlike main memory, this source is a lot slower but stores information even without a power source.
Define input and output devices along with their functions.
Parts which we use to interact with the computer and include such items as a screen, keyboard, mouse, microphone, speaker, or touchpad.
What is a program in relation to your computer?
A program is a set of instructions the programmer gives the computer in order to complete a specific tasks or series of tasks.
A sequence of python statements that have been programmed to do something.
What are reserved words?
These words each hold a very special and singular meaning in Python. One might consider them to be the “vocabulary” of the Python language.
What are variables?
Words that a programmer creates for the computer to understand. Additionally, the programmer gives a specific name and meaning to those words, but can never use any of Python’s reserved words for a name.
Name at least 10 reserved words.
And. Del. for. Is. Raise. Elif . From. Lambda. Return. Break. Else. Global. Not. Try. Class. Except. If. Or. While. Continue. Exec. Import. Pass. Yield. Def. Nally. In. Print.
Telling the computer to print is similar to….
Programming the computer to speak is called what in terms of a reserved word?
An instruction that prompts Python to display a value on the screen.
Define»_space;>
What do you want to do next human?
Name 2 ways to exit Python interactive.
quit ()
^Z
Python takes binary machine language (0101001) and transforms it into what is considered a high-level language.
Name at least 4 other high-level languages.
C++ Java PHP Ruby Basic Pearl JavaScript
Just to name a few…
Why is Python considered a high-level language?
Python takes machine-language and creates a secondary language in which humans can read, write and use for computers to read and process.
Why are high-level languages like Python so important to programmers?
Machine-language is specific for any given machine and therefor is not “portable” across different types of hardware. However, _______ languages like python or JavaScript act as translators to convert the programs to machine language so the CPU can execute the command.