1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
MakcuM [25]
3 years ago
13

To store non-duplicated objects in the order in which they are inserted, use:______

Computers and Technology
1 answer:
Umnica [9.8K]3 years ago
4 0

Answer:

b. LinkedHashSet

Explanation:

A LinkedHashSet is an ordered version of HashSet that maintains a doubly-linked List across all elements. When the iteration order is needed to be maintained this class is used. LinkedHashSet maintains a linked list of the entries in the set, in the order in which they were inserted.

You might be interested in
You have been asked to write a username validation program for a small website. The website has specific rules on what constitut
umka21 [38]

Answer:

#function to validate username

def valid_username(username):

   

   #checking is length is between 8 to 15

   length_valid=True

   if(len(username)<8 or len(username)>15):

       length_valid=False;

   

   #checking is string is alphanumeric

   alphanumeric=username.isalnum()

   

   #checking first_and_last Characters of string is not digit

   first_and_last=True

   if(username[0].isdigit() or username[len(username)-1].isdigit()):

       first_and_last=False

   

   #counting uppercase lowercase and numeric Characters in string

   uppercase=0

   lowercase=0

   numeric=0

   

   for i in username:

       if(i.isdigit()):

           numeric=numeric+1

       elif(i.isalpha()):

           if(i.isupper()):

               uppercase=uppercase+1

           else:

               lowercase=lowercase+1

               

   valid_no_char=True

   if(uppercase<1 or lowercase<1 or numeric<1):

       valid_no_char=False

           

 

   #printing the result

   print("Length of username: "+str(len(username)))

   print("All Characters are alpha-numeric: "+str(alphanumeric))

   print("First and last Character are not digit: "+str(first_and_last))

   print("no of uppercase characters in the username: "+str(uppercase))

   print("no of lowercase characters in the username: "+str(lowercase))

   print("no of digits in the username: "+str(numeric))

   

   #checking string is Valid or not

   if(length_valid and alphanumeric and first_and_last and valid_no_char):

       print("Username is Valid\n")

       return True

   else:

       print("username is invalid, please try again\n")

       return False

#loop runs until valid_username enterd by user

while(True):

   

   username=input("Enter a username: ")

   if(valid_username(username)):

       break

Explanation:

The code was created by considering all the required cases asked in the question.

In this program, I asked username from the user continuously until it enters a valid username

first it check for length of string

then check is string contains only alphanumeric characters

then first and last digit is or not

than no of uppercase lowercase and numeric character

using the above parameter declare username valid or not

3 0
3 years ago
Steven is an advertising executive at a large auto parts company. He uses his google ads recommendations page to help him with s
lana [24]

Answer:

Apply recommendations across the multiple layers of his advertising strategies.

Explanation:

In the given statement, Steven is an employee of an organization of auto parts and he uses own google advertisement page for the purpose of strategies to make perfect he owns advertisement campaigns for the google search. He values the scores of the optimization because Steve applies charge over the different layers of his ads strategies.

4 0
3 years ago
The Internet enables people to make better economic decisions because they
sammy [17]

Answer:

C

Explanation:

C seems to be the most logical choice for a "good" choice.

It makes the most sense.

8 0
3 years ago
Read 2 more answers
In common practice, how often do incremental data backups usually occur? hourly daily weekly monthly
Makovka662 [10]

Incremental backups usually occur weekly.

6 0
3 years ago
How many performance steps are involved in the process of completing a detainee?
Reika [66]
It looks like you've posted your question in wrong topic. Anyway I can help you. Performance steps for Guard Detainees and Completing a detainee are almost the same. If my memory serves me well, there are 6 performance steps. But the main rule is to be patient and ready for action. Always prepare your weapons to use, check if they are functional.
6 0
3 years ago
Other questions:
  • Elements such as page parts and calendars are easily inserted by navigating to the _____ grouping. Building Blocks Illustrations
    9·1 answer
  • Which type of text may be formatted to print at the bottom of every page?
    6·1 answer
  • A broker statement is an example of an ___ record
    12·2 answers
  • What is a sign of the brick and mortar and the virtual world meeting together?
    14·1 answer
  • Kim is creating a PowerPoint
    13·1 answer
  • Which game would be classified as an advergame? A. Tomb Raider B. Fifa Soccer C. Prince of Persia D. Flower
    9·1 answer
  • How many cost units are spent in the entire process of performing 40 consecutive append operations on an empty array which start
    14·1 answer
  • What can you think of as a box or container that holds a value and has a label?
    11·2 answers
  • Digital Sep <br> helps as reimagine outcomes true or false
    9·1 answer
  • How is cell phone usage changing American Society? Is this a good change or a bad change? Explain.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!