<< Prev Question Next Question >>

Question 88/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: Which two statements are true? (Choose two.)...
Question 2: Given the code fragments: (Exhibit) Which code fragment, whe...
1 commentQuestion 3: Given: (Exhibit) What is the result?...
Question 4: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 5: Given the code fragment: (Exhibit) What is the result?...
Question 6: Which two statements are true about Java byte code? (Choose ...
Question 7: Given: (Exhibit) And given the commands: (Exhibit) What is t...
Question 8: Given: (Exhibit) What is the result?...
Question 9: Which statement will empty the contents of a StringBuilder v...
Question 10: Given: (Exhibit) What is the result?...
Question 11: Given the code fragment: (Exhibit) What is the result? A: (E...
Question 12: Given: (Exhibit) Which code fragment should you use at line ...
Question 13: Given the code fragment: (Exhibit) What is the result?...
Question 14: Given the code fragment: (Exhibit) What is the result?...
Question 15: Given: (Exhibit) What is the result?...
Question 16: Given the code snippet from a compiled Java source file: (Ex...
Question 17: Given: (Exhibit) What is the result?...
Question 18: Given the code fragments: (Exhibit) What is the result?...
Question 19: Which one of the following code examples uses valid Java syn...
Question 20: Given the code fragment: (Exhibit) Which two modifications, ...
Question 21: Given the code fragment: (Exhibit) What is the result?...
Question 22: Given the code fragment: (Exhibit) What is the result?...
Question 23: Given the code fragment: (Exhibit) What is the result?...
Question 24: Given the code snippet from a compiled Java source file: (Ex...
Question 25: Given the code fragment from three files: (Exhibit) Which co...
Question 26: Given the code from the Greeting.Java file: (Exhibit) Which ...
Question 27: Given: (Exhibit) What is the result?...
Question 28: Given the code fragment: (Exhibit) What is the result?...
Question 29: Which three statements describe the object-oriented features...
Question 30: Given the code fragment: (Exhibit) What is the result?...
Question 31: Given: (Exhibit) What is the result?...
Question 32: Given the following class declarations: public abstract clas...
Question 33: Given: (Exhibit) What is the result?...
Question 34: Given: (Exhibit) And given the commands: (Exhibit) What is t...
Question 35: Given: (Exhibit) What is the result?...
Question 36: You are asked to develop a program for a shopping applicatio...
Question 37: Given the code fragment: (Exhibit) Which three code fragment...
Question 38: Given the code fragment: (Exhibit) And given the requirement...
Question 39: Given the code fragment: (Exhibit) What is the result?...
Question 40: Given: Acc.java: (Exhibit) Which statement is true?...
Question 41: Given the code fragment: (Exhibit) Which modification enable...
Question 42: Given the following main method: (Exhibit) What is the resul...
Question 43: Given the code fragment: (Exhibit) What is the result?...
Question 44: Given the code fragment: (Exhibit) What is the result?...
Question 45: Which is true about the switchstatement?...
Question 46: Given: (Exhibit) What is the result?...
Question 47: Given the code fragment: (Exhibit) What is the result?...
Question 48: Given the code fragment: (Exhibit) Which two modifications, ...
Question 49: Given: (Exhibit) And given the code fragment: Book book1 = n...
Question 50: Which three statements are true about the structure of a Jav...
Question 51: Given: (Exhibit) What is the result? (Exhibit)...
Question 52: Given the code fragment: (Exhibit) What is the result?...
Question 53: Given: (Exhibit) Given the code fragment: (Exhibit) Which tw...
Question 54: Given the code fragment: (Exhibit) What is the result?...
Question 55: Given the code fragment: (Exhibit) What is the result?...
Question 56: Given the code fragment: (Exhibit) Which option represents t...
Question 57: Given the code fragment: (Exhibit) Which modification enable...
Question 58: Given: (Exhibit) What is the result?...
Question 59: Given: (Exhibit) What is the result?...
Question 60: Given the following array: (Exhibit) Which two code fragment...
Question 61: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 62: Given the code fragment: (Exhibit) What is the result?...
Question 63: The following grid shows the state of a 2D array: (Exhibit) ...
Question 64: Given the code fragment: (Exhibit) What is the result?...
Question 65: Given: (Exhibit) And given the code fragment: (Exhibit) Whic...
Question 66: Given the code fragment: (Exhibit) What is the result?...
Question 67: Given the following classes: (Exhibit) Which two options fai...
Question 68: Given: (Exhibit) What is the result?...
Question 69: Given the code fragment: (Exhibit) What is the result?...
Question 70: Given the code fragment: (Exhibit) Which three lines fail to...
Question 71: Given: (Exhibit) What is the result?...
Question 72: Given the code fragment: (Exhibit) What is the result?...
Question 73: Which statement is true about the switch statement?...
Question 74: Given the following class: (Exhibit) Which two changes would...
Question 75: Given: (Exhibit) What is the result?...
Question 76: You are asked to create a method that accepts an array of in...
Question 77: Given the code fragment: (Exhibit) What is the result?...
Question 78: Given: (Exhibit) And given the code fragment: (Exhibit) What...
Question 79: Given the code fragment: (Exhibit) And given the requirement...
1 commentQuestion 80: Given the code fragment: (Exhibit) What is the result?...
Question 81: Given: (Exhibit) What is the result?...
Question 82: Given: (Exhibit)
Question 83: Given: (Exhibit) What is the result? A: (Exhibit) B: (Exhibi...
Question 84: Given the code fragment: (Exhibit) What is the result?...
Question 85: What is the name of the Java concept that uses access modifi...
Question 86: Given the code fragment: (Exhibit) What is the result?...
Question 87: Given the code fragment: (Exhibit) What is the result?...
Question 88: You are developing a banking module. You have developed a cl...
Question 89: Given: (Exhibit) What is the result?...