Computer Programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

IDE (Integrated
Development
Environment)

A

Software for building applications that combines
common developer tools in a single interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Interpreted Language

A

Source code is read and executed by an interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Compiled Language

A

Source code is translated into machine code, and the
machine code is stored in a separate file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

High-Level Language

A

Programming Language that enables a programmer to
write programs that are closer to human language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Low-Level Language

A

Programming language that contains basic
instructions recognized by a computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Syntax Error

A

Error which is detected and prevents the program
from running.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Run-Time Error

A

Error in the code that occurs while the program is
running

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Logic Error

A

Mistake in the code that produces incorrect results.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Debugging

A

Finding and fixing problems in an algorithm or program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

White Space

A

Blank lines and extra spacing to improve readability of
code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Identifiers

A

Names given to variables, constants, methods, and
functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Variable

A

A named value within a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Function

A

A named group of programming instructions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Constant

A

Data values that stay the same every time a program is
executed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Camel Case

A

Naming convention where the first letter of name is
lowercase, and each new word is capitalized.
(camelCase)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Pascal Case

A

Naming convention where the first letter of each
compound word is capitalized. (PascalCase)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Snake Case

A

Naming convention where spaces are replaced with
underscores. (snake_case)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Software Development
Life Cycle

A
  1. Requirements Analysis - Identify
    specifications and understand requirements to create
    a solution.
  2. Planning/Design - Design an algorithm to solve
    the problem using appropriate documentation
    (UML diagrams and pseudocode).
  3. Implementation - Write the code
  4. Testing - Test program for verification of errors
    and proper functionality.
  5. Release & Maintenance - Release the solution and
    provide updates when necessary.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Algorithm

A

A finite set of instructions that accomplish a task.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Scope

A

Determines the accessibility (visibility) of variables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Local Variable

A

Only recognized inside the function in which it is
declared.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Global Variable

A

Recognized from anywhere inside a program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Input

A

The information computers get from users, devices,
or other computers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Output

A

The information computers give to users, devices, or
other computers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

String

A

An ordered sequence of characters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Integer

A

A data type that is used for a whole number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Boolean

A

A data type that is either true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Float

A

A data type that is used for fractional values in
decimal format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Declaration

A

Stating the name and data type of a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Initialization

A

Assignment of an initial value for a variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Arithmetic Operators

A

Includes addition, subtraction, multiplication, division, and
modulus operators.

32
Q

Comparison Operators

A

<, >, ≤, ≥, ==, ≠ indicate a Boolean expression.

33
Q

Order of Operations

A

Parenthesis, exponents, multiplication, modulus,
division, addition, subtraction (PEMMDAS).

34
Q

Logical Operators

A

NOT, AND, and OR, which evaluate to a Boolean value.

35
Q

Expression

A

A combination of operators, constants, and variables.

36
Q

Integer Division

A

Division in which the fractional part (remainder)
is discarded

37
Q

Float Division

A

Division in which the fractional part (remainder) is included with a certain number of values after the
decimal.

38
Q

Function

A

A named group of programming instructions

39
Q

Readability

A

The ease with which the code is read and understood.

40
Q

Reusability

A

Capability of being used again or repeatedly.

41
Q

Modularity

A

Enables reusability and minimizes duplication.

42
Q

Abstraction

A

Hiding unnecessary details from the user.

43
Q

Built-In Function

A

Any function that is provided as part of a high-level language and can be executed by a simple reference with specification of arguments.

44
Q

User-Defined Function

A

A function created by the user.

45
Q

Arguments

A

The variables given to the function for execution.

46
Q

Parameters

A

The names listed in the method/function’s definition.

47
Q

Return

A

A value that is sent back to the user by a
method/function.

48
Q

Void Return

A

Indicates that the function does not return a value

49
Q

Simple Data Types

A

char, string, integer, float, double, boolean.

50
Q

Complex Data Types

A

enumeration, array, list, object.

51
Q

Conditional Statement

A

Decision making based on a Boolean value

52
Q

Nested IF Statement

A

An if statement placed inside another if statement.

53
Q

For Loop

A

Initial Value
Condition
Increment/Decrement

54
Q

While Loop

A

Loops through a block of code as long as a
specified condition is true

55
Q

Nested Loop

A

A loop placed inside another loop

56
Q

Break

A

Statement used to immediately terminate a loop.

57
Q

Met Condition

A

Expression evaluates to true.

58
Q

Failed Condition

A

Expression evaluates to false.

59
Q

Iterate

A

Each cycle through a loop.

60
Q

Infinite Loop

A

A loop that, due to a logic error, will continue endlessly

61
Q

Complex Condition

A

Formed by combining multiple conditions with logical operators

62
Q

Exit Condition

A

Used to exit a loop.

63
Q

Computer
Programming/Software
Engineering Team

A

Team Leader
Analyst
Senior Developer
Junior Developer
Client/Subject-Matter Expert

64
Q

a = expression

A

Evaluates expression and then assigns a copy of the result to the variable a

65
Q

DISPLAY(expression)

A

Displays the value of (expression) in the console window

66
Q

INPUT( )

A

Accepts a value from the user and returns the input value

67
Q

a + b
a - b

A

The arithmetic operators +, -, *, and / are used to perform
arithmetic on a and b.

68
Q

a * b
a / b

A

For example, 17 / 5 evaluates to 3.4.
The order of operations used in mathematics applies
when evaluating expressions.

69
Q

a MODULUS b
-or
a MOD b

A

Evaluates to the remainder when a is divided by
b. For example, 17 MOD 5 evaluates to 2.
MODULUS (MOD) has the same precedence as the * and
/ operators.

70
Q

NOT condition

A

Evaluates to true if condition is false; otherwise evaluates
to false.

71
Q

condition1 AND
condition2

A

Evaluates to true if both condition1 and condition2 are true;
otherwise evaluates to false.

72
Q

condition1 OR
condition2

A

Evaluates to true if condition1 is true or if condition2 is true
or if both condition1 and condition2 are true; otherwise
evaluates to false.

73
Q

FOR(condition)
{

<block>
}
</block>

A

The code in <block> is executed a certain
number of times.</block>

74
Q

WHILE(condition)
{

<block>
}
</block>

A

The code in <block> is repeated until the
(condition) evaluates to false.</block>

75
Q

IF(condition1)
{

<first>
{
ELSE IF(condition2) {
<second>
}
ELSE
{
</second></first>

A

If (condition1) evaluates to true, the code in <first> is executed; if (condition1) evaluates to false,
then (condition2) is tested; if (condition2) evaluates to true, the code in <second> is executed; if both (condition1) and (condition2) evaluate to false, then the code in <third>
is executed.</third></second></first>

76
Q

PROCEDURE procName( )

A

Defines procName as a procedure that takes no arguments.
The procedure contains <block>.
The procedure procName can be called using the
following notation:
procName( )</block>