Which of the following statement about ide is true?




Question 1.1. (TCO 1) Which of the following statement about IDE is true? (Points : 4)


       IDE only allows programmers to editing their code.


       IDE provides editing, compiling, and debugging in one software package.


       Visual Studio.Net is not an IDE.


       IDE stands for integrated development engine.






Question 2.2. (TCO 2) Which characters make up the stream insertion operator? (Points : 4)














Question 3.3. (TCO 2) Which of the following statements about C++ syntax is true? (Points : 4)


       Every executable statement must end with a comma.


       A block is enclosed inside parentheses.


       C++ is not case sensitive.


       C++ is case sensitive.






Question 4.4. (TCO 2) To assign a value 1 to variable x, you write _____. (Points : 4)




       1 = x;


       x = 1;


       x == 1;






Question 5.5. (TCO 3) What is the value of x after the following statement?


float x;


x = 3.0 / 4.0 + 3 + 2 / 5 (Points : 4)














Question 6.6. (TCO 4) _____ is often used in the design of a program to describe the program processing. (Points : 4)






       Program control


       Data flow






Question 7.7. (TCO 4) Which of the following is true about control structures? (Points : 4)


       Control structures can be part of a flow chart.


       Control structures can be part of pseudocode.


       Control structures include sequence structure, selection structure, and repetition structure.


       All of the above






Question 8.8. (TCO 4) One-way if statements execute an action if the condition is _____. (Points : 4)


       sent to the console






       within a nested loop






Question 9.9. (TCO 5) A _____ repeats actions while some condition remains unchanged. (Points : 4)


       repetition structure


       control structure


       selection structure


       sequence structure






Question 10.10. (TCO 5) When should a programmer select a do while loop for his or her program? (Points : 4)


       When the programmer knows the exact number of times the loop will be executed


       When the programmer knows the loop must be executed at least once


       When he or she is not sure how many times the loop will be executed


       There is no reason to select a for loop. Any loop can be used at any time.






Question 11.11. (TCO 5) The while loop is what type of loop? (Points : 4)


       Posttest loop


       Pretest loop


       Infinite loop


       None of the above






Question 12.12. (TCO 5) A loop that is inside another loop is called an _____. (Points : 4)


       outer loop


       inner loop


       infinite loop


       None of the above






Question 13.13. (TCO 6) How does the environment handle a breakpoint when the debugger is running a program? (Points : 4)


       Stops the program at the line that has the breakpoint, but doesn’t execute it


       Stops the program at the line of the breakpoint after it has executed it


       Runs past the line with the breakpoint but echoes the values in the Trace window


       Shows the call stack in the memory window






Question 14.14. (TCO 7) Defining more than one function with the same function name but different parameters is called _____. (Points : 4)


       function underloading


       function overloading


       function mimicking


       function substitution






Question 15.15. (TCO 8) When a function does not return a value, it is called a _____ function. (Points : 4)






















1. (TCO 7) Arguments and parameters must match in _____. (Points : 4)


       data type


       numbers of parameters


       the order of parameters


       All of the above






Question 2.2. (TCO 8) Which function prototype indicates that the parameter is passed by reference? (Points : 4)


       int myFunction( double &)


       int myFunction(double)


       int myFunction(double *)


       int myFunction(&)






Question 3.3. (TCO 8) What would be a valid argument for the following function?




char myFunction(int &x) (Points : 4)


       int myVariable;


       char myVariable;




       All of the above






Question 4.4. (TCO 9) What type of menu first displays the main menu and then, based on the user’s selection, displays a submenu? (Points : 4)


       Single-level menu


       Multiple-level menu


       Step-level menu


       Sublevel menu






Question 5.5. (TCO 9) What is not part of the menu valued selections process? (Points : 4)


       Input validation loop


       Including the default clause in the case structure




       Use of an else clause






Question 6.6. (TCO 9) A(n) _____ represents an entity in the real world that can be distinctly identified. (Points : 4)














Question 7.7. (TCO 10) Bug errors are _____ errors. (Points : 4)












Question 8.8. (TCO 11) Which of the following is false? (Points : 4)


       All elements of the array have the same data type.


       All elements in an array have the same name.


       All elements in an array have the same subscript.


       The first element of the array has a subscript of zero.






Question 9.9. (TCO 11) Programmers often mistakenly reference the first element in an array with index1. What is this called? (Points : 4)














Question 10.10. (TCO 11) A five-row, six-column array has a total of how many elements? (Points : 4)














Question 11.11. (TCO 12) Given the following array:




int profit [5] = {10, 20, 31, 55, 66};




The following statement would replace which value?


profit [4] = profit[1] + 3; (Points : 4)


       55 with 13


       66 with 13


       66 with 23


       55 with 23






Question 12.12. (TCO 12) An array of characters is known as a _____. (Points : 4)


       character set






       character matrix






Question 13.13. (TCO 13) Files to which data is written are known as _____. (Points : 4)


       output files


       input files


       active files


       sequential files






Question 14.14. (TCO 13) In terms of storage and retrieval of data, sequential access files are similar to _____. (Points : 4)


       floppy disks




       hard disks


       cassette tapes






Question 15.15. (TCO 13) When reading data from a sequential file, the data will be read _____. (Points : 4)


       in alphabetical order


       sorted from smallest to largest


       in key field order


       in the order in which it was written




1. (TCO 13) Create a writeData method snippet of code using NAME and State as variables. Collect the information and write it to file. (Points : 20)








Question 2. 2. (TCO 9) Explain what a default constructor is and why it is used. Provide code segment to illustrate a simple class, create a constructor method to intialize a private property, and demonstrate how a object would be instantiated with your constructor. (Points : 15)








Question 3. 3. (TCO 11) Explain how to declare and assign values to a two-dimensional array and provide a C++ program segment that illustrates your answer. Provide a summary of how the values are stored. (Points : 15)








Question 4. 4. (TCO 7) In your own words, define a function and code an example of creating a function and calling it. (Points : 15)








Question 5. 5. (TCO 5) Using a loop, write a program that reads in exactly five integers and outputs the sum. (Points : 15)








Question 6. 6. (TCO 4) What is the advantage of using the conditional operator? (Points : 15)








Question 7. 7. (TCO 3) Explain the rules of operator precedence and how an expression using numeric values and operators would be evaluated. (Points : 15)







Approximately 250 words