1/43
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
A C program begins with a section for preprocessor directives
T
The preprocessor is a part of the compiling process and prepares your code for the remainder of that process
T
The declaration section contains executable instructions for the computer.
F
The executable section contains executable instructions for the computer.
T
Every program must have exactly one function named main.
T
The main function is the starting point for execution of the program
T
The gcc compiler as found on guru will require that the main be an int (integer) function
T
The gcc compiler as found on guru will require the source code file name to end with a .c extension.
T
Within each function the local declarations and executable statements must NOT be permitted to overlap.
T
All code found in the executable statement and local declaration sections of the main function is considered to
be the body of the function.
T
Variable declarations will NEVER be permitted in the global section this semester
T
The files stdio.h and math.h are libraries that contain standard functions for our use.
T
The return(0); statement will be the final statement in the main function.
T
The return statement in main will return control to the operating system and terminate the current program.
T
Comments are added to a program to improve its level of documentation intended for other programmers.
T
Variables are named memory locations that have a type.
T
Each variable in a C program must be declared and defined before it can be used.
T
It is much easier to find and work with variables if they are defined on separate lines.
T
Variables in the C language are initialized automatically when they are defined
F
Variables in the C language are not initialized automatically but manually when they are defined.
T
The backslash (\) is known as an escape character.
T
A character constant is enclosed in double quotes.
F
A character constant is enclosed in single quotes.
T
A literal constant is an unnamed constant used to specify data
T
The command to create a defined constant is usually placed at the beginning of the program
T
While variables have data types, constants (both literal and defined) do not.
F
While variables have data types, defined constants do not.
T
The conversion code selected for a placeholder (conversion specification) depends on the data type of the
value to be displayed in a printf statement
T
The size modifier is used to specify the minimum number of positions to reserve for the output of a value.
F
The width modifier is used to specify the minimum number of positions to reserve for the output of a value.
T
A precision modifier may be used for the output of any numeric value.
F
A precision modifier may be used for the output of floating value.
T
The width modifier for the output of a value must be large enough to account for the integral value of the
number, the decimal point, and the number of digits in the decimal position.
T
The address list of a scanf function must specify where in the memory of the computer the input should be
stored.
T
Within each function the local declarations and executable statements may be permitted to overlap.
F
Every program must have exactly one function named main.
T
The main function is the starting point for execution of the program.
T
A C program ends with a section for preprocessor directives.
F
The command to create a defined constant is usually placed at the beginning of the program.
T
Variables in the C language are initialized automatically when they are defined.
F
It is much easier to find and work with variables if they are defined on the same line.
F
Only the code found in the executable statement section of the main function is considered to be the body of the function.
F
The conversion code selected for a placeholder (conversion specification) depends on the data type of the value to be displayed in a printf statement.
T
The address list of a scanf function must specify where in the memory of the computer the input should be stored.
T