



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Assembler - A program that translates assembly language into machine language for execution by the CPU Assembly language - A low-level language that uses short words called mnemonics for instructions instead of binary numbers Compiler - Translates a high-level program into a separate machine language program that can be executed at any time CS 105 grading breakdown - Weekly labs 30 percent, quizzes and assignments 30 percent, participation and engagement 30 percent, project 10 percent
CS 105 letter grade cutoffs - A is 93 percent or above, B is 83, C is 73, D is 60, and F is below 60 Current major version of Python - Python 3.x.x Decode - The CPU decodes the fetched instruction to determine which operation to perform Does Python use a compiler or an interpreter? - An interpreter Execute - The CPU performs the operation Fetch - Read the next instruction from memory into the CPU Fetch-decode-execute cycle - The three-step cycle the CPU repeats for every instruction: fetch, decode, execute Four strengths of Python - Simple readable syntax, powerful and flexible, huge community support, and cross-platform High-level language - A language that allows simple creation of powerful, complex programs without needing to know how the CPU works
Machine language - The binary language the CPU directly understands; impractical for people to write in Main weakness of Python - Lower performance than compiled languages, so it is not ideal for high-frequency trading, real-time systems, or games Mnemonics - The short words used in assembly language to stand for instructions Object-Oriented Programming (OOP) - Organizing code using classes and objects, useful for building larger and more complex systems Operators - Symbols that perform operations on data, such as math operators for arithmetic Procedural Programming (PP) - Writing code as a series of step- by-step instructions Required textbook for CS 105 - Tony Gaddis, Starting Out with Python, 6th Edition, Pearson
Roughly how many high-level programming languages exist? - More than 2000 Script mode - Mode where a set of Python statements is saved in a file so it can be run as a program Source code - The statements written by the programmer Statement - An individual instruction used in a high-level language Syntax - The set of rules that must be followed when writing a program Syntax error - An error that prevents code from being translated Three ways to run Python without your own computer - Google Colab, the Anaconda cloud server, and online-python.com Two features of IDLE - It runs in interactive mode and has a built- in text editor with features designed for writing Python programs
on pieces of data, such as reading, adding, subtracting, multiplying, and dividing