Program
1 / 44
Term:
Definition:
Show example sentence
Show hint
Keyboard Shortcuts
  • Previous
  • Next
  • F Flip card

Complete list of Terms and Definitions for Program

Terms Definitions
Bugs Errors in a program
string a series of printable characters.
Characters Letters, symbols, and numbers that will not be used in calculations
Class A type whose variables are objects
A statement ends with a ___? ;
abstract thought of apart from concrete realities, specific objects, or actual instances:
Named constant A memory location whose contents cannot change while a program is running
What does main return? An integer status code
Logic error An error caused by syntactically correct statements that produce unexpected results. Also called semantic error.
// creates personal notes ignored by the compiler
penchant a strong inclination, taste, or liking for something:
Streams Sequences of characters used in C++ to perform standard input and output operations
What are the 4 bitwise operators from highest precedence to lowest precedence? ~&^|
Event procedure Block of code that executes in response to an event.
function a group of programming code that can do some work and return a value.
What is polling? Polling, or polled operation, in computer science, refers to actively sampling the status of an external device by a client program as a synchronous activity. Polling is most often used in terms of input/output (I/O), and is also referred to as polled I/O or software driven I/O. Polling is sometimes used synonymously with busy-wait polling (Busy waiting). In this situation, when an I/O operation is required the computer does nothing other than check the status of the I/O device until it is ready, at which point the device is accessed. In other words the computer waits until the device is ready. Polling also refers to the situation where a device is repeatedly checked for readiness, and if it is not the computer returns to a different task. Although not as wasteful of CPU cycles as busy-wait, this is generally not as efficient as the alternative to polling, interrupt driven I/O.
recursive pertaining to or using a rule or procedure that can be applied repeatedly.
Delimiter character A character that indicates the end of something; for example, in the getline() function, the function
What is a function? A series of statements grouped together and given a name
How does assert work? It takes an integer argument(an assertion) that it tests when it executes. If the argument in non-zero: assert does nothing. If it is zero assert prints a message to stderr and calls the abort function to terminate the program.
How do we access a member of a struct? identifier.member
Floating point A data type that can represent values with numbers after the decimal point.
What return type is used if a method does not return a value? Void
getline() function Used to get string input from the user at the keyboard; the input can contain any character, even
What is scope? The portion of the program text in which a variable can be referenced.
What is the conversion specifier: f Floating point in fixed-decimal format
What is a generally comfortable temperature range?A tolerable temperature range? Comfortable: 69-80 degrees FTolerable: 60-85 degrees F
What does new do? The new operator allocates memory for an object
What is the format of a make file entry? target : dependenciescommandexample:fmt : fmt.o word.o line.o gcc -o fmt fmt.o word.o line.o
What the difference between a declaration and a definition? A declaration introduces an identifier and describes its type, be it a type, object, or function. A declaration is what the compiler needs to accept references to that identifier.A definition actually instantiates/implements this identifier. It's what the linker needs in order to link references to those entities.
Project Explorer window The part of the IDE that lists the files in the current project.
What are simple, non object oriented types in Java? short, long, doubleNOT HALF, CHARACTER, and STRING
What is assert used for? Allows a program to monitor its own behavior and detect possible programs at an early stage.
How do you use a function pointer? 1. define a function pointervoid (*fp)(int)2. assign it a function fp = func;(correct form is use &func, but its not necessary)3. call the functionfp(10);you can use (*fp)(10)
How do you declare a structure whose members represent bit fields? struct identifier{ (unsigned) int: #ofbit};unsigned is optional
How do you create an infinite for loop? for ( ; ; )
What does the setjmp.h header do? Makes it possible for one function to jump directly to another function without returning. It's primarily used for error handling
What is dynamic memory allocation? Where is this memory allocated from. The allocation of memory storage for use during the runtime of that program. Its allocated from the heap (usually)
What is the value that main returns? A status code to the operating system
16. The six basic steps of the programming process iclude: a. interviewing, communication, pattern-searching, evaluating, discussing options and diagramming b. establishing goals, gathering and analyzing, specifying needs, evaluating the program, organi b. establishing goals, gathering and analyzing, specifying needs, evaluating the program, organizing and presenting conclusions
How do you clear a bit? Do a bitwise and with a string with all 1's but with a zero in the position you want to clear
What are the 4 components needed to create a function with a variable length argument list? va_list - needed to iterate through the argumentsva_start - needed to indicate where the arg list startsva_arg - fetches the arguments and advances the pointerva_end - required to clean up before the function can return
Why are we allowed to use a string literal whenever a char * is required? C treats string literals as character arrays.
What does the setjmp function do? How do we use it? What does the longjmp function do? How do we use it? setjmp marks a place in a program so we can jump to it later from longjmp. We pass setjmp a variable of type jmp_buf, it then returns 0. longjmp returns to the point where we used setjmp. we use it by passing it the jmp_buf variable we used with setjmp and another int value for the status code.