University of Alabama- MIS 221 - Lucas- Spring 2020

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/78

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

79 Terms

1
New cards

Flowchart

a visual diagram of the sequence of operations in a computer program

2
New cards

Algorithm

a step-by-step procedure for solving a problem, written more like everyday spoken language than like coding

3
New cards

IPO/IPO Chart

Stands for (Input/Process/Output). A chart or table used to

4
New cards

Processing Item

an intermediate value (neither input nor output) that an algorithm uses when processing the input into the output

5
New cards

Pseudocode

Shorthand notation for programming which uses a combination of informal programming structures and verbal descriptions of code.

6
New cards

Control Structure

one or more programming language statements that control the flow of a computer program. SEQUENCE, SELECTION, REPETITION

7
New cards

Selection

A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

8
New cards

Flowchart symbols

Oval - Begin or end
Rectangle - Process
Parallelogram - Input/Output
Diamond - Decision
Arrow - Direction of Flow
Circle- Used to connect separated charts on the same page
Pentagon- Used to connect separated charts on different pages

9
New cards

While Loop

a programming construct used to repeat a set of commands (loop) as long as a boolean condition (while) is true. This is a CONDITION based construct.

10
New cards

For Loop

A typical looping construct designed to make it easy to repeat a section of code using a counter variable. The for loop combines the creation of a variable, a boolean looping condition, and an update to the variable in one statement. This is a COUNT based control structure.

11
New cards

Program

Provide a computer or other machine with coded instructions for the automatic performance of a particular task.

12
New cards

Software

written programs or procedures or rules and associated documentation pertaining to the operation of a computer system and that are stored in read/write memory. Cannot be physically touched.

13
New cards

Hardware

The machines, wiring, and other physical components of a computer or other electronic system. Can be physically touched.

14
New cards

Machine Language

The way a computer understands instructions at the base level. Binary code made up of 0s and 1s; usually this is data converted from a high-level language by a compiler. Often used as a synonym for low-level programming language.

15
New cards

Assembly Language

Programming language that has the same structure and set of commands as machine languages but allows programmers to use symbolic representations of numeric machine code. These were the early versions of software languages used by programmers, not commonly used anymore.

16
New cards

High-Level Language

A programming language like Python or C# that is designed to be easy for humans to read and write.

17
New cards

Source Code

A text listing of commands to be compiled or assembled into an executable computer program. Source code is what you type into C#.

18
New cards

RAM

Random Access Memory; temporary memory. RAM is expandable, and resides on the motherboard. This is a VOLATILE memory storage area.

19
New cards

Assembler

A program that translates an assembly-language program into machine language/code

20
New cards

Compiler

A program that translates code in a high-level language (such as Java) to machine instructions (such as binary).

21
New cards

Interpreter

Converts a program written in a higher level language into a lower level language and executes it, beginning execution before converting the entire program.

22
New cards

Syntax

states the rules for using words, phrases, clauses and punctuation. Correct syntax examples include word choice, matching number and tense, and placing words and phrases in the right order.

23
New cards

Syntax Error

a character or string incorrectly placed in a command or instruction that causes a failure in execution. (examples: misspelling a word, incorrect cases, forgetting a semicolon)

24
New cards

Logic Error

program runs but does the wrong thing

25
New cards

Compilation Error

when a program does not compile because of syntax errors or lexical errors

26
New cards

Runtime Error

An error that does not occur until the program has started to execute but that prevents the program from continuing.

27
New cards

Variable Declaration Statement

the form that introduces a new variable name and its data type in a program (int x;)

28
New cards

Variable Initialization

Assigning a value to a variable at declaration is called ( int x ==2;)

29
New cards

Variable

A symbol used to represent a quantity that can change

30
New cards

Naming Convention

a way of capitalizing letters to define if an item is a method, variable, or constant. For example PascalCase for methods and camelCase for variables.

31
New cards

What naming convention is used for a variable?

camelCaseIsUsed

32
New cards

What naming convention is used for a method?

PascalCaseIsUsed

33
New cards

What naming convention is used for a constant?

ALL_CAPS_WITH_UNDERSCORE

34
New cards

Variable Assignment

an instruction that sets a value to a variable that already exists within the program

35
New cards

Calculations

a problem using numbers (or variables with assigned numbers) and operators (add, subtract, multiply, divide, etc)

36
New cards

Data types: String

Allows any combination of letters, numbers and spaces. In C# all inputs come in as strings unless otherwise parsed.

37
New cards

Data types: Integer

Stores positive or negative whole numbers

38
New cards

Data Types: Double

stores positive or negative whole numbers and decimals

39
New cards

Named Constant

is an identifier that represents a permanent value. The value of a variable may change during the execution of a program; but a Named Constant (or just Constant) represents permanent data that never changes. For ex: π is always 3.14...)

40
New cards

Hand Tracing

is a method for hand simulating the execution of your code in order to manually verify that it works correctly before you compile it. Draw a table with each variable in the program shown at the top of the column.

41
New cards

Comments

a way of making notations within your code to let other programmers know what is going on. Use "//" to make a comment in C#.

42
New cards

Type of Method: Void

this is a type of method that does not return anything to the main method. It can display things on the screen and produce outputs, but will not return any values to another method.

43
New cards

Type of Method: Value Returning

This type of method returns a value to the method from which it was called. The value returned can be any type, such as a string or integer or double.

44
New cards

Passing by Value

refers to the process of passing a copy of a variable's value to another procedure/ method

45
New cards

Passing by Reference

refers to the process of passing a variable's address to a procedure so that the value in the variable can be changed. Changes the original instead of making a copy to change.

46
New cards

Calling a Method

makes a method call that invokes/begins the called method

47
New cards

Defining a Method

The entire portion of a method within the code. Includes everything from the method header and everything within { }

48
New cards

Method Body

Everything between {} of a method

49
New cards

Method Header

the first line of the method and contains information about how other methods can interact with it.
For example: "string void UpdateNumber(int x, int y)"

50
New cards

Method Signature

The name of a method, along with its number and type of parameters.
For example: "UpdateNumber(int x, int y)"

51
New cards

Method Overloading

The ability to define two or more different methods with the same name but different method signatures. (Like having two humans with the same name, they may have the same name, but they are different methods)

52
New cards

Variable Scope

dictates what portions of the code can "see" or use a variable, typically derived from where the variable was first created.

53
New cards

Parameter

the variables within a method header/method signature

54
New cards

Argument

variables that are sent to the method, found within the line of code that calls the method

55
New cards

Passing Arguments

The act of sending arguments (variables) to a method.

56
New cards

Return Statement

causes a value to be sent from the called method back to the calling method

57
New cards

Single Alternative Decision Structure

provides only one alternative path of execution (ex. an "if" statement)

58
New cards

Dual Alternative Decision Structure

has two possible paths of execution, one path is taken if the condition is true and the other path is taken if the condition is false (ex. "if/else" statement)

59
New cards

Multiple Alternative Decision Structure

Allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute. (ex. Case/Switch structure, or a multiple If/Else statement)

60
New cards

Relational Operators

Used to compare two values. Operators include =,<,>,<=,>=,<> (ex. also includes nested if statements)

61
New cards

Logical Operators

&& [and]
|| [or]
! [not]

62
New cards

Truth Table

A table used as a convenient method for organizing the truth values of statements

63
New cards

Truth Table for AND

Reads left to right. With an AND statement if even one is false then statement is false.

<p>Reads left to right. With an AND statement if even one is false then statement is false.</p>
64
New cards

Truth Table for OR

Reads left to right. With an OR statement, if even one is true then statement is true.

<p>Reads left to right. With an OR statement, if even one is true then statement is true.</p>
65
New cards

What kind of chart is this?

IPO Chart

<p>IPO Chart</p>
66
New cards

What kind of chart is this?

Flowchart

<p>Flowchart</p>
67
New cards

What is the output of this code:
int x = 5;
int y = 10;
while (x < 100)
{
x = x + y;
}
Console.WriteLine(x);

105

68
New cards

What is the output of this code:
int input = 0;
int sum = 0;
Console.WriteLine("Enter Number");
input = int.Parse(Console.ReadLine());
while(input != 999)
{
sum += input;
}
Console.WriteLine(sum);

infinite loop; no output

69
New cards

Sentinel Value

a preselected value that stops the execution of a program or loop (ex: "Type -1 to exit")

70
New cards

Boolean Operators

AND, OR, and NOT operators used in a query.

71
New cards

Short Circuit Techniques

The program reading an operator left to right. Purposefully putting the most volatile variable on the left of the operation to help the program evaluate it faster.

72
New cards

Counter-Controlled Loop

a loop whose processing is controlled by a counter; the loop body will be processed a precise number of times ("For" loop)

73
New cards

Condition-Controlled Loop

uses a true/false condition to control the number of times that it repeats. ("while" loops)

74
New cards

Pre-Test Loop

A loop that tests before deciding whether the execute its body. for and while are both pre-test loops.

75
New cards

Post-Test Loop

A loop that executes the body, then tests for the exit condition. An example of this would be a "do/while" loop

76
New cards

Priming Read or Priming the Loop

the input instruction that appears above the loop that it controls; used to get the first input item from the user

77
New cards

Update Read or Update the Loop

allows the user to update the value that controls the loop's condition. appears within the loop, usually at the end of the loop body

78
New cards

Infinite Loop

A loop in which the terminating condition is never satisfied. Usually because there is not an update read.

79
New cards

Nested Loop

A loop inside the body of another loop.

<p>A loop inside the body of another loop.</p>