<< Prev Question Next Question >>

Question 53/89

You are developing a banking module. You have developed a class named ccMask that has a maskcc method.
Given the code fragment:

You must ensure that the maskcc method returns a string that hides all digits of the credit card number except the four last digits (and the hyphens that separate each group of four digits).
Which two code fragments should you use at line n1, independently, to achieve this requirement? (Choose two.)

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (89q)
Question 1: Given: (Exhibit) Given the code fragment: (Exhibit) Which tw...
Question 2: Which two statements are true? (Choose two.)...
Question 3: Given the following code: (Exhibit) What are the values of e...
Question 4: Which two class definitions fail to compile? (Choose two.) A...
Question 5: Given: (Exhibit) And given the commands: (Exhibit) What is t...
Question 6: Given: (Exhibit) What is the result?...
Question 7: Which two are benefits of polymorphism? (Choose two.)...
Question 8: Given: (Exhibit) What is the result?...
Question 9: Given the code fragment: (Exhibit) Which code fragment, when...
Question 10: Given the following code for a Planet object: (Exhibit) What...
Question 11: Which three statements are true about the structure of a Jav...
Question 12: Given: (Exhibit) What is the result?...
Question 13: Given the code fragment: (Exhibit) Which two modifications s...
Question 14: Given the following class: (Exhibit) Which two changes would...
Question 15: Given: (Exhibit) What is the result? A: (Exhibit) B: (Exhibi...
Question 16: Given: (Exhibit) What is the result?...
Question 17: Which one of the following code examples uses valid Java syn...
Question 18: Which three statements are true about exception handling? (C...
Question 19: Given: (Exhibit) What is the result?...
Question 20: Given the code fragment: (Exhibit) What is the result?...
Question 21: You are asked to develop a program for a shopping applicatio...
Question 22: Given the code fragment: (Exhibit) What is the result if the...
Question 23: Given the code fragment: (Exhibit) What is the result?...
Question 24: Given the code fragment: (Exhibit) Which three code fragment...
Question 25: Given the code fragment: (Exhibit) What is the result?...
Question 26: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 27: Given the code fragment: (Exhibit) What is the result?...
Question 28: Given the code fragment: (Exhibit) What is the result?...
Question 29: Given the code fragment: (Exhibit) What is the result?...
Question 30: Given the code fragment: (Exhibit) What is the result?...
Question 31: Given the code fragment: (Exhibit) Which two code fragments ...
Question 32: Given: (Exhibit) What is the result?...
Question 33: Given the code fragment: (Exhibit) What is the result? A: (E...
Question 34: The following grid shows the state of a 2D array: (Exhibit) ...
Question 35: Which statement is true about Java byte code?...
Question 36: Given the code fragment: (Exhibit) What is the result?...
Question 37: Given the code fragments: (Exhibit) What is the result?...
Question 38: Given: (Exhibit) What is the result?...
Question 39: Given the code fragment: (Exhibit) What is the result?...
Question 40: Given: (Exhibit) And given the commands: (Exhibit) What is t...
Question 41: Given the code fragment: (Exhibit) Which option represents t...
Question 42: Given: Acc.java: (Exhibit) Which statement is true?...
Question 43: Given the code fragment: (Exhibit) What is the result?...
Question 44: Given the code fragment: (Exhibit) What is the result?...
Question 45: Given: (Exhibit) What is the result?...
Question 46: Given the code fragment: (Exhibit) What is the result?...
Question 47: Given the code fragment: (Exhibit) What is the result?...
Question 48: You are asked to create a method that accepts an array of in...
Question 49: Given the code fragment: (Exhibit) Which three lines fail to...
Question 50: Given the code fragment: (Exhibit) What is the result? A: Co...
Question 51: Given the code fragment: (Exhibit) Which three code fragment...
Question 52: Given: (Exhibit) What is the result?...
Question 53: You are developing a banking module. You have developed a cl...
Question 54: Given: (Exhibit) What is the result? (Exhibit)...
Question 55: Given: (Exhibit) What is the result?...
Question 56: Given: (Exhibit) What is the result?...
Question 57: Given: (Exhibit) What is the result?...
Question 58: Given the content of three files: (Exhibit) Which statement ...
Question 59: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 60: Given the code fragment: (Exhibit) What is the result? (Exhi...
Question 61: Given: (Exhibit) What is the result?...
Question 62: Given: (Exhibit)
Question 63: Given: (Exhibit) What is the result? (Exhibit)...
Question 64: Given the definitions of the MyString class and the Test cla...
Question 65: Given the code fragment: (Exhibit) What is the result?...
Question 66: Given the following class: (Exhibit) Which three pieces of c...
Question 67: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 68: Given the code fragment: (Exhibit) What is the result?...
Question 69: Given the code fragment: (Exhibit) What is the result?...
Question 70: Given the code fragments: (Exhibit) Which modification enabl...
Question 71: Which statement will empty the contents of a StringBuilder v...
Question 72: Given: (Exhibit) What is the result?...
Question 73: Given: (Exhibit) What is the result?...
Question 74: Given the code fragments: (Exhibit) Which code fragment, whe...
Question 75: Which code fragment causes a compilation error? (Exhibit)...
Question 76: Given: (Exhibit) What is the result?...
Question 77: Given the following array: (Exhibit) Which two code fragment...
Question 78: Given the code fragments: (Exhibit) And, (Exhibit) Which sta...
Question 79: Given: (Exhibit) What is the result?...
Question 80: Given the code fragment: (Exhibit) Which code fragment, inse...
Question 81: Given the code fragment: (Exhibit) What is the result?...
Question 82: Given the code fragment: (Exhibit) What is the result?...
Question 83: Given: (Exhibit) What is the result?...
Question 84: Given: (Exhibit) How many MarkList instances are created in ...
Question 85: Given the following classes: (Exhibit) Which two options fai...
Question 86: Given the following class declarations: public abstract clas...
Question 87: Given: (Exhibit) What is the result?...
Question 88: Given the code fragment: (Exhibit) And given the requirement...
Question 89: Given the following code for the classes MyException and Tes...