• 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/42

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;

42 Cards in this Set

  • Front
  • Back
IDE
Integrated Development Environment

What is a computer program?

A computer program is a sequence of instructions that specifies how to perform a computation.

Statements
The instructions given to a computer in the form of programming code.
What are the 5 basic functions that most computer programming languages can perform?
Input, Output, Math, Testing, and Repetition.
Input
A computer obtains data from the keyboard, a file, or some other device.
Output
A computer may display data on a screen or send data to a file or other device.
Math (as a computer operation)
A computer may perform basic mathematical operations like addition and multiplication.
Testing (as a computer operation)
A computer may check for certain conditions and execute the appropriate sequence of statements.
Repetition (as a computer operation)
A computer may perform some action repeatedly, usually with some variation.
Programming
The process of breaking a large, complex task up into smaller and smaller subtask until eventually the subtasks are simple enough to be performed with one of the basic computer operations (input, output, math, testing, and repetition).
What's the single most important skill for a computer scientist?
Problem solving
Debugging
The process of tracking down programming errors and fixing them.
Compile-time Errors
Errors that occur when a program is being compiled.
Run-time Error
Errors that don't occur until a program is running.

Syntax Error

Errors that occur when programming code is not written according to the rules of that particular programming language.



The result will be that a computer will not understand any statement (code) that is not properly written.

Logic Errors (Semantics)
Logic errors occur when code is written that causes a computer to execute the code in a way that was not intended. Computers do exactly what their instructed to do, meaning that logic errors are caused by an incorrect set of instructions provided to the computer through written code.
Programming Language
A formal language designed to express computations.
Self-Commenting Code
Code that is so descriptive and obvious that comments are rarely if ever needed. Write self-commenting code by using descriptive words for all variable names and method names, using strongly typed and well-defined variables, and encapsulating complex functionality into easy-to-describe functions. This leads to less reliance on commenting. Self-commented code should ideally be understandable even by a non-programmer.
typed language
That means that every object (variable) is assigned a data type, which determines what kind of variable it is and what data it stores.

Unary Operator

Some operations are applied to a single argument, such as the increment operator (++).

Loop
Loops are control structures that allow you to repeat a block of code multiple times, often while progressing through some set of data.

Stack Overflow

A stack overflow occurs when too much memory is used on the call stack.

Operand

A value used on either side of an operator.

String

an object that represents a sequence of characters.

Conditional Statement

Conditional statements are used to perform different actions based on different conditions.

Do While Loop

A Do while loop runs code at least once, even if the condition being tested is false.

While Loop

A While Loop tests the condition before running the code.

Array

An array is a collection of elements of the same type.

Index

The position of an element in an array

What are the three dimensions of Object Oriented Programming?

identity, attributes, and behavior

Class

A class describes what an object will be, but is separate from the object itself.

Atrribute

An attribute describes the current state of an object; also called characteristics.

Behavior

Behavior is specific to an object's (variable's) type.

Identity

A particular instance of an object. Each instance of an object has a unique identity.

Object-Oriented Programming (OOP)

A programming methodology based on objects, instead of just functions and procedures.

Method

Also called a function, a method is a collection of statements that are grouped together to perform an operation.

Methods define...

behavior

What happens when you declare a variable

1) Declare the variable 2) allocate space in memory 3) initialize the variable with a value

What is an instance variable?

An instance variable is a variable defined in a class (a member variable).



An instance variable is similar to a class variable.

The call stack contains...

...a limited amount of memory, often determined at the start of the program. The size of the call stack depends on many factors, including the programming language, machine architecture, multi-threading, and amount of available memory.This class of software bug is usually caused by one of two types of programming errors: Infinite recursion and Very large stack variables.

Algorithm

A step by step set of instructions

Boolean Expression

A piece of information that is true or false, yes or no.