Answer: (D) Java
Explanation:
In the programming language, the pattern matching is the process checking the specific sequence of the information and data and also locating the sequence among the raw data and sequence of the token in the system.
Java programming language does not provide any built in operation pattern matching. Java provide the different types of logical operations for accessing the functions in its class library. The pattern matching mainly include the location of the output pattern which substitute the matching pattern in the system.
I guessing it should be on the back of the card
Answer:
def nonRepeatings(s3):
non = []
letter_dictionary = {}
for l in s3:
if l in letter_dictionary:
letter_dictionary[l] += 1
else:
letter_dictionary[l] = 1
for c in letter_dictionary:
if letter_dictionary[c] == 1:
non.append(c)
return non
Explanation:
- Declare an empty list and a dictionary
- Initialize a for loop that iterates through the given string s3
Inside the loop:
- If a character in the string is in the dictionary, increment its count by 1. If not, add it to the dictionary
When the first loop is done, initialize another for loop that iterates through the dictionary.
- Inside the loop, check if any character has a value of 1, put it to the non.
- Finally, return the non
Answer:
num
Explanation:
In java reserved words are also known as keywords, keywords are reserve words for a language that can't be used as an identifier(name of a class, name of a variable, name of an array etc.) int, public static, are reserve words.
In given question num is not a reserved word.