<< Prev Question Next Question >>

Question 18/86

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 (86q)
Question 1: Given the code fragment: (Exhibit) What is the result?...
Question 2: Given the code fragment: (Exhibit) What is the result?...
Question 3: Given the following code: (Exhibit) What is the output?...
Question 4: Given: (Exhibit) What is the result?...
Question 5: Given the code from the Greeting.Java file: (Exhibit) Which ...
Question 6: Given: (Exhibit) What is the result? 10 Hello Hello 11...
Question 7: Given: (Exhibit) And given the commands: (Exhibit) What is t...
Question 8: Given the code fragment: (Exhibit) What is the result?...
Question 9: Given the code fragment: (Exhibit) What is the result?...
Question 10: Which two statements are true? (Choose two.)...
Question 11: Given the code fragment: (Exhibit) What is the result? Answe...
Question 12: Given the code fragment: (Exhibit) Which two modifications, ...
Question 13: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 14: Given the code fragment: (Exhibit) What is the result?...
Question 15: Given: (Exhibit) What is the result?...
Question 16: Given the code fragment: What is the result? Invalid Name A:...
Question 17: Given the following code: (Exhibit) What are the values of e...
Question 18: You are developing a banking module. You have developed a cl...
Question 19: Given the code fragment: (Exhibit) What is the result?...
Question 20: Given: (Exhibit) What is the result?...
Question 21: Given the code fragment: (Exhibit) And given the requirement...
Question 22: Given: (Exhibit) What is the result? (Exhibit)...
Question 23: Given: (Exhibit) What is the result?...
Question 24: Given the following class: (Exhibit) Which two changes would...
Question 25: Given: (Exhibit) What is the result?...
Question 26: Given: (Exhibit) What is the result? A: (Exhibit) B: (Exhibi...
Question 27: Given: (Exhibit) What is the result?...
Question 28: Given the code fragment: (Exhibit) What is the result?...
Question 29: Given: (Exhibit) What is the result?...
Question 30: Given the code fragment: (Exhibit) What is the result?...
Question 31: Given the code fragment: (Exhibit) Which code fragment, when...
Question 32: Given the code fragment: (Exhibit) Which two code fragments ...
Question 33: Which three statements are true about exception handling? (C...
Question 34: Given: (Exhibit) And the code fragment: (Exhibit) Which code...
Question 35: Given: (Exhibit) What is the result?...
Question 36: Given: (Exhibit) What is the result?...
Question 37: Given: (Exhibit) Which code fragment can replace the if bloc...
Question 38: Which three are advantages of the Java exception mechanism? ...
Question 39: Given: Acc.java: (Exhibit) Which statement is true?...
Question 40: Which two are benefits of polymorphism? (Choose two.)...
Question 41: Which statement will empty the contents of a StringBuilder v...
Question 42: Which three statements are true about the structure of a Jav...
Question 43: Given the code fragment: (Exhibit) Which code fragment, inse...
Question 44: Which three statements describe the object-oriented features...
Question 45: Given the code fragment: (Exhibit) Which two modifications s...
Question 46: You are asked to create a method that accepts an array of in...
Question 47: Given: (Exhibit)
Question 48: Given the code fragment: (Exhibit) What is the result? (gree...
Question 49: Given the code fragment: What is the result? A: (Exhibit) B:...
Question 50: Given the code fragment: (Exhibit) What is the result?...
Question 51: Given: (Exhibit) What is the result? (Exhibit)...
Question 52: Given: (Exhibit) And given the commands: (Exhibit) What is t...
Question 53: Given the code fragment: (Exhibit) Which option represents t...
Question 54: Given the code fragment: (Exhibit) What is the result?...
Question 55: Given the code fragment: (Exhibit) Assume that the system da...
Question 56: You are asked to develop a program for a shopping applicatio...
Question 57: Given the code fragment: (Exhibit) Which three lines fail to...
Question 58: Given the code fragment: (Exhibit) Which three code fragment...
Question 59: Given the code fragment: (Exhibit) What is the result?...
Question 60: Given the following array: (Exhibit) Which two code fragment...
Question 61: Given the following code for a Planet object: (Exhibit) What...
Question 62: Given the code fragment: (Exhibit) What is the result if the...
Question 63: Given: (Exhibit) What is the result?...
Question 64: Given the code fragment: (Exhibit) What is the result?...
Question 65: Given: (Exhibit) What is the result?...
Question 66: Given the code fragment: (Exhibit) What is the result?...
Question 67: Which one of the following code examples uses valid Java syn...
Question 68: Given: (Exhibit) What is the result?...
Question 69: Given the definitions of the MyString class and the Test cla...
Question 70: Given the code fragment: (Exhibit) What is the result?...
Question 71: Given the code fragment: (Exhibit) What is the result? (Exhi...
Question 72: Given the code fragment: (Exhibit) Which code fragment, when...
Question 73: Given: (Exhibit) What is the result? (Exhibit)...
Question 74: Given the code fragment: (Exhibit) What is the result?...
Question 76: Given the following classes: (Exhibit) Which two options fai...
Question 77: Given: (Exhibit) What is the result?...
Question 78: Given: (Exhibit) And given the code fragment: (Exhibit) Whic...
Question 79: Which statement is true about the switch statement?...
Question 80: Which code fragment causes a compilation error? (Exhibit)...
Question 81: Given the code fragments: (Exhibit) Which modification enabl...
Question 82: Given: (Exhibit) What is the result? Compilation fails at li...
Question 83: Given the code fragment: (Exhibit) What is the result?...
Question 84: Given the code fragments: (Exhibit) Which code fragment, whe...
Question 85: Given: (Exhibit) What is the result? A: (Exhibit) B: (Exhibi...
Question 86: Given: (Exhibit) What is the result?...