Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

True/False Indicate whether the sentence or statement is true or false. ____ 50.

ID: 3627404 • Letter: T

Question

True/False
Indicate whether the sentence or statement is true or false.

____ 50. An array is not a structured data type.

____ 51. Creating an array of ten integers named employee requires the declaration int employee[10];

____ 52. The setiosflags(ios::left) manipulator included in the cout object stream forces each name to be displayed left-justified in its designated field width.

____ 53. Individual structure members cannot be passed to a function as arguments.

____ 54. The statement display(emp.idNum); passes a copy of the structure member emp.idNum to a function named display().

____ 55. The starting address of a structure is the address of the first member of the structure.

____ 56. The increment and decrement operators cannot be applied to pointers.

____ 57. A class defines both data and functions.

____ 58. Although the initial capital letter is not required, it is conventionally used to designate a class.

____ 59. The standard syntax for referring to an object’s attribute is: objectName.attributeName.

____ 60. All class functions should be public.

____ 61. Default values cannot be used in a constructor function.

____ 62. A “pure” object-oriented language must always use classes.

____ 63. Instantiation is the process of renaming an object.

____ 64. Other names for operations defined in a class implementation section are procedures, functions, services and methods.

____ 65. Every constructor must be declared with no return type (not even void).

____ 66. In an object-oriented environment, as long as the existing outside interface is maintained, the internal implementation of any and all operations can be changed without the user ever being aware that a change took place.

____ 67. A file is a collection of data that is stored together under a common name.

____ 68. A file is physically stored on an external medium such as a disk.

____ 69. Very long file names should be avoided because they take more time to type and can result in typing errors.

____ 70. Each file stream has its own mode, which determines the direction of data on the transmission path—that is, whether the path will move data from a file into a program or whether the path will move data from a program to a file.

____ 71. Using the DOS convention, the first eight characters of a file name describe the data, and an extension (the characters after the period) describes the application.

____ 72. File stream objects must be explicitly declared.

____ 73. The declaration ifstream inFile; declares an input file stream object named infile to be an object of the class ifstream.

____ 74. Stream object names, such as inFile and outFile are not programmer-selected.

____ 75. In using the open() method to connect the file’s external name to its internal object stream name, only one argument is required, which is the external file name.

____ 76. One of the problems associated with embedding a file name within program code is that there is no provision for a user to enter or change the desired file name while the program is executing.

____ 77. The close() method does not break the connection between a file’s external name and the file stream object.

____ 78. The open() call is a request to the operating system that can fail for a variety of reasons.

____ 79. Multiple files can be open at the same time.

Explanation / Answer


_FALSE___ 50. An array is not a structured data type.

TRUE____ 51. Creating an array of ten integers named employee requires the declaration int employee[10];

TRUE____ 52. The setiosflags(ios::left) manipulator included in the cout object stream forces each name to be displayed left-justified in its designated field width.

FALSE____ 53. Individual structure members cannot be passed to a function as arguments.

_TRUE___ 54. The statement display(emp.idNum); passes a copy of the structure member emp.idNum to a function named display().

_TRUE___ 55. The starting address of a structure is the address of the first member of the structure.

__FALSE__ 56. The increment and decrement operators cannot be applied to pointers.

TRUE____ 57. A class defines both data and functions.

TRUe____ 58. Although the initial capital letter is not required, it is conventionally used to designate a class.

__TRUE__ 59. The standard syntax for referring to an object’s attribute is: objectName.attributeName.

FALSE____ 60. All class functions should be public.

_FALSE___ 61. Default values cannot be used in a constructor function.

TRUE____ 62. A “pure” object-oriented language must always use classes.

_FALSE___ 63. Instantiation is the process of renaming an object.

____ 64. Other names for operations defined in a class implementation section are procedures, functions, services and methods.

____ 65. Every constructor must be declared with no return type (not even void).

____ 66. In an object-oriented environment, as long as the existing outside interface is maintained, the internal implementation of any and all operations can be changed without the user ever being aware that a change took place.

____ 67. A file is a collection of data that is stored together under a common name.

____ 68. A file is physically stored on an external medium such as a disk.

____ 69. Very long file names should be avoided because they take more time to type and can result in typing errors.

____ 70. Each file stream has its own mode, which determines the direction of data on the transmission path—that is, whether the path will move data from a file into a program or whether the path will move data from a program to a file.

____ 71. Using the DOS convention, the first eight characters of a file name describe the data, and an extension (the characters after the period) describes the application.

____ 72. File stream objects must be explicitly declared.

____ 73. The declaration ifstream inFile; declares an input file stream object named infile to be an object of the class ifstream.

____ 74. Stream object names, such as inFile and outFile are not programmer-selected.

____ 75. In using the open() method to connect the file’s external name to its internal object stream name, only one argument is required, which is the external file name.

____ 76. One of the problems associated with embedding a file name within program code is that there is no provision for a user to enter or change the desired file name while the program is executing.

____ 77. The close() method does not break the connection between a file’s external name and the file stream object.

____ 78. The open() call is a request to the operating system that can fail for a variety of reasons.

____ 79. Multiple files can be open at the same time.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote