Unit 1: Introduction to Program Planning & C Programming

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/50

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering Unit 1 concepts: Program Design Tools, Algorithms, Flowcharts, History and Features of C, Character Sets, Tokens, Data Types, Storage Classes, Constants, and Qualifiers.

51 Terms

1
New cards

Program Design

The process of creating a plan or a set of instructions for a computer program that will enable it to solve a particular problem.

2
New cards

Algorithm

A precise, step-by-step set of ordered instructions written in simple English language for solving a computational problem.

3
New cards

Finiteness (Algorithm Characteristic)

The requirement that an algorithm must always terminate after executing a finite number of steps.

4
New cards

Definiteness (Algorithm Characteristic)

The requirement that each individual step of an algorithm must be stated clearly and precisely.

5
New cards

Effectiveness (Algorithm Characteristic)

The requirement that every step must be easily convertible into a program statement and executable exactly in a finite amount of time.

6
New cards

Generality (Algorithm Characteristic)

The property that an algorithm must be complete in itself so that it can be applied to solve all problems of a given type for any input data.

7
New cards

Flowchart

A graphical or pictorial representation of an algorithm that maintains the sequence of steps using standard symbols and directed lines.

8
New cards

Terminal Symbol (Flowchart)

An oval-shaped symbol used to denote the start, stop, begin, or end of a flowchart.

9
New cards

Input/Output Symbol (Flowchart)

A parallelogram symbol used in a flowchart for making data available for processing (input) or recording processed information (output).

10
New cards

Process Symbol (Flowchart)

A rectangular symbol in a flowchart that denotes any processing operation, including assignment operations.

11
New cards

Decision Symbol (Flowchart)

A diamond-shaped symbol that indicates a decision or switching operation to determine which alternative execution path to follow.

12
New cards

Connector (Flowchart)

A circular symbol used to connect different, separate parts of a flowchart.

13
New cards

Flow Lines (Flowchart)

Arrows that join two flowchart symbols to show the sequence and direction of execution flow.

14
New cards
<p>Area of Circle Flowchart</p>

Area of Circle Flowchart

A sequential flowchart that takes Radius as input, computes Area=3.14×Radius×Radius\text{Area} = 3.14 \times \text{Radius} \times \text{Radius}, displays the area, and terminates.

15
New cards
<p>Even or Odd Flowchart</p>

Even or Odd Flowchart

A branching flowchart that reads a number, evaluates if Number%2==0\text{Number} \% 2 == 0 using a decision diamond, and displays 'Even Number' if yes or 'Odd Number' if no.

16
New cards

Dennis Ritchie

The computer scientist who designed and wrote the C programming language at AT&T's Bell Laboratories in USA in 19721972.

17
New cards

ALGOL 60

A language developed in 19601960 by an International Committee for commercial, scientific, and system applications that failed to become popular because it was too abstract and too general.

18
New cards

Combined Programming Language (CPL)

A programming language developed at Cambridge University to reduce the abstractness of ALGOL 60, but was hard to learn and difficult to implement due to its large size.

19
New cards

Basic Combined Programming Language (BCPL)

A programming language developed by Martin Richards in 19671967 at Cambridge University to solve the problems of CPL; it was less powerful and too specific.

20
New cards

B Language

A programming language written around 19701970 by Ken Thompson that was also considered too specific.

21
New cards

Middle-Level Language

A description of C indicating that it bridges high-level and low-level concepts by combining features of BASIC and PASCAL with the direct manipulation of bits, bytes, and memory addresses.

22
New cards

Alt+F9

The keyboard shortcut key used to compile a program in a C development environment.

23
New cards

Ctrl+F9

The keyboard shortcut key used to run an executable program in a C development environment.

24
New cards

C Token

The smallest indivisible atomic unit in a C program recognized by the compiler, including keywords, identifiers, constants, strings, special symbols, and operators.

25
New cards

Keywords

Predefined reserved words in C (exactly 3232 in ANSI C) that carry a fixed, special meaning to the compiler and must always be written in lowercase.

26
New cards

Identifiers

User-defined names assigned to variables, functions, structures, and arrays consisting of letters, digits, and underscores, whose first character must be an alphabet or underscore.

27
New cards

Constants

Fixed values that do not change during the execution of a program.

28
New cards

Integer Constant

A numeric constant consisting of a sequence of digits with at least one digit, no decimal point, and an allowable range of −32768-32768 to +32767+32767 on a 16-bit16\text{-bit} machine.

29
New cards

Octal Integer Constant

An integer constant consisting of any combination of digits from the set 00 through 77, preceded by a leading 00.

30
New cards

Hexadecimal Integer Constant

An integer constant that starts with 0x0x or 0X0X followed by a combination of digits 00 through 99 and letters AA through FF (or aa through ff).

31
New cards

Real Constants

Numeric constants with a fractional part separated by a decimal point or written in exponential notation (mantissa e exponent\text{mantissa } e \text{ exponent}) to express continuous values.

32
New cards

Single Character Constant

A single alphabet, digit, or special symbol enclosed within a pair of single quotation marks, which carries a corresponding integer ASCII value.

33
New cards

String Constant

A sequence of characters enclosed within double quotation marks that is automatically terminated by the compiler with a null character (\0).

34
New cards

Escape Sequence

A backslash character constant consisting of two characters beginning with \ that functions as a single character in output operations (e.g., \n for new line, \t for horizontal tab).

35
New cards

Variable

A named data storage location that can hold a value and whose value can vary or change at different times during program execution.

36
New cards

Initialization

The process of assigning an initial value to a variable at the time it is declared in a program.

37
New cards

Data Type

A storage format specification in C that determines the type, legal range of values, and memory requirement allocated for a variable or function.

38
New cards

Primary Data Types

The fundamental built-in data types supported by C compilers: integer (int), character (char), floating-point (float), double-precision floating point (double), and void.

39
New cards

void Type

A primary data type that has no values, commonly used to indicate that a function does not return any value to the calling routine.

40
New cards

typedef

A C feature and keyword that allows users to define a meaningful identifier alias representing an existing data type to enhance program readability.

41
New cards

enum (Enumerated Data Type)

A user-defined data type where variables can only take values from a specified list of enumeration constants, which are assigned consecutive integer values automatically beginning with 00.

42
New cards

Storage Class

A specification in C that determines the location, visibility (scope), default value, and lifetime of a variable.

43
New cards

Local Variable

A variable declared inside a function block that is stored in the stack, has local scope, defaults to a garbage value, and is destroyed when function execution terminates.

44
New cards

Global Variable

An external variable declared outside all functions that resides in the data segment, has program-wide scope, defaults to 00, and exists throughout program execution.

45
New cards

auto (Storage Class)

The default storage class for local variables, allocated in internal memory with local scope, a garbage default value, and lifetime limited to its enclosing block.

46
New cards

static (Storage Class)

A storage class specifier that retains a variable's value across multiple function calls throughout the runtime of the program, initialized to 00 by default.

47
New cards

extern (Storage Class)

A storage class specifier declaring a global variable that is stored in internal memory, has global visibility across functions, and persists as long as the program runs.

48
New cards

register (Storage Class)

A storage class specifier that requests a variable to be stored directly in a CPU register rather than internal RAM for faster execution speed.

49
New cards

Symbolic Constant (#define)

A constant defined via the #define preprocessor directive without a data type or trailing semicolon, used to enhance program modifiability and understandability.

50
New cards

const Qualifier

An ANSI C type qualifier used during variable declaration to inform the compiler that the variable's value must remain constant and cannot be modified by the program.

51
New cards

volatile Qualifier

A type qualifier notifying the compiler that a variable's value may be altered at any time by external sources outside the program, requiring it to be re-evaluated each time it is accessed.