• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/19

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

19 Cards in this Set

  • Front
  • Back

The Central Processing Unit

(or CPU) is that part of the computer that is
built to be obsessed with “what is next?”. If your computer is rated at 3.0 Gigahertz, it means that the CPU will ask “What next?” three billion times
per second.

The Main Memory

is used to store information that the CPU needs in a hurry. The main memory is nearly as fast as the CPU. But the information stored in the main memory vanishes when the computer is turned off.

The Secondary Memory

is also used to store information, but it is much
slower than the main memory. The advantage of the secondary memory is that it can store information even when there is no power to the computer. Examples of secondary memory are disk drives or flash memory (typically found in USB sticks and portable music players).

The Input and Output Devices

are simply our screen, keyboard, mouse,
microphone, speaker, touchpad, etc. They are all of the ways we interact with the computer.

program

stored instructions

programming

The act of writing these instructions down and getting the instructions to be correct.

programmer



What do you need?

A person skilled in the art of programming.



-You need to know the programming language (Python) - you need to know the vocabulary and grammar, spell, construct "sentences."


-You need to "tell a story." Convey an idea to the reader. In programming, our program is the "story" and the problem you are trying to solve is the "idea."

"vocabulary"

The "reserved words"


These are words that have very special meaning to Python. When Python sees these words in a Python program, they have one and only one meaning to Python.



These words can not be used for anything else within Python.

variables

Words you write that you make your own word with it's own meaning.



x = 5



x is the variable and 5 and is the meaning you made the variable have.


script

The use of a text editor to write the Python instructions into a file. The file name must end with .py

program

A sequence of Python statements that have been crafted to do something.

input

Get data from the the “outside world”. This might be reading data froma file, or even some kind of sensor like a microphone or GPS. In our initial
programs, our input will come from the user typing data on the keyboard.

output

Display the results of the program on a screen or store them in a file or perhaps write them to a device like a speaker to play music or speak text.

sequential execution

Perform statements one after another in the order they are encountered in the script.

conditional execution

Check for certain conditions and execute or skip a sequence of statements.

repeated execution

Perform some set of statements repeatedly, usually with some variation.

reuse

Write a set of instructions once and give them a name and then reuse those instructions as needed throughout your program.

Syntax errors

A syntax error means that you have violated the “grammar” rules of Python.



note : Python does its best to point right at the line and character where it noticed it
was confused. The only tricky bit of syntax errors is that sometimes the mistake
that needs fixing is actually earlier in the program than where Python noticed it was confused. So the line and character that Python indicates in a
syntax error may just be a starting point for your investigation.

Logic Errors

A logic error is when your program has good syntax but there is
a mistake in the order of the statements or perhaps a mistake in how the
statements relate to one another. A good example of a logic error might be,
“take a drink from your water bottle, put it in your backpack, walk to the
library, and then put the top back on the bottle.”