id
stringlengths
11
11
question
stringclasses
79 values
instructor_answer
stringclasses
80 values
student_answer
stringlengths
1
959
score_grader_1
float32
0
10
score_grader_2
float32
0
10
score_avg
float32
0
5
E02.Q07.A17
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
It contains reusable source code for use by other classes.
3
3
3
E02.Q07.A18
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
to separate the source code from the main function, allows the methods/classes to be included in the program without direct coding. allows re usability.
3
4
3.5
E02.Q07.A19
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
Header files have reusable source code in a file that a programer can use.
2
3
2.5
E02.Q07.A20
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
To hide the definition and details of a class. Also to help readability of the main C++ file.
3
4
3.5
E02.Q07.A21
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
To allow the compiler to recognize the classes when used elsewhere.
4
3
3.5
E02.Q07.A22
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
A header file declares a class, its data, and functions available through that class.
3
5
4
E02.Q07.A23
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
header files contain code which can be used in multiple files
3
3
3
E02.Q07.A24
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
Allow compiler to recognize the classes when used elsewhere
3
3
3
E02.Q07.A25
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
Allow compiler to recognize the classes when used elsewhere<br>
4
3
3.5
E02.Q07.A26
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
To promote function reusuablitly
3
3
3
E02.Q07.A27
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
class definitions are placed here
3
3
3
E02.Q07.A28
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
A header file usually contains class and/or function prototypes.
5
4
4.5
E02.Q07.A29
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
contains all the standard C++ library's i.e. string
2
0
1
E03.Q01.A00
What does a function signature include?
The name of the function and the types of the parameters.
It includes the name of the program, the type of parameters it can take. It should also include a brief description of what the function does.
5
4
4.5
E03.Q01.A01
What does a function signature include?
The name of the function and the types of the parameters.
it includes the specific information about the function such as input and output variable types and how many of each.
5
1
3
E03.Q01.A02
What does a function signature include?
The name of the function and the types of the parameters.
The function signature includes the name of the function and the types of its arguments.
5
5
5
E03.Q01.A03
What does a function signature include?
The name of the function and the types of the parameters.
A function signature consists of the function prototype. This tells you the general information about a function, its name, parameters, what scope it is in, and other miscellaneous information.
5
4
4.5
E03.Q01.A04
What does a function signature include?
The name of the function and the types of the parameters.
It includes the name of the function and the types of its arguments.
5
5
5
E03.Q01.A05
What does a function signature include?
The name of the function and the types of the parameters.
Name, paramaters, scope, and other general function information
5
4
4.5
E03.Q01.A06
What does a function signature include?
The name of the function and the types of the parameters.
It includes a function name and parameter list. Does not include return type. Function signatures must be different.
5
5
5
E03.Q01.A07
What does a function signature include?
The name of the function and the types of the parameters.
input parameters and return type
5
1
3
E03.Q01.A08
What does a function signature include?
The name of the function and the types of the parameters.
The portion of the function prototyp tha has the function name and the arguments but NOT the return type.
5
5
5
E03.Q01.A09
What does a function signature include?
The name of the function and the types of the parameters.
Name of the function and the types of it's arguments
5
5
5
E03.Q01.A10
What does a function signature include?
The name of the function and the types of the parameters.
The name of the function and the types of its arguments.
5
5
5
E03.Q01.A11
What does a function signature include?
The name of the function and the types of the parameters.
Includes the name of the function and the types of its arguments.
5
5
5
E03.Q01.A12
What does a function signature include?
The name of the function and the types of the parameters.
identification of a function and the data types of its parameters, it has the name, and the data type variables
5
5
5
E03.Q01.A13
What does a function signature include?
The name of the function and the types of the parameters.
a return type, and input parameters
5
1
3
E03.Q01.A14
What does a function signature include?
The name of the function and the types of the parameters.
The function signature includes the method name and the input types.
5
5
5
E03.Q01.A15
What does a function signature include?
The name of the function and the types of the parameters.
A function signature includes the name of the function and types of arguments, but not the return type.<br><br>
5
5
5
E03.Q01.A16
What does a function signature include?
The name of the function and the types of the parameters.
The signature can include a result type and thrown errors.
3
1
2
E03.Q01.A17
What does a function signature include?
The name of the function and the types of the parameters.
function name, and input paramaters
5
5
5
E03.Q01.A18
What does a function signature include?
The name of the function and the types of the parameters.
The name of the function and the types of its arguments.<br>This includes the number, type, and order the parameters appear in.
5
5
5
E03.Q01.A19
What does a function signature include?
The name of the function and the types of the parameters.
the name of the function and the types of its arguments
5
5
5
E03.Q01.A20
What does a function signature include?
The name of the function and the types of the parameters.
A function signature includes the name of the function and the types of its arguments
5
5
5
E03.Q01.A21
What does a function signature include?
The name of the function and the types of the parameters.
A function signature includes a function's return type, parameters and semi-colon.
5
1
3
E03.Q01.A22
What does a function signature include?
The name of the function and the types of the parameters.
the name of the function and the types of its arguments
5
5
5
E03.Q01.A23
What does a function signature include?
The name of the function and the types of the parameters.
the function's name and parameters
5
5
5
E03.Q01.A24
What does a function signature include?
The name of the function and the types of the parameters.
The name of the function and the types of its arguments.
5
5
5
E03.Q01.A25
What does a function signature include?
The name of the function and the types of the parameters.
The portion of a function prototype that includes the name of the function and the types of its arguments
5
5
5
E03.Q01.A26
What does a function signature include?
The name of the function and the types of the parameters.
the name of the function and its parameters
5
5
5
E03.Q01.A27
What does a function signature include?
The name of the function and the types of the parameters.
The function name and parameters
5
5
5
E03.Q01.A28
What does a function signature include?
The name of the function and the types of the parameters.
name of function and types of arguments
5
5
5
E03.Q01.A29
What does a function signature include?
The name of the function and the types of the parameters.
a function's return type and parameter list
5
1
3
E03.Q01.A30
What does a function signature include?
The name of the function and the types of the parameters.
it includes the name of the function, and the types of its arguments. it does not specify the function return type. Function in the same scope must have unqiue signatures.
5
5
5
E03.Q02.A00
What is the scope of global variables?
File scope.
Any functions that follows their deceleration that are in the source code file are allowed to have access the variables. Also global scope variables retrain their value throughout the execution of the program.
5
5
5
E03.Q02.A01
What is the scope of global variables?
File scope.
they can be accessed by any C++ file anywhere.
5
0
2.5
E03.Q02.A02
What is the scope of global variables?
File scope.
Global variables have file scope.
5
5
5
E03.Q02.A03
What is the scope of global variables?
File scope.
The scope of global variables are created by placing variable declarations outside any class or function definition. Global variables retain their values throughout the execution of the program and they can be referenced by any function that follows their declarations or definitions in the source file.
5
0
2.5
E03.Q02.A04
What is the scope of global variables?
File scope.
A global variable is an identifier that retains it's value throughout the execution of the program. It has file scope.
5
5
5
E03.Q02.A05
What is the scope of global variables?
File scope.
Global Variables can be used in any function as long as the appropriate .h file that holds the variable is included
5
3
4
E03.Q02.A06
What is the scope of global variables?
File scope.
They can be accessed by any part of the program. It can be referenced by any function that follows the declarations or definitions in the source file.
5
5
5
E03.Q02.A07
What is the scope of global variables?
File scope.
can be accesed by any classes that have and object of that variables class in it
5
1
3
E03.Q02.A08
What is the scope of global variables?
File scope.
Global variables have file-scope. The variable is know to all functions throught the file
5
5
5
E03.Q02.A09
What is the scope of global variables?
File scope.
The entire program
5
4
4.5
E03.Q02.A10
What is the scope of global variables?
File scope.
They have file scope when placed outside a function.
5
5
5
E03.Q02.A11
What is the scope of global variables?
File scope.
File scope.
5
5
5
E03.Q02.A12
What is the scope of global variables?
File scope.
They can be used throughout the program
5
4
4.5
E03.Q02.A13
What is the scope of global variables?
File scope.
Global variable can b accessed by any class wit an object in the variables class
5
1
3
E03.Q02.A14
What is the scope of global variables?
File scope.
The scope of global variables is at the file level.
5
5
5
E03.Q02.A15
What is the scope of global variables?
File scope.
Global variables all have file scope.
5
5
5
E03.Q02.A16
What is the scope of global variables?
File scope.
it is accessible by all functions within a program
5
4
4.5
E03.Q02.A17
What is the scope of global variables?
File scope.
variables accessible anywhere in the program, as long as they are public.
5
4
4.5
E03.Q02.A18
What is the scope of global variables?
File scope.
They can be referenced by any function following their declaration or definition inside the source file.
5
5
5
E03.Q02.A19
What is the scope of global variables?
File scope.
globally, anywhere in the program.
5
4
4.5
E03.Q02.A20
What is the scope of global variables?
File scope.
Global variables have a file scope
5
5
5
E03.Q02.A21
What is the scope of global variables?
File scope.
The entire program.
5
4
4.5
E03.Q02.A22
What is the scope of global variables?
File scope.
throughout the execution of the program
5
4
4.5
E03.Q02.A23
What is the scope of global variables?
File scope.
If a variable is declared global, any function or class can use that variable.
5
4
4.5
E03.Q02.A24
What is the scope of global variables?
File scope.
The entire program or file.
5
5
5
E03.Q02.A25
What is the scope of global variables?
File scope.
throught the programm
5
4
4.5
E03.Q02.A26
What is the scope of global variables?
File scope.
the whole code
5
4
4.5
E03.Q02.A27
What is the scope of global variables?
File scope.
File scope
5
5
5
E03.Q02.A28
What is the scope of global variables?
File scope.
can be referenced by any function that follows their declarations or definitions in the source file
5
5
5
E03.Q02.A29
What is the scope of global variables?
File scope.
global variables have program scope (accessible anywhere in program)
5
4
4.5
E03.Q02.A30
What is the scope of global variables?
File scope.
variables that exist throught the entire script. their values can be changed anytime in the code and fucntions.
5
4
4.5
E03.Q03.A00
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
It expands the function's definition in that place. Once the functions is called you can use it as many times as you need. The compiler just expands on the function.
5
4
4.5
E03.Q03.A01
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
When the compiler inline-expands a function call, the function's code gets inserted into the caller's code stream (conceptually similar to what happens with a #define macro). This can, depending on a zillion other things, improve performance, because the optimizer can procedurally integrate the called code — optimize the called code into the caller. <br><br>
5
4
4.5
E03.Q03.A02
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
The inline keyword advises the compiler to copy the function's code in place to avoid function calls; however the compiler can and typically does ignore the inline qualifier for all but the smallest functions.
5
5
5
E03.Q03.A03
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
The compiler can ignore the inline qualifier and typically does so for all but the smallest functions.
4
2
3
E03.Q03.A04
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
Placing the qualifier inline before a function's return type in the function definition "advises" the compiler to generate a copy of the function's code in place to avoid a function call.
5
5
5
E03.Q03.A05
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
You declare your inline function in the header or before your int main(). You then can call that function at anytime in your main program quickly and easily.
4
0
2
E03.Q03.A06
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
It expands a small function out... making your code longer, but also makes it run faster.
4
4
4
E03.Q03.A07
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
the function is not treated as a separate unit like other functions
3
4
3.5
E03.Q03.A08
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
When the program compiles,it will copy the function inplace, avoiding a function call.
5
5
5
E03.Q03.A09
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
It replaces all instances of that function call with the inline code itself, resulting in longer but faster programs.
5
5
5
E03.Q03.A10
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
The compiler can ignore the inline qualifier and typically does so for all but the smallest functions.
4
2
3
E03.Q03.A11
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
Ignores the inline qualifier and typically does so for all but the smallest functions.
4
2
3
E03.Q03.A12
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
If the function is small enough it will expand it but it will run faster as it will avoid making so many calls to the function.
4
5
4.5
E03.Q03.A13
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
it treats them as the same function
2
2
2
E03.Q03.A14
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
Inline functions are copied in place, instead of being referenced.
5
5
5
E03.Q03.A15
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
For inline functions, the compiler creates a copy of the function's code in place so it doesn't have to make a function call and add to the function call stack.
5
5
5
E03.Q03.A16
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
it generates a copy of the function's coding which eliminates calling the function
5
5
5
E03.Q03.A17
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
not answered
0
0
0
E03.Q03.A18
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
It generates a copy of the function's code by by inserting it in the program.
5
4
4.5
E03.Q03.A19
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
tells the compiler to make a copy of function's code in place to avoid a function call. it typically ignores it, except for the smallest functions.
5
5
5
E03.Q03.A20
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
The compiler can ignore the inline qualifier and typically does so for all but the smallest functions.
2
2
2
E03.Q03.A21
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
Multiple copies of the function code are inserted into the program, making it bigger.
5
4
4.5
E03.Q03.A22
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
compiler ignores inline qualifier
3
2
2.5
E03.Q03.A23
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
It generates a copy of the function, if it is needed again.
5
2
3.5
E03.Q03.A24
How does the compiler handle inline functions?
It makes a copy of the function code in every place where a function call is made.
The complier includes copies of inline functions instead of making function calls, but usually only with very small functions.
5
5
5