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.Q04.A07
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When it the programs compiles
5
2
3.5
E02.Q04.A08
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
when a constructor is not provided by the programmer of the class
5
5
5
E02.Q04.A09
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
In any class that does not explicitly include a constructor.
5
5
5
E02.Q04.A10
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
Before the main function of the code.
2
0
1
E02.Q04.A11
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
whenevery you dont specifiy your own
5
5
5
E02.Q04.A12
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When non are provided
5
5
5
E02.Q04.A13
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
C++ will create a default constructor when no other constructor is present.
5
5
5
E02.Q04.A14
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When no constructor was specified in the constructor's class, but the class is instantiated in a program.
5
5
5
E02.Q04.A15
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When no constructor exists when one is needed, a parameterless default constructor is declared.
5
5
5
E02.Q04.A16
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
The Compiler creates this automatically for you, unless you specifically create one.
5
5
5
E02.Q04.A17
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
In any class that doesn't explicitly include a constructor.
5
5
5
E02.Q04.A18
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
when no user-defined constructor exists
5
5
5
E02.Q04.A19
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
If a class does not explicitly include a constructor, the compiler creates one.
5
5
5
E02.Q04.A20
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When you do not provide your own constructor.
5
5
5
E02.Q04.A21
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When a class does not explicitly include a constructor.
5
5
5
E02.Q04.A22
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
C++ creates a default constructor during compilation if one is not provided.
5
5
5
E02.Q04.A23
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
when a class does not explicitly include a constructor
5
5
5
E02.Q04.A24
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
The compiler will provide one when class does not explictly include a consructor.
5
5
5
E02.Q04.A25
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
when the programmer does not explicitly include a constructor
5
5
5
E02.Q04.A26
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When one is not explicitly stated.
5
5
5
E02.Q04.A27
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
when one is not explicitly included by a class<br>
5
5
5
E02.Q04.A28
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
When you dont specify any constructors.
5
5
5
E02.Q04.A29
When does C++ create a default constructor?
If no constructor is provided, the compiler provides one by default. If a constructor is defined for a class, the compiler does not create a default constructor.
at the very beginning when you run a complier, matter a fact in C++ it generates its own default constructor for the class provided if no other constructors have been provided by user
5
5
5
E02.Q05.A00
How many constructors can be created for a class?
Unlimited number.
Just one per class.
0
0
0
E02.Q05.A01
How many constructors can be created for a class?
Unlimited number.
As many as you want so long as they have different parameters.
5
5
5
E02.Q05.A02
How many constructors can be created for a class?
Unlimited number.
There is no limit to the number of constructors in a class because like functions, constructors can be overloaded.
5
5
5
E02.Q05.A03
How many constructors can be created for a class?
Unlimited number.
It depends what type of class is being defined. Typically you would have a constructor call for each object.
2
1
1.5
E02.Q05.A04
How many constructors can be created for a class?
Unlimited number.
In C++, the constructor can be overloaded in that there can be more than one constructor for a class, each having different parameters.
5
5
5
E02.Q05.A05
How many constructors can be created for a class?
Unlimited number.
1
0
0
0
E02.Q05.A06
How many constructors can be created for a class?
Unlimited number.
any number you want
5
5
5
E02.Q05.A07
How many constructors can be created for a class?
Unlimited number.
One
0
0
0
E02.Q05.A08
How many constructors can be created for a class?
Unlimited number.
by default just one, but they may be overloaded to create as many constructors as necessary
5
5
5
E02.Q05.A09
How many constructors can be created for a class?
Unlimited number.
as many as you want
5
5
5
E02.Q05.A10
How many constructors can be created for a class?
Unlimited number.
As many as you want, with different parameters.
5
5
5
E02.Q05.A11
How many constructors can be created for a class?
Unlimited number.
infinite
5
5
5
E02.Q05.A12
How many constructors can be created for a class?
Unlimited number.
as many as you need
5
5
5
E02.Q05.A13
How many constructors can be created for a class?
Unlimited number.
As many as are needed, depending on how many variables one wishes to directly modify or leave as default when instantiating an object.
5
5
5
E02.Q05.A14
How many constructors can be created for a class?
Unlimited number.
A very large amount of constructors can be created for any given class through overloading. When two constructors with a different type or number of parameters are created, they are said to be overloaded, and C++ can recognize which constructor to use based on the type of the variables that are passed/returned.
5
5
5
E02.Q05.A15
How many constructors can be created for a class?
Unlimited number.
It depends on the number of objects. Each object should have a constructor.
4
1
2.5
E02.Q05.A16
How many constructors can be created for a class?
Unlimited number.
Theoretically unlimited, as long as they are defined by the programmer.
5
5
5
E02.Q05.A17
How many constructors can be created for a class?
Unlimited number.
As many as needed.
5
5
5
E02.Q05.A18
How many constructors can be created for a class?
Unlimited number.
as many as wanted/needed
5
5
5
E02.Q05.A19
How many constructors can be created for a class?
Unlimited number.
several
5
4
4.5
E02.Q05.A20
How many constructors can be created for a class?
Unlimited number.
One
0
0
0
E02.Q05.A21
How many constructors can be created for a class?
Unlimited number.
one
0
0
0
E02.Q05.A22
How many constructors can be created for a class?
Unlimited number.
There can be infinite constructors as long as the signature is different.
5
5
5
E02.Q05.A23
How many constructors can be created for a class?
Unlimited number.
that depends on the number of data members in the class
3
0
1.5
E02.Q05.A24
How many constructors can be created for a class?
Unlimited number.
one
0
0
0
E02.Q05.A25
How many constructors can be created for a class?
Unlimited number.
you can overload constructors as you need
5
5
5
E02.Q05.A26
How many constructors can be created for a class?
Unlimited number.
As many as the programmer wants to create.
5
5
5
E02.Q05.A27
How many constructors can be created for a class?
Unlimited number.
one
0
0
0
E02.Q05.A28
How many constructors can be created for a class?
Unlimited number.
as many as you want, as long as they each have a unique argument list
5
5
5
E02.Q05.A29
How many constructors can be created for a class?
Unlimited number.
as many as the user decides to use.
5
5
5
E02.Q06.A00
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function definition does not require any additional information that needs to be passed inside its parenthesis<br> to execute. While a definition prototype requires more than one parameters to be passed in order to complete its <br>task.
3
5
4
E02.Q06.A01
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
The FUNCTION PROTOTYPE is where the programmer declares that he/she is using a function other than main( ). This is like declaring a variable, the programmer knows that he/she will be using in the future, but has yet to say where they are going to use it, or how. This is answers the question who, it gives the function a name and character. The function prototype, by common practice is placed at the beginning of the program after the #includes and before main( ).<br>The FUNCTION DEFINITION is the guts of the function. This is where the programmer decides what the function is going to do and tells it how to do it. It takes whatever information it is given and performs the operations. It works sort of like the brain, the brain takes in input and based upon that input performs in some way producing an output. The function defintion is placed outside of main( ) and any other functions. A function is its own entity and should be thought of as such.
4
1
2.5
E02.Q06.A02
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype tells the compiler the function name, return type and the number and type of parameters without revealing the implementations contained in the function definition.
5
5
5
E02.Q06.A03
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
Function prototype is a declaration. Function definitions (w/multiple parameters) often require more than one piece of information. to perform their tasks.
3
3
3
E02.Q06.A04
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype is a declaration of a function that tells the compiler the function's name, its return type and the types of its parameters.
5
5
5
E02.Q06.A05
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A prototype shows only return types and necessary parameters. The definition includes names for those parameters and defines what the object is actually capable of doing.
4
5
4.5
E02.Q06.A06
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
prototype only tells the user what data types go into a function and what type is returned.
4
5
4.5
E02.Q06.A07
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
Function prototype is located in the .h file and only contains the access function name and paramater type.<br><br>Function definition contains the code for the function to perform its activity.
5
4
4.5
E02.Q06.A08
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
a function prototype is used to reference the compiler to a function that will be defined later on, a function definition is the actual function itself, complete with return type, parameters, etc...
4
4
4
E02.Q06.A09
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype describes a class's public interface without revealing the class's member function implementations
4
5
4.5
E02.Q06.A10
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
Function definitions are just that, the definition. The prototype is what the compiler uses to check that calls to function are correct.
3
1
2
E02.Q06.A11
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
a prototype does not include any actual code where the function has all the code that is executed in the program.
3
3
3
E02.Q06.A12
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
a prototype declares what will be used in the program and the definition
3
3
3
E02.Q06.A13
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype lays out the name, return type, and the number and types of parameters the function expects to receive in a certain order. The details for function prototypes are in the function definition.
5
5
5
E02.Q06.A14
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function definition is the code that defines the function placed in the {} brackets that determines that function's operation.<br><br>A function prototype shows the function's public interface without exposing implementation. It shows name, return type and type of paramaters.
5
5
5
E02.Q06.A15
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype is just a declaration of the function existing, and cant be used as an actual function. A function has to be created with a definition within to tell the compiler what the function does.
4
3
3.5
E02.Q06.A16
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
the Prototype creates a framework to call the function definition. While a function definition is where the function is actually programmed out and created into a final product.
4
5
4.5
E02.Q06.A17
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype describes the class's public interface without providing how the function works.<br>A function definition contains the inner workings of the function.
4
5
4.5
E02.Q06.A18
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
prototype states all functions in that class before compilation, where the definition actually holds the source for the functions
4
3
3.5
E02.Q06.A19
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
Function prototypes tell the compiler the function names, its return type, and the types of its parameters where as, function definitions actually implement the member functions.
5
5
5
E02.Q06.A20
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype just specifies parameters. A function definition includes parameters and a code body.
4
4
4
E02.Q06.A21
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
Function prototypes describe the class's public interface
4
5
4.5
E02.Q06.A22
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A prototype only declares name, return type, and input type.<br>A definition also defines the scope, variables, process, and return function
5
4
4.5
E02.Q06.A23
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
a function prototype simply declares the functions parameters, the function definition includes any necessary variables and the function's actual code
4
4
4
E02.Q06.A24
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A functgion prototype is a declaration of a function , while function definition specifies what a function does
4
3
3.5
E02.Q06.A25
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
in a function prototype you include the return type, the name of the function, and its parameters if any are needed.<br><br>in a function definition you write the code of what the function will do.
5
5
5
E02.Q06.A26
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function definition contains all the code for a function to work. A function prototype just shows the output, input and function name.
4
5
4.5
E02.Q06.A27
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
function prototype describe the class's public interface without revealing <br><br>the class's member function implementations, function definitions show what <br><br>implementations are being done
4
5
4.5
E02.Q06.A28
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
A function prototype only names the function, its return type, and it's argument list, while a definition defines the above as well as what the function actually does.
5
5
5
E02.Q06.A29
What is the difference between a function prototype and a function definition?
A function prototype includes the function signature, i.e., the name of the function, the return type, and the parameters' type. The function definition includes the actual body of the function.
function prototype describes a classes interface without reviling whatever is inside as for the function definition can't do that. <br>
4
5
4.5
E02.Q07.A00
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
the role of a header file list all the functions a class can do while hiding the inner workings of its functions<br>
4
5
4.5
E02.Q07.A01
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
The main role of header file is it is used to share information among various files.
3
3
3
E02.Q07.A02
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
Header files separate files in which classes are defined and allow the compiler to recognize classes when used elsewhere.
3
4
3.5
E02.Q07.A03
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
No
0
0
0
E02.Q07.A04
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
A header file consists of "reusable" source code such as a class in a file that by convention has a .h filename extension. This differs from .cpp files that contain "source-code."
3
4
3.5
E02.Q07.A05
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
To provide information about the contents of a library. It includes the definition of classes, declarations of functions, data types, and constants.
4
5
4.5
E02.Q07.A06
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
the header file shows the user what types go into and come out of a function but does not allow a user to manipulate the actual code for the function.
4
5
4.5
E02.Q07.A07
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
Header files declares the class member functions.
4
3
3.5
E02.Q07.A08
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
A header file allows for the separation of declaration and implementation into separate files.
3
5
4
E02.Q07.A09
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
the header file has access to the C++ Standard Library and makes certain classes like class string work.
3
0
1.5
E02.Q07.A10
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
“Instruct” the compiler on how to interface with library and user-written components.
3
2
2.5
E02.Q07.A11
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
create a comon area to contain reusable functions.
3
3
3
E02.Q07.A12
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
to declare the functions being used in the classes
3
3
3
E02.Q07.A13
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
#include "hat.h" allows the use of the hat container, so called from the act of pulling names from a hat. The header file for hat includes functions for storage and retrieval of it's contents, mainly put(), peek(), and pull().
3
0
1.5
E02.Q07.A14
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
To hold reusable content or modules separate from the actual source-code file that can be easily referenced and employed for different programs.
3
5
4
E02.Q07.A15
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
a header file is a file used to store a list of prototye functions and data members.
5
5
5
E02.Q07.A16
What is the role of a header-file?
To store a class interface, including data members and member function prototypes.
A header file is a cross communication method between source files, to help limit the size of each individual program. Without header files a program will be 1 large lump of code and thus fairly hard to debug and traverse.
4
3
3.5