COMP 2401 - Chapter 1

studied byStudied by 2 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 148

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

149 Terms

1

Systems Programming

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

New cards
2

Operating System

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

New cards
3

Applications Programming

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

New cards
4

Systems Software

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

New cards
5

Efficiency

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

New cards
6

System Calls

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

New cards
7

File I/O

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

New cards
8

Device I/O

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

New cards
9

Process Management

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

New cards
10

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.

New cards
11

Scheduling

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

New cards
12

Shells

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

New cards
13

Shell Commands

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

New cards
14

System Programs

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

New cards
15

Man Pages

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

New cards
16

Text Editor

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

New cards
17

Compiler

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

New cards
18

Debugger

A program used to test and debug other programs.

New cards
19

Object Code

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

New cards
20

Executable File

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

New cards
21

"Hello World" Program

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

New cards
22

Header File

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

New cards
23

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

printf()

New cards
24

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

main() function

New cards
25

Braces and Semi-colons

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

New cards
26

Object file

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

New cards
27

ls command

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

New cards
28

gcc

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

New cards
29

Linking

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

New cards
30

Executable file

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

New cards
31

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

.filename

New cards
32

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

printf

New cards
33

A format specifier used in printf to print integers.

%d

New cards
34

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

%f

New cards
35

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

%g

New cards
36

A format specifier used in printf to print characters.

%c

New cards
37

A format specifier used in printf to print strings.

%s

New cards
38

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

%x

New cards
39

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

%o

New cards
40

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

Width parameter

New cards
41

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

Precision parameter

New cards
42

%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.

New cards
43

%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.

New cards
44

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.

New cards
45

0 flag

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

New cards
46

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

+ flag

New cards
47

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

- flag

New cards
48

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

IF statement

New cards
49

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

SWITCH statement

New cards
50

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

Boolean

New cards
51

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

#define

New cards
52

ASCII code

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

New cards
53

UNICODE character set

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

New cards
54

Fixed values/numbers

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

New cards
55

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.

New cards
56

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

FOR loop

New cards
57

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

WHILE loop

New cards
58

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.

New cards
59

break statement

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

New cards
60

continue statement

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

New cards
61

efficiency

The measure of how quickly and effectively a program runs.

New cards
62

running time

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

New cards
63

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

increment operator (++)

New cards
64

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

decrement operator (--)

New cards
65

An operator used to assign a value to a variable.

assignment operator (=)

New cards
66

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

relational operators

New cards
67

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

logical operators

New cards
68

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

bitwise operators

New cards
69

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

conditional operator (?:)

New cards
70

The order in which operators are evaluated in an expression.

precedence

New cards
71

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

arithmetic operators

New cards
72

assignment operators

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

New cards
73

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

sizeof operator

New cards
74

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

comma operator (,)

New cards
75

The use of trigonometric functions in the JAVA programming language.

Trig

New cards
76

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

ceil(a)

New cards
77

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

floor(a)

New cards
78

A mathematical function that returns the closest integer to a.

round(a)

New cards
79

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

pow(a, b)

New cards
80

A mathematical function that returns the square root of a.

sqrt(a)

New cards
81

A mathematical function that returns the absolute value of a.

fabs(a)

New cards
82

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

rand()

New cards
83

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

Math.min(a, b)

New cards
84

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

Math.max(a, b)

New cards
85

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

Math.ceil(a)

New cards
86

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

Math.floor(a)

New cards
87

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

Math.round(a)

New cards
88

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

Math.pow(a, b)

New cards
89

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

Math.sqrt(a)

New cards
90

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

Math.abs(a)

New cards
91

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

Math.random()

New cards
92

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

sin(r)

New cards
93

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

asin(r)

New cards
94

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

cos(r)

New cards
95

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

acos(r)

New cards
96

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

tan(r)

New cards
97

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

atan(r)

New cards
98

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

atan2(r)

New cards
99

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

Random numbers

New cards
100

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

Arrays

New cards
robot