Shared Flashcard Set

Details

Think Python
How to Think Like a Computer Scientist
74
Computer Science
Professional
12/05/2014

Additional Computer Science Flashcards

 


 

Cards

Term
Exception
Definition
Another term for Runtime Error.
Term
Byte Code
Definition
Intermediate language between source code and object code.
Term
Algorithm
Definition
General process for solving a category of problems.
Term
Bug
Definition
Error in a program.
Term
Grace Murray Hopper
Definition
Concept of computer "bug" was first attributed by who.
Term
Compile
Definition
To translate a program written in a high-level language into a low-level language at the same time, in preparation for later execution.
Term
Debugging
Definition
Process of removing the three kinds of programming errors, runtime error, semantic error, and syntax error.
Term
Executable
Definition
Object code that is ready to be executed
Term
Formal Language
Definition
Any language designed for a specific purpose, such as a computer language.
Term
High-Level Language
Definition
Programming language that is designed to be easy for humans to read and write.
Term
Object Code
Definition
The output of the compiler after it translates a program.
Term
Parse
Definition
To examine a program and analyse the syntactic structure.
Term
Portability
Definition
Property of a program that can run on more than one kind of computer.
Term

Print Statement

Print ()

Definition
Instruction that causes the Python interpreter to display a value on the screen.
Term
Problem Solving
Definition
Process of formulating a problem, finding a solution, and expressing the solution.
Term
Program
Definition
Sequence of instructions that specifies to a computer actions and computations to be performed.
Term
Python Shell
Definition
The interactive user interface to the Python interpreter.
Term
Runtime Error
Definition
Error that does not occur until the program has started to execute but that prevents the program from continuing, or also called an Exception.
Term
Script
Definition
A program stored in a file (usually one that will be interpreted).
Term
Semantic Error
Definition
Error in a program that makes it do something other than what the programmer intended.
Term
Semantics
Definition
The meaning of a program.
Term
Source Code
Definition
A program in a high-level language before being compiled.
Term
Syntax
Definition
The structure of a program.
Term
Syntax Error
Definition
Error in a program that makes it impossible to parse - and therefore impossible to interpret.
Term
Token
Definition
One of the basic elements of the syntactic structure of a program, analogous to a word in a natural language.
Term
BASIC
Definition
Computer language that was developed by John G Kemeny at Dartmouth College.
Term
C Language
Definition
Programming language developed by Dennis Ritchie and Ken Thompson at Bell Labs in the 70's.
Term
The Internet
Definition
Major influence on programming languages in the 1990's was what?
Term
1950's
Definition
Developed in what years, FORTRAN, LISP, ALGOL, COBOL
Term
1960's
Definition
BASIC, APL, SNOBOL, PL/1, LOGO, BCPL, all developed in what years.
Term
COBOL
Definition
Language designed mainly for business purposed in the 1950's.
Term
Interpreted Languages
Definition
Perl, Python, PHP these are just to name a few.
Term
FORTRAN (FORmula TRANslanting system)
Definition
Designed as a scientific language in the 1950's.
Term
Python Keywords
Definition
and,  as,  assert,  break,  class,  continue,  def,  del,  elif,  else,  except,  exec,  finally,  for,  from,  global,  if,  import,  in,  is,  lambda,  not,  or,  pass,  print,  raise,  return,  try,  while,  with,  yield.
Term
Operators
Definition
In programming languages these  (-  +  *  /  **)  are known as?
Term
Operand
Definition
Each one of these  (- + * / **)  individually are called?
Term
Case Sensetive
Definition

These are not the same:

fallClothing

Fallclothing

This refers to being?

Term
Value
Definition
A basic unit of data that a program manipulates, such as a string or integer.
Term
1 0 0
Definition

print (1,000,000)

This will print what on the screen?

Term
Assignment Statement
Definition
Statement that assigns a value to a name/variable.
Term
Comment
Definition

#

This is what in Python programming?

Term
Comment
Definition
Information in a program that is meant for other programmers, and has no effect on the execution of the program.
Term
Composition
Definition
Ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.
Term
Concatenate
Definition
Join to strings end-to-end.
Term
Data Type
Definition
Set of Values.
Term
Evaluate
Definition
To simplify an expression by performing the operations in order to yield a single value.
Term

Expression

Such as:

fryBowl = "May I help you?"

 

Definition

Combination of variables, operators, and values that represent a single result value.

Such as:

fryBowl = "May I help you?"

firstFinger = 302

Term
Float
Definition

Python data type which stores floating point numbers.

3.2345

29.9234

Term
int
Definition
Python data type that holds positive and negative whole numbers.
Term
Integer Division
Definition
An operation that divides one integer by another and yields an integer.
Term
Keyword
Definition
A reserved word that is used by th ecompiler to parse a program.
Term
Operand
Definition
One of the values on which an operator operates.
Term
Operator
Definition
Special symbol that represents a simple computation like addition, multiplication, or string concatentation.
Term
Rules of Precedence
Definition
Set of rules governing the order in which expressions involving multipe operators and operands are eveluateed.
Term
Statement
Definition
Instruction that the Python interpreter can execute.
Term

str

String

Definition
Python data type that holds a string of characters.
Term
Value
Definition
Number or string that can be stored in a variable or computed in an expression.
Term
Variable
Definition
Name that refers to a value.
Term
Variable Name
Definition
Name given to a variable.
Term
Function
Definition
A named sequence of statements that performs a computation.
Term

Type

 

type()

Definition
A function call that displays the type of a value.
Term
Argument
Definition
The expression that is between the () parentheses.
Term
Return Value
Definition
A function takes an argument and returns a result, this result is know as the?
Term
True
Definition

True or False

 

Python has a built-in function that can convert values from one type to another.

 

Like converting a string "32" into an integer.

Term
False
Definition

True or False

 

When you convert a floating-point value into an integer it rounds off the number.

 

Such as:

3.9999 -> 4

 

Term
Module Object
Definition

When you import a built-in object

such as:

(math, random, string)

this statement creates what?

Term
dot notation
Definition

When you call a function of a module object you are to call it as such:

math.log10()

random.sample()

This is called what?

Term
Function Definition
Definition
A name of a new function and the sequence of statements that execute when the function is called.
Term
def
Definition
Keyword that indicates something is a function definition.
Term

Header

 

Body

Definition

def assign_variables():      ->first line

y = 30

x = 24

 

First line after the function definition is called?

The remaining lines of the function definition is called?

Term

Colon

 

:

Definition
The header of the function definition must end with a what?
Term
Function Object
Definition

When you use def to define a new function such as:

def new_day():

new_day() is know as a?

 

Term
Flow of Execution
Definition
The order in which statements are executed.
Supporting users have an ad free experience!