COMP 2401 - Chapter 1

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

1/148

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

149 Terms

1
New cards

Systems Programming

The programming of software that provides services for other software or for the underlying computer system.

2
New cards

Operating System

System software that manages computer hardware and software resources and provides common services for computer programs.

3
New cards

Applications Programming

The programming of software to provide services for the user directly.

4
New cards

Systems Software

The layer between the hardware and application software that deals directly with the hardware and usually controls it.

5
New cards

Efficiency

Making efficient use of resources such as computer memory, disk space, and CPU time.

6
New cards

System Calls

Requests made by applications to the operating system for access to resources.

7
New cards

File I/O

Functionality provided by the operating system for file system organization, access to read and write files, and setting access permissions.

8
New cards

Device I/O

Functionality provided by the operating system for communication with devices through their drivers and managing shared access.

9
New cards

Process Management

Functionality provided by the operating system for starting, stopping, and altering running executables, as well as allocating memory for each process.

10
New cards

Virtual Memory

Functionality provided by the operating system to provide memory to every process, appearing as a large amount of contiguous memory but may be fragmented in main memory or on disk.

11
New cards

Scheduling

Functionality provided by the operating system to allow applications to share CPU time and device access.

12
New cards

Shells

Command line user interfaces that allow access to an operating system's services and the ability to run other programs.

13
New cards

Shell Commands

Common commands that can be used within a shell, such as alias, cd, pwd, set, and which.

14
New cards

System Programs

Common programs that can be used within a shell, such as grep, ls, more, time, and sort.

15
New cards

Man Pages

User manuals accessed through the man command in a shell, providing help and documentation for various commands and programs.

16
New cards

Text Editor

A program that allows you to produce a text-based file.

17
New cards

Compiler

Computer software that transforms source code written in one programming language into another target programming language.

18
New cards

Debugger

A program used to test and debug other programs.

19
New cards

Object Code

The output of the compiler, which is meant to be run on a specific machine.

20
New cards

Executable File

A runnable program produced by linking object files with various library files.

21
New cards

"Hello World" Program

A simple program that outputs the words "Hello World" to the computer screen.

22
New cards

Header File

A file containing C declarations and macro definitions to be shared between several source files.

23
New cards

A function used in C to print text to the screen.

printf()

24
New cards

The entry point of a C program, where the program execution begins.

main() function

25
New cards

Braces and Semi-colons

Syntax elements used in C to define blocks of code and terminate statements.

26
New cards

Object file

A file generated by the compiler that contains the compiled code of a single source file.

27
New cards

ls command

A command used in the command line interface to list the files and directories in a directory.

28
New cards

gcc

The GNU Compiler Collection, a compiler system used to compile C and C++ programs.

29
New cards

Linking

The process of combining object files and library files to create an executable file.

30
New cards

Executable file

A file that can be run or executed by the computer.

31
New cards

The command used to run the executable file in the current directory.

.filename

32
New cards

A function in C used to print formatted output to the console.

printf

33
New cards

A format specifier used in printf to print integers.

%d

34
New cards

A format specifier used in printf to print floating-point numbers.

%f

35
New cards

A format specifier used in printf to print floating-point numbers with exponential precision.

%g

36
New cards

A format specifier used in printf to print characters.

%c

37
New cards

A format specifier used in printf to print strings.

%s

38
New cards

A format specifier used in printf to print integers in hexadecimal format.

%x

39
New cards

A format specifier used in printf to print integers in octal format.

%o

40
New cards

A parameter in printf that specifies the minimum number of spaces the output will take up.

Width parameter

41
New cards

A parameter in printf that specifies the number of digits or characters to be displayed.

Precision parameter

42
New cards

%6.1X

A format specifier used in printf to print an unsigned hexadecimal integer with a minimum width of 6 characters and 1 digit after the decimal point.

43
New cards

%6.3d

A format specifier used in printf to print a decimal integer with a minimum width of 6 characters and 3 digits after the decimal point.

44
New cards

flags parameter

A parameter in printf that allows us to indicate how many leading zeros will be displayed when used with integer, unsigned integer, octal, and hexadecimal flags.

45
New cards

0 flag

A flag in printf that allows leading zeros to be inserted when used with numbers.

46
New cards

A flag in printf that allows a plus sign to be inserted for positive numbers.

+ flag

47
New cards

A flag in printf that allows everything to be left-aligned when used with numbers or strings.

- flag

48
New cards

A conditional statement in C that allows for the execution of a block of code if a certain condition is true.

IF statement

49
New cards

A conditional statement in C that allows for the execution of different blocks of code based on the value of a variable.

SWITCH statement

50
New cards

A data type that can have one of two values, typically true or false, used for logical operations.

Boolean

51
New cards

A keyword in C used to define fixed values or constants.

#define

52
New cards

ASCII code

A character encoding standard that represents text in computers and other devices.

53
New cards

UNICODE character set

A character encoding standard that aims to include all characters from all writing systems in the world.

54
New cards

Fixed values/numbers

Values or numbers that are defined using the #define keyword in C and are typically used as constants in the program.

55
New cards

Ternary/conditional operator

An operator in C that allows for a shorter form of an if-else statement and can also provide a returned value for use in a calculation.

56
New cards

A loop in C that allows for the execution of a block of code for a specified number of times.

FOR loop

57
New cards

A loop in C that allows for the execution of a block of code as long as a certain condition is true.

WHILE loop

58
New cards

DO/WHILE loop

A loop in which the condition is checked at the end of the loop, guaranteeing that the loop is evaluated at least once.

59
New cards

break statement

A statement used to exit a loop prematurely, skipping the remaining iterations.

60
New cards

continue statement

A statement used to skip the current iteration of a loop and move on to the next iteration.

61
New cards

efficiency

The measure of how quickly and effectively a program runs.

62
New cards

running time

The amount of time it takes for a program to execute.

63
New cards

An operator used to increase the value of a variable by 1.

increment operator (++)

64
New cards

An operator used to decrease the value of a variable by 1.

decrement operator (--)

65
New cards

An operator used to assign a value to a variable.

assignment operator (=)

66
New cards

Operators used to compare values and determine the relationship between them (e.g.,

relational operators

67
New cards

Operators used to combine or manipulate boolean values (e.g., &&, ||, !).

logical operators

68
New cards

Operators used to perform operations on individual bits of binary numbers (e.g., &, |, ^, ~, <

bitwise operators

69
New cards

A ternary operator used to evaluate a condition and return one of two values based on the result.

conditional operator (?:)

70
New cards

The order in which operators are evaluated in an expression.

precedence

71
New cards

Operators used to perform mathematical calculations (e.g., +, -, *, /, %).

arithmetic operators

72
New cards

assignment operators

Operators used to assign a value to a variable and perform an operation at the same time (e.g., +=, -=, *=, /=).

73
New cards

An operator used to determine the size of a data type or variable in bytes.

sizeof operator

74
New cards

An operator used to separate multiple expressions in a statement, evaluating them from left to right.

comma operator (,)

75
New cards

The use of trigonometric functions in the JAVA programming language.

Trig

76
New cards

A mathematical function that returns the smallest integer greater than or equal to a.

ceil(a)

77
New cards

A mathematical function that returns the largest integer less than or equal to a.

floor(a)

78
New cards

A mathematical function that returns the closest integer to a.

round(a)

79
New cards

A mathematical function that returns a raised to the power of b.

pow(a, b)

80
New cards

A mathematical function that returns the square root of a.

sqrt(a)

81
New cards

A mathematical function that returns the absolute value of a.

fabs(a)

82
New cards

A function that generates a pseudo-random integer between 0 and RAND_MAX.

rand()

83
New cards

A function that returns the smaller of two numbers, a and b.

Math.min(a, b)

84
New cards

A function that returns the larger of two numbers, a and b.

Math.max(a, b)

85
New cards

A function in the Math class of JAVA that returns the smallest integer greater than or equal to a.

Math.ceil(a)

86
New cards

A function in the Math class of JAVA that returns the largest integer less than or equal to a.

Math.floor(a)

87
New cards

A function in the Math class of JAVA that returns the closest integer to a.

Math.round(a)

88
New cards

A function in the Math class of JAVA that returns a raised to the power of b.

Math.pow(a, b)

89
New cards

A function in the Math class of JAVA that returns the square root of a.

Math.sqrt(a)

90
New cards

A function in the Math class of JAVA that returns the absolute value of a.

Math.abs(a)

91
New cards

A function in the Math class of JAVA that generates a random double value between 0.0 and 1.0.

Math.random()

92
New cards

A trigonometric function that returns the sine of an angle r.

sin(r)

93
New cards

A trigonometric function that returns the arcsine of a value r.

asin(r)

94
New cards

A trigonometric function that returns the cosine of an angle r.

cos(r)

95
New cards

A trigonometric function that returns the arccosine of a value r.

acos(r)

96
New cards

A trigonometric function that returns the tangent of an angle r.

tan(r)

97
New cards

A trigonometric function that returns the arctangent of a value r.

atan(r)

98
New cards

A trigonometric function that returns the arctangent of the quotient of two values r.

atan2(r)

99
New cards

A sequence of numbers that appear to be random but can be set to a fixed sequence.

Random numbers

100
New cards

A collection of elements of the same data type that can be accessed using an index.

Arrays