CS 111 Lecture 2: Programming Basics, Variable Names, Expressions, Python Example (25 August 2016)

40 views2 pages
School
Course
Professor

Document Summary

On a computer, we need to keep track of data when programming. On a computer, the wires can either have electricity flowing or not flowing. When the current is flowing: the wire is on (or has a value of 1) When the current is not flowing: the wire is off (or has a value of 0) A single wire is referred to as a bit which comes from the term binary digit. A byte is the smallest chunk of memory accessible on a computer. When programming we store and access data in the bytes of the ram. The program/computer has to keep track of what ram to store information in. Think of ram as a large group of mailboxes. Ram: 1 gb is a billion places of storage, where the wires are. When programming, we use a variable name as a placeholder for the ram address number.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions