into to computing
Card Set Information
into to computing
intro to computing
What is a computer?
A computer is a device that follows instructions for manipulating and storing data.
what is a computer program?
a computer program is a set of instructions that a computer follows to perform a task.
what is an algorithm?
An algorithm is a set of well-defined logical steps that must be taken in order to perform a task.
what is a machine language?
machine language is binary code. 10010010101001010111010010 for example.
what is a programming language?
a programming language uses words instead of numbers to represent instructions.
what kind of software do programmers use to translate English into machine language?
they use compilers and interpreters.
When writing a program, the most often made mistakes are the ones that include spelling errors and punctuation errors. what are these errors called?
what are properties in Alice?
properties are values that specify the objects characteristics.
what is a method?
a method is a set of programming statements that an object can execute.
what is a class?
a class is simply a description of a particular type of object, written in programming statements.
what is another way to refer to an object in programming?
another way to refer to an object in programming is an "instance of a class."
what is a bounding box?
a bounding box indicates that an object is selected.
what is dot notation?
dot notation is a way of organizing the name of an object in such a way as to present different information about that object. example
"world.my first method"
what is a primitive method?
primitive methods are those methods that are given to all objects.
What is an argument?
An argument is any piece of information that a method requires in order for it to execute.
when you call a method and provide any necessary arguments, it is called ______.
Passing the arguments.
what is a custom method?
A custom method is a method that only objects of a specific class have.
names are also known as ______ because they identify various items in a program.
when do you use camelCase and PascalCase?
camelCase is a naming convention used for object and method names.
PascalCase is a naming convention used for class names.
what is the programming cycle?
the programming cycle is
1. Design the program
2. Write the methods
3. Test the methods
4. Debug the methods
what is a programming statement?
A programming statement describes the objects that are to appear in the world and the actions that are to take place.
what is pseudocode?
Pseudocode is a way of writing the steps of an algorithm in English.
what is done in the debugging process?
the debugging process is when you determine how the methods must be corrected or modified in order for the world to meet the specified requirements.
what is a logical error?
a logical error also known as a bug, is a mistake that does not prevent the program from running, but causes it to produce incorrect results.
How do programers leave notes inside the program and why?
A programmer leaves "comments" inside the program so that others can understand what and why certain codes are there and what they are supposed to do.
What is a do together structure?
A "do together" structure allows multiple methods or functions to be executed at the same time.
what is a do in order structure?
A"do in order" structure is sometimes required to make multiple methods or functions to execute in chronological order.
What is a variable?
A variable is a storage location that is represented by a name.
what is a local variable?
a local variable belongs to a specific method.
what is a parameter variable used for?
A parameter variable is used to hold an argument that is passed to a method when the method is called.
What is a class-level variable?
a class-level variable is like a property that belongs to a specific object.
What is a world-level variable?
a world-level variable is like a property that belongs to the world.
Programmers use the term ________ to describe a statement that creates a variable.
What three things must you specify when creating a new variable?
Name, type, and value.
What is a function?
A function is a special type of method that returns a value back to the instruction that called the function.
What is a math operator?
A programmers tools for performing calculations are math operators such as "+ - / *"
The values on the right and left side of the operator are called _______.
What is a string?
A string is a sequence of characters.
When putting two different strings together, this is called "________."
Algorithms and programs commonly use Boolean values, which are either ____ or _____"
How many variables can a boolean variable hold?
two, true and false.
What does an if/else decision structure do?
An if/else decision structure executes one set of instructions if a boolean condition is true, or a different set of instructions if the boolean condition is false.
What is a sequence structure?
A sequence structure is when the instructions are executed in sequence, without branching off in another direction.
and if/else structure is also called a "______"
How is a decision structure represented on a flowchart?
It is represented by a diamond shape.
what is it called when an if/else structure is inserted into another if/else structure?
It is said to be nested.
What are relationship operators used for?
They are used to compare values and determine whether relationships such as greater than, less than, or equal to exist.
What is a loop?
A loop is an instruction that causes one or more other instructions to repeat a certain number of times.
When creating a loop, what kind of structure do you create?
You create a
How can you specify the number of repetitions in a loop?
you can use a variable or a function call. `
A loop that tests its condition before it performs a repetition is called a "______."
A type of pretest loop is called a ______?