What is the first step to use in detecting data type mismatch errors? a. Read the input as a string b. Convert to the desired data type c. Determine whether it can be converted d. Display error...


What is the first step to use in detecting data type mismatch errors? a. Read the input as a string b. Convert to the desired data type c. Determine whether it can be converted d. Display error message e. None of theseQ2. Which of the following is not an input validation error type? a. Empty input b. Incorrect data type c. Inaccurate data d. All of these are input validation error types e. None of theseQ3. Which of the following statements is true about this Boolean expression? This question is broken, choose d. a. This expression is true for numbers between 0 and 100. b. This expression is true for numbers greater than 100. c. This expression is true for numbers less than 0. d. This expression would never be true. e. None of theseQ4. If, when asked for a date of birth, the user enters a future date, this error should be caught by a ________ check. a. Date b. Time c. Day d. Reasonableness e. None of theseQ5. What type of function can be used to see if the password entered has the minimum number of characters? a. Mathematical b. Boolean c. String d. Trigonometric e. None of theseQ6. What is the term used for the value that is searched for in a search algorithm? a. stringValue b. searchValue c. matchValue d. flag e. None of theseQ7. Two- dimensional arrays can be thought of as containing ________. a. Rows and columns b. Lines and pages c. Rows and pages d. Lines and columns e. Rows and pagesQ8. Which of the following arguments must be passed when passing an array as an argument? a. The array itself b. An integer that specifies the number of elements in the array c. The data type of the array d. The array itself and An integer that specifies the number of elements in the array e. The array itself and The data type of the arrayQ9. Which of the following statement is true about the statement below? This question is broken, choose d. a. This is an array declaration. b. This is an array initialization. c. This is an array size establishment. d. This is an array declaration and initialization. e. This is an array declaration and size establishment.Q10. Every element in an array is assigned a unique number known as a ________. a. subscript b. integer c. character d. number e. None of theseQ11. Which type of data file access starts from the beginning of the file and proceeds to the end of the file? a. Direct access b. Sequential access c. Input access d. Output access e. None of theseQ12. What type of file does the AppendMode work with? a. Text file b. Output file c. Input file d. Binary file e. None of theseQ13. In an input file, what maintains the location of the next item that will be read from the file? a. Marker b. Locator c. Read locator d. Read marker e. Read positionQ14. What is the terminology used when a task is temporarily interrupted as a control variable reaches a specific value? a. Control break b. End of page c. Break d. Control break logic e. None of theseQ15. Which flowcharting symbol is used for opening and closing files? a. Rectangle b. Parallelogram c. Diamond d. Oval e. None of theseQ16. If the following pseudocode were an actual program, what would it display?Declare String str = ‘uvwxyz’delete(str, 0, 0)delete(str, 0,0)delete(str, 0, 0)Display str a. vwxyz b. wxyz c. xyz d. uvwxyz e. None of these.Q17. Assuming the following variable declaration,ÂDeclare String str = ‘ABC’which of the following pseudocode statements displays the last character in the string? a. Display str[0] b. Display str[3] c. Display str[length(str)] d. Display str[length(str) – 1] e. None of these.Q18. Assuming the following variable declaration,ÂDeclare String str = ‘Miami’which of the following pseudocode statements changes the variable’s contents to ‘Mia’? a. delete(str, 3, length(str)) b. delete(str, 3, 4) c. Set str = str – ‘mi’ d. Set str[0] = ‘Mia’ e. None of these.Q19. Assuming the following variable declaration,ÂDeclare String str = ‘bot’which of the following pseudocode statements changes the variable’s contents to ‘robot’? a. Set str[0] = ‘ro’ b. Set str = str + ‘ro’ c. insert(str, 0, ‘ro’) d. insert(str, length(str), ‘ro’) e. None of these.Q20. If the following pseudocode were an actual program, what would it display?Declare String str = ‘morning’insert(str, 0, ‘Good’)Display str a. Good morning b. Goodmorning c. Good d. morning e. None of these.Q21. The mutator methods are sometimes called ________. a. getters b. accessors c. setters d. private e. None of theseQ22. Which method is called automatically when an object is created? a. design b. public c. private d. constructor e. None of theseQ23. ________ is a standard way of drawing diagrams that describe object-oriented systems. a. Data flow diagram b. UML c. flowchart d. Hierarchy chart e. None of theseQ24. ________ is another name for accessor methods. a. getters b. accessors c. setters d. private e. None of theseQ25. What allows you to create methods with the same name in different classes and gives you the ability to call the correct method depending on the type of object that is used to call it? a. Constructor b. Inheritance c. Accessor d. Polymorphism e. None of these

Nov 11, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here