Looks like no one added any tags here yet for you.
T/F: All functions that utilize passing parameters by address must be void.
F
T/F: Data sent from the calling function to the function being called will be received in the same order in which it was passes.
T
T/F: The number of parameters cannot be determined from the declaration of a function.
F
Does fetching data access computer memory?
Yes
Does writing data access computer memory?
Yes
Does processing data access computer memory?
No
COURSE STANDARD? The declaration section and execution sections of a user- defined function must never overlap.
Yes
COURSE STANDARD? Attempt to minimize your use of literal constants and maximize your use of symbolic constants.
Yes
COURSE STANDARD? Place a single space between all operators and operands.
Yes
T/F: A structure chart should be more horizontal and less vertical because the main function should make a majority of the user- defined function calls.
F
T/F: Functions from standard C libraries such as math.h and stdio.h are not included on a structure chart.
F
T/F: It is possible to determine from a structure chart the order in which use-defined functions are called in a program.
F
T/F: Symbolic/ defined constants do not have a data type, but the values they represent do.
T
T/F: The assignment operator is not used to associate a value with an identifier as no memory is requires for symbolic/ defined constant.
T
T/F: No terminal semicolon is used when defining a symbolic/ defined constant as the define instruction is a pre-processor directive.
T
T/F: A mixed type expression will require at least one type conversion before the expression can be evaluated.
T
T/F: Only implicit type conversions can be used to change a mixed type expression to a single type expression.
F
T/F: An explicit type conversion cannot be applied to a symbolic/defined constant because such a constant does not have a data type.
F
T/F: It takes less time to access those levels of memory that are lower on the hierarchy than those that are higher.
F
T/F: The capacity of those levels of memory that are lower on the hierarchy is greater than those that are higher.
F
T/F: The memory at lower levels on the hierarchy are closer to the CPU than those that are higher.
F
T/F: An error related to a floating exception or segmentation fault can be detected by the compiler.
F
T/F: A logical error cannot be detected by the compiler.
T
T/F: A warning issued by the compiler will not prevent the creation of a new executable file.
T
T/F: A user defined function can return at most one value.
T
T/F: Control of a program is always returned from the called function to the calling function when the called function terminated.
T
T/F: One user defined function cannot call another user defined function.
F
T/F: The user defined functions will be declared with a local scope in your programs.
F
T/F: According to course standards a variable will never be permitted to define with a global scope.
T
T/F: It is not possible to reuse an identifier when the two objects that will share the identifier do not have an overlapping scope.
F
DEFINITON: Functionally cohesive
Called function accomplished only a single task in the program.
T/F: It is not possible to use a single scanf statement to accept input for multiple variables.
F
T/F: It is not possible to format output with left-alignment when using a printf.
F
T/F: It is not possible to write a scanf statement that does not make use of its address list
T
T/F: The parameter of the feof function is a file handle variable.
T
T/F: The value returned from the fopen function is used to initialize a file handle variable.
T
T/F: The name of the external file is tha parameter to the fclose function.
F
T/F: When the file handle variable stores a file ID value equal to -1 it means the external file failed to open as expected.
T
T/F: The value returned from the fscanf function is the data value that was read from the external file.
T
T/F: The feof function will return a zero when the end of the file has been reached.
F
Why is the "gets" function considered to be dangerous to the compiler?
The input of the user may exceed the defined size of the array.
T/F: A warning issued by the compiler will not prevent the creation of a new file executable.
T
T/F: An error in the logic of the program cannot be detected by the compiler.
T
T/F: An segmentation fault can be detected by the compiler.
F
T/F: A structure chart should be more horizontal and less vertical because the main function should make a majority of the user- defined function calls.
T
T/F: Functions from standard C libraries such as math.h and stdio.h are not included on a structure chart.
T
T/F: It is impossible to determine from a structure chart the order in which user-defined functions are called in a program.
F
T/F: Symbolic/ defined constants don’t have a data type, but the values that they represent do.
T
T/F: The assignment operator is not used to associate a value with an identifier as no memory is required for a symbolic/ defined constant.
T
T/F: No terminal semicolon is used when defining a symbolic/ defined constant as the define instruction is a pre-processor directive.
T
T/F: No two case labels can represent the same constant value.
T
T/F: Each case label is the keyword case followed by a constant expression.
T
T/F: Only a single executable statement can be associated with any given case.
F
T/F: The user defined functions will be declared with in the local declaration section in your programs this semester.
F
T/F: According to course standards a variable will be permitted to be defined with a global scope.
F
T/F: It is possible to reuse an identifier when the two objects that will share the identifier do not have an over lapping scope.
T
T/F: The number of times the loop control expression is evaluated equals the number of iterations in a post- test loop.
T
T/F: The initialization of the loop control variable may take place inside of the body in a post test loop.
T
T/F: The update action for the loop control variable may be a part of the loop control expression.
T
T/F: The short circuit methon is applied onlt to logical expression in if/else if conditions.
F
T/F: The short circuit method is not applied to logical operators used as loop control expressions.
F
T/F: The short circuit method is applied to all logical expressions that use a logical operator.
T
T/F: The function definition requires the data types and identifiers for each parameter
F
T/F: The function call requires the data types and identifiers for each parameter.
F
T/F: The first line of the function definition requires the data types and identifiers for each parameter.
T
T/F: A user defined function should not be designed such that it completes multiple tasks in a program.
T
T/F: The use of a user defined function should eliminate the need for the same logic to appear in more than one location of a program.
T
T/F: Each user defined function should be testable apart from the rest of the program.
T
T/F: The control of the program always returns from the calling function to the main function.
F
T/F: Data sent from the calling function to the function being called will be received in the same order which it was passed.
T
T/F: The return statement cannot contain an expression.
F
T/F: Both implicit type conversions and assignment conversions in an expression will not result in a loss of data as a result of the conversion.
F
T/F: When evaluating a mathematical operator with operands of different types it is the lower ranked data type that is converted to that of the higher data type.
T
T/F: Converting a higher ranked data type to that of a lower ranked data type may result in the loss of data.
T
T/F: A symbolic/ defined constant may be created anywhere in the program.
F
T/F: Within each function the local declarations and executable statements must never be permitted to overlap.
F
T/F: Variable and function declarations will never be permitted in the global section this semester.
F
T/F: The flag attribute of a placeholder within the format string of a printf statement can be used to shift the alignment from right to left when making use of a width modifier.
T
T/F: The width and precision modifier attributes of a placeholder within the format string of a printf statement cannot be represented by variables and must always be constant values.
F
T/F: The precision modifier when used in the format string of a printf statement can specify the number of digits to display on both sides of the decimal point of a floating point value.
F
T/F: The order in which the function definitions appear in a program must match the order in which they are declared.
F
T/F: The order in which the function declarations appear in a program must match the order in which they are defined.
F
T/F: The order in which function definitions appear must match the order in which they are called.
F
Which classification of languages was developed to be independent of the specific of hardware of which it may be used?
High-level programming languages
T/F: The return type of any function that makes use of passing parameters must be void.
F
T/F: When passing multiple parameters to a function if one parameter is to be passed by address then all of the parameters should be passed by address.
F
T/F: Use of parameter passing by address permits multiple tasks of a programming problem to be consolidated into a single -user defined function
F
T/F: The short circuit method of evaluating logical expressions is limited only to those logical expressions used in selection constructs.
F
T/F: The short circuit method of evaluating logical expressions is limited to only those logical expressions used in repetition constructs.
F
T/F: The short circuit method of evaluating logical expressions is limited only to those logical expressions used in assignment operators.
F
T/F: The use of { and } with if/else constructs is options when not required by the compiler.
F
T/F: All code found inside of the body of if/else constructs must be indented two additional spaces.
T
T/F: The body of any if, else it, or else should never remain empty.
T
T/F: The use of recursion should be limited to counter-controlled processes.
T
T/F: The use of the for loop should be limited to counter-controlled processes.
T
T/F: The use of the do while loop should be limited to event-controlled processes.
F
T/F: When the base case is reached the control of the program will immediately return to main.
F
T/F: An infinite number of recursive function calls will result in an identical behavior of an infinite loop.
T
T/F: The return type of a recursive function may be void.
T
T/F: Two case statements cannot represent the same constant value.
T