CC103 Computer Programming 1 – Units 1 to 3: Introduction to Programming, Program Logic Formulation, and Java Basics

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

1/52

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering key terms and definitions from the lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

53 Terms

1
New cards

Programming

The process of designing a structured plan and translating it into a sequence of actions that must be followed in order using appropriate tools and components to solve a problem.

2
New cards

Computer Programming

The process of planning and writing a sequence of instructions in logical order for a computer to execute, turning data into meaningful information to build a complete solution.

3
New cards

Data Processing Cycle

A set of steps the computer follows to receive data, process it according to program instructions, display the results, and store the results.

4
New cards

Algorithm

A set of well defined instructions to solve a particular problem; it takes inputs and produces outputs.

5
New cards

Pseudocode

A simpler version of programming code written in plain English that outlines code for a program before implementing it.

6
New cards

Flowchart

A diagrammatic representation of the sequence of operations to solve a problem.

7
New cards

Terminal

Start and End symbols in a flowchart.

<p>Start and End symbols in a flowchart.</p>
8
New cards

Input/Output

Symbols used to represent input and output in flowcharts.

<p>Symbols used to represent input and output in flowcharts.</p>
9
New cards

Process

A symbol representing a processing step or operation.

<p>A symbol representing a processing step or operation.</p>
10
New cards

Decision

A symbol representing a conditional branch based on a test.

<p>A symbol representing a conditional branch based on a test.</p>
11
New cards

Off-page Connector

A connector symbol used to link flowcharts across pages.

<p>A connector symbol used to link flowcharts across pages.</p>
12
New cards

On-page Connector

A connector symbol used to join flowchart sections on the same page.

<p>A connector symbol used to join flowchart sections on the same page.</p>
13
New cards

Predefined Process

A symbol for a sub process with a named procedure.

<p>A symbol for a sub process with a named procedure.</p>
14
New cards

Program Development Process

Phases to solve problems: understand the problem, develop a solution, implement, test, document, and maintain.

15
New cards

Black Box Testing

Testing the program without knowledge of its internal structure; focuses on inputs and outputs based on requirements.

16
New cards

White Box Testing

Testing the program with knowledge of its internal structure; analyzes code paths and logic.

17
New cards

Documentation

provided with the finished program, including information about requirements, operating system, and hardware needs.

18
New cards

Maintenance

Updating and keeping the program running smoothly as requirements and technologies change.

19
New cards

Programming Languages

A vocabulary and set of rules for instructing a computer to perform tasks, each with its own keywords and syntax.

20
New cards

Syntax

The set of grammatical rules for writing statements in a programming language.

21
New cards

Semantics

The meaning associated with a statement or code in a programming language.

22
New cards

Compiler

A tool that translates a program written in a programming language into machine readable form before execution.

23
New cards

Interpreter

A tool that translates high level instructions into machine language at runtime.

24
New cards

Source Program

The original program written in a high level language.

25
New cards

Object Program

The machine language version of a program produced by a compiler as an object file.

26
New cards

Class

A blueprint for creating objects in object oriented programming; defines attributes and methods.

27
New cards

Object

An instance of a class that has its own data and can perform actions via its methods.

28
New cards

Method

A function defined within a class that operates on the object’s data and defines its behaviors.

29
New cards

Procedural Programming

A programming style that uses a sequence of instructions and procedures or subroutines in a top down, imperative approach.

30
New cards

Object-Oriented Programming (OOP)

An approach where computations are carried out using objects, which have attributes and methods to interact with other objects.

31
New cards

Java

An object oriented, platform independent programming language originally developed by Sun Microsystems.

32
New cards

Java Virtual Machine (JVM)

Software that executes Java bytecode by translating it to machine language; platform independent.

33
New cards

Java Bytecode

The machine language for the JVM produced by compiling Java source; executed by the JVM.

34
New cards

Phases in Processing a Java Program

Edit, Compile, Load, Verify, and Execute phases for running a Java program.

35
New cards

Reserved Words (Keywords)

Words with special meaning in Java that cannot be used as identifiers (examples include public, class, static, void, int, char).

36
New cards

Identifiers

Names used for variables, classes, methods, or objects; rules include letters, digits, and underscore, and cannot start with a digit or underscore.

37
New cards

Variable

A memory location that holds a value; must be declared with a data type.

38
New cards

Data Type

Defines the set of values a variable can hold and how memory is allocated for it.

39
New cards

Variable Declaration

Syntax to declare a variable, for example: datatype identifier; e.g., int x;

40
New cards

Boolean

A data type with values true and false.

41
New cards

Character

A data type for single characters, e.g., char type.

42
New cards

Integer

A data type for whole numbers, e.g., int.

43
New cards

Floating Point

A data type for numbers with fractional parts, e.g., float or double.

44
New cards

Void

A data type indicating no value is returned by a function.

45
New cards

Operator

A symbol that tells the compiler to perform a specific operation on operands.

46
New cards

Assignment Operator

The sign = used to assign the value of an expression to a variable.

47
New cards

Arithmetic Operators

Operators for numeric calculations: +, −, ×, ÷, % and unary + and −; also ++ and -- for increment and decrement.

48
New cards

Compound Assignment Operators

Operators like +=, -=, *=, /=, % = that combine an operation with assignment.

49
New cards

Operator Precedence

Rules that determine the order of evaluation in expressions; ×, ÷, % have higher precedence than + and −; same precedence is evaluated left to right.

50
New cards

Relational Operators

Operators that compare values: <, >, <=, >=, ==, != and yield true or false.

51
New cards

Logical Operators

Operators for combining boolean values: && (and), || (or), ! (not).

52
New cards

Boolean Expression

An expression that evaluates to true or false.

53
New cards

Arithmetic Expression

An expression used for calculations and mathematical manipulation.