1/61
Comprehensive vocabulary flashcards covering fundamental computer programming concepts, language histories, syntax, data types, operators, flow control, functions, arrays, strings, and file input/output.
Computer Program
A sequence of instructions written using a computer programming language to perform a specified task by the computer.
Sequence of Instructions
A set of instructions in a computer program that are executed one after another in a specific order.
Program Source Code
The instructions of a computer program written by a programmer before being compiled or executed.
Programmer
A person with the training and skills necessary to design, create, and test computer programs; also called a software developer.
Computer Programming Language
A set of symbols, characters, words, and grammar rules that permit people to construct instructions in a format interpretable by a computer system.
FORTRAN
An acronym for FORmula TRANslator, designed in the 1950s for complex mathematical calculations as the first high-level programming language.
COBOL
An acronym for Common Business-Oriented Language, created in the 1950s and designed specifically for business applications.
BASIC
An acronym for Beginners All-purpose Symbolic Instruction Code, designed in the early 1960s to be simple enough for beginners to learn.
Ada
A programming language created in the 1970s primarily for the U.S. Department of Defense, named in honor of Countess Ada Lovelace.
Pascal
A language created in 1970 designed for teaching programming, named in honor of Blaise Pascal.
Text Editor
A software application used to write computer programs and save source code in text files.
Compiler
A software tool that converts a program written in text format into a binary format file that the computer can understand and execute.
Program Compilation
The process of converting a text-formatted program file into a binary format file using a compiler.
Interpreter
A software program that reads source code line by line and executes it directly without prior conversion into a binary format file.
main Function
The entry point function in every C program from which program execution begins.
Program Body
The block of code statements located between the opening and closing curly braces of a function.
Comments
Program text enclosed within delimiters such as /* … */ that is ignored by compilers and interpreters, used to make code easier to understand.
Whitespaces
Characters that remain invisible in program text, specifically spaces, tabs (\t), and new lines (\n).
Blank Line
A line in program source code containing only whitespace characters, possibly with a comment, which is ignored by the compiler.
Syntax Error
An error produced when source code violates the grammatical and formatting rules established by a programming language.
Data Type
A representation of the type of data (such as numeric, alphanumeric, or decimal) that a computer program processes.
Primitive Data Types
The fundamental built-in data types (such as char, int, short, long, and float) used to represent basic values and construct complex data types.
User-Defined Data Type
A custom or complex data type constructed by a programmer using primitive data types, such as a string made of characters.
char
A primitive data type consuming 8 bits of memory with a representable value range of −128 to 127 or 0 to 255.
int
A primitive data type used for whole numbers, representing values in the range of −32,768 to 32,767 or −2,147,483,648 to 2,147,483,647.
short
A primitive numeric data type representing small integers in the value range of −32,768 to 32,767.
long
A primitive numeric data type representing long integers in the value range of −2,147,483,648 to 2,147,483,647.
float
A primitive data type used to represent decimal numbers ranging from 1.2×10−38 to 3.4×10+38 with precision up to 6 decimal places.
Variable
A named location in computer memory used to store values during the execution of a program.
Variable Declaration
The statement that creates a variable, specifying its name and data type to reserve the appropriate memory location before use.
Reserved Keywords
Predefined, reserved words in a programming language that have special meanings and cannot be used as variable names.
Operator
A symbol that directs a compiler or interpreter to perform a specific mathematical, relational, or logical operation.
Operands
The data values, variables, or expressions on which an operator performs its operation.
Arithmetic Operator
A symbol (such as +, -, *, /, or %) used to perform standard mathematical calculations on operands.
Modulus Operator (%)
An arithmetic operator that evaluates two operands and produces the remainder of an integer division.
Relational Operator
A symbol (such as ==, !=, >,
Logical Operators
Operators (&&, ||, !) used to combine or negate conditions to make decisions in a program.
Logical AND (&&)
A logical operator that yields true if and only if both evaluated operands are non-zero.
Logical OR (||)
A logical operator that yields true if at least one of the two evaluated operands is non-zero.
Logical NOT (!)
A logical operator that reverses the logical state of its operand, turning a true condition false.
if…else Statement
A conditional decision structure that executes one block of code if a condition is true and an alternative else block if it is false.
switch Statement
A decision-making statement that tests a variable or integer expression for equality against a list of specific cases.
Loop
A control structure that allows a program to execute a statement or group of statements repeatedly up to a desired number of times.
while Loop
A pre-test loop structure that evaluates a condition before executing its body, repeating as long as the condition evaluates to true.
do…while Loop
A post-test loop structure that executes its body first before evaluating the condition, guaranteeing at least one execution.
break Statement
A control statement that immediately terminates a loop or switch construct and transfers control to the next sequential statement.
continue Statement
A control statement that skips the remainder of the current loop iteration and proceeds immediately to the next iteration.
floor Function
A standard mathematical function (double floor(double);) that returns the largest integer less than or equal to the argument passed to it.
fabs Function
A standard mathematical function (double fabs(double);) that returns the absolute value of any floating-point decimal number passed to it.
Character Literal
A single alphabet letter, digit, or special character enclosed within single quotes.
Escape Sequence
A character combination preceded by a backslash () that carries a non-literal, special meaning to the compiler.
Array
A data structure that stores a fixed-size collection of elements of the same data type in contiguous memory locations.
Base Index
The index assigned to the very first element in an array, which is always equal to 0.
String (in C)
A sequential array of character data types ending with a terminating null character (\0).
Null Character ('\0')
A special delimiter character automatically appended to the end of a C string to indicate where the string terminates.
Function Signature
The unique combination consisting of a function's name along with its ordered parameter list.
Parameter
A placeholder variable specified in a function header that receives an incoming argument value when the function is invoked.
Computer File
A digital storage unit used to keep data such as plain text, images, or programs in an organized file structure.
Append Mode
A file opening mode ('a') that preserves existing content and writes new data exclusively at the end of the file.
fopen
A C library function that creates or opens a file and returns a pointer to a FILE stream object.
fclose
A C library function that flushes pending buffer data, closes an open file stream, and releases its associated memory.
EOF
A constant integer defined in stdio.h returned by standard input/output functions to signify an error or the end of a file stream.