click below
click below
Normal Size Small Size show me how
CS EOC Study Stack
| Question | Answer |
|---|---|
| The science of making machines/computers that can think like humans | AI |
| A series of ordered steps/instructions used to solve a problem | Algorithm |
| A single instruction within a program that tells the computer what to do | Command |
| Another word for a program, which is a sequence of instructions for a computer | Code |
| The set of rules that defines the structure and format of the programming language | Syntax |
| A complete set of instructions given to a computer to solve a task | Program/Software |
| Code command used use to output information back to the user | print() |
| A formal language comprising a set of instructions for computers | Programming Language |
| Text in code that is not executed, used to explain the code | Comment |
| A single line comment | #(hashtag) |
| A multi- line comment | ’’’ (Triple Apostrophes) |
| Can contain letters, numbers, and special characters | String |
| To format a string | Surround it with quotation marks |
| A whole number without a decimal point | Integer |
| A number that includes a decimal point | Floating Point Number |
| Converts a string to an integer | int() |
| Converts an integer to a string | str() |
| Converts an integer or string to a floating-point number | float() |
| A named storage for data in a program | Variable |
| To assign a variable | = |
| A formatted string allowing easy variable inclusion within text | F-string |
| Keyword used to define a function | Def |
| Encloses a list | square brackets |
| Adds an element to the end of a list | append() |
| To access the last element in a list | Name_of_list[-1] |
| A built-in data type which represents one of the two values i.e. True or False | Boolean |
| Contains code for what the function does | Function definition |
| Code that runs the function | Function call |
| Code that indicates the length of a list | len() |
| Function that tells Python what numbers to loop over | range() |
| Used to create a dictionary | Curly brackets |
| The amount by which a value is increased | Increment |
| Describes an object that can be changed after it is created | Mutable |
| The property of an object whose state cannot be modified after it is created | Immutable |
| Short for binary digit, represents 0 or 1 | Bit |
| A group of 8 bits | Byte |
| A group of 4 bits | Nibble |
| Numbers based on powers of 10 | Base 10 System |
| Numbers based on powers of 2 - Binary | Base 2 System |
| Creates an empty list | my_list = [] |