Introduction to Computer Programming

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

1/61

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering fundamental computer programming concepts, language histories, syntax, data types, operators, flow control, functions, arrays, strings, and file input/output.

62 Terms

1
New cards

Computer Program

A sequence of instructions written using a computer programming language to perform a specified task by the computer.

2
New cards

Sequence of Instructions

A set of instructions in a computer program that are executed one after another in a specific order.

3
New cards

Program Source Code

The instructions of a computer program written by a programmer before being compiled or executed.

4
New cards

Programmer

A person with the training and skills necessary to design, create, and test computer programs; also called a software developer.

5
New cards

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.

6
New cards

FORTRAN

An acronym for FORmula TRANslator, designed in the 1950s for complex mathematical calculations as the first high-level programming language.

7
New cards

COBOL

An acronym for Common Business-Oriented Language, created in the 1950s and designed specifically for business applications.

8
New cards

BASIC

An acronym for Beginners All-purpose Symbolic Instruction Code, designed in the early 1960s to be simple enough for beginners to learn.

9
New cards

Ada

A programming language created in the 1970s primarily for the U.S. Department of Defense, named in honor of Countess Ada Lovelace.

10
New cards

Pascal

A language created in 19701970 designed for teaching programming, named in honor of Blaise Pascal.

11
New cards

Text Editor

A software application used to write computer programs and save source code in text files.

12
New cards

Compiler

A software tool that converts a program written in text format into a binary format file that the computer can understand and execute.

13
New cards

Program Compilation

The process of converting a text-formatted program file into a binary format file using a compiler.

14
New cards

Interpreter

A software program that reads source code line by line and executes it directly without prior conversion into a binary format file.

15
New cards

main Function

The entry point function in every C program from which program execution begins.

16
New cards

Program Body

The block of code statements located between the opening and closing curly braces of a function.

17
New cards

Comments

Program text enclosed within delimiters such as /* … */ that is ignored by compilers and interpreters, used to make code easier to understand.

18
New cards

Whitespaces

Characters that remain invisible in program text, specifically spaces, tabs (\t), and new lines (\n).

19
New cards

Blank Line

A line in program source code containing only whitespace characters, possibly with a comment, which is ignored by the compiler.

20
New cards

Syntax Error

An error produced when source code violates the grammatical and formatting rules established by a programming language.

21
New cards

Data Type

A representation of the type of data (such as numeric, alphanumeric, or decimal) that a computer program processes.

22
New cards

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.

23
New cards

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.

24
New cards

char

A primitive data type consuming 88 bits of memory with a representable value range of −128-128 to 127127 or 00 to 255255.

25
New cards

int

A primitive data type used for whole numbers, representing values in the range of −32,768-32,768 to 32,76732,767 or −2,147,483,648-2,147,483,648 to 2,147,483,6472,147,483,647.

26
New cards

short

A primitive numeric data type representing small integers in the value range of −32,768-32,768 to 32,76732,767.

27
New cards

long

A primitive numeric data type representing long integers in the value range of −2,147,483,648-2,147,483,648 to 2,147,483,6472,147,483,647.

28
New cards

float

A primitive data type used to represent decimal numbers ranging from 1.2×10−381.2 \times 10^{-38} to 3.4×10+383.4 \times 10^{+38} with precision up to 66 decimal places.

29
New cards

Variable

A named location in computer memory used to store values during the execution of a program.

30
New cards

Variable Declaration

The statement that creates a variable, specifying its name and data type to reserve the appropriate memory location before use.

31
New cards

Reserved Keywords

Predefined, reserved words in a programming language that have special meanings and cannot be used as variable names.

32
New cards

Operator

A symbol that directs a compiler or interpreter to perform a specific mathematical, relational, or logical operation.

33
New cards

Operands

The data values, variables, or expressions on which an operator performs its operation.

34
New cards

Arithmetic Operator

A symbol (such as +, -, *, /, or %) used to perform standard mathematical calculations on operands.

35
New cards

Modulus Operator (%)

An arithmetic operator that evaluates two operands and produces the remainder of an integer division.

36
New cards

Relational Operator

A symbol (such as ==, !=, >,

37
New cards

Logical Operators

Operators (&&, ||, !) used to combine or negate conditions to make decisions in a program.

38
New cards

Logical AND (&&)

A logical operator that yields true if and only if both evaluated operands are non-zero.

39
New cards

Logical OR (||)

A logical operator that yields true if at least one of the two evaluated operands is non-zero.

40
New cards

Logical NOT (!)

A logical operator that reverses the logical state of its operand, turning a true condition false.

41
New cards

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.

42
New cards

switch Statement

A decision-making statement that tests a variable or integer expression for equality against a list of specific cases.

43
New cards

Loop

A control structure that allows a program to execute a statement or group of statements repeatedly up to a desired number of times.

44
New cards

while Loop

A pre-test loop structure that evaluates a condition before executing its body, repeating as long as the condition evaluates to true.

45
New cards

do…while Loop

A post-test loop structure that executes its body first before evaluating the condition, guaranteeing at least one execution.

46
New cards

break Statement

A control statement that immediately terminates a loop or switch construct and transfers control to the next sequential statement.

47
New cards

continue Statement

A control statement that skips the remainder of the current loop iteration and proceeds immediately to the next iteration.

48
New cards

floor Function

A standard mathematical function (double floor(double);) that returns the largest integer less than or equal to the argument passed to it.

49
New cards

fabs Function

A standard mathematical function (double fabs(double);) that returns the absolute value of any floating-point decimal number passed to it.

50
New cards

Character Literal

A single alphabet letter, digit, or special character enclosed within single quotes.

51
New cards

Escape Sequence

A character combination preceded by a backslash () that carries a non-literal, special meaning to the compiler.

52
New cards

Array

A data structure that stores a fixed-size collection of elements of the same data type in contiguous memory locations.

53
New cards

Base Index

The index assigned to the very first element in an array, which is always equal to 00.

54
New cards

String (in C)

A sequential array of character data types ending with a terminating null character (\0).

55
New cards

Null Character ('\0')

A special delimiter character automatically appended to the end of a C string to indicate where the string terminates.

56
New cards

Function Signature

The unique combination consisting of a function's name along with its ordered parameter list.

57
New cards

Parameter

A placeholder variable specified in a function header that receives an incoming argument value when the function is invoked.

58
New cards

Computer File

A digital storage unit used to keep data such as plain text, images, or programs in an organized file structure.

59
New cards

Append Mode

A file opening mode ('a') that preserves existing content and writes new data exclusively at the end of the file.

60
New cards

fopen

A C library function that creates or opens a file and returns a pointer to a FILE stream object.

61
New cards

fclose

A C library function that flushes pending buffer data, closes an open file stream, and releases its associated memory.

62
New cards

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.