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
Firdavs [7]
3 years ago
14

For two arrays A and B that are already in ascending order, write a program to mingle them into a new array ordered C evenly, th

e size of C is varied, depending on the values of A and B: the even-indexed (the index starts from 0) elements come from A while odd-indexed elements are from B. For instance, if A is (1,4, 10,12): B is 12.3,10, 11) then the new array C is (1, 2,4,10,12). If a black-box test approach will be used, how many test cases should you design?
Computers and Technology
1 answer:
vlabodo [156]3 years ago
8 0

Answer:

def generate_list(listA, listB):

   listC = []

   for item in listA[0::2]:

       listC.append(item)

   for items in listB[1::2]:

     listC.append(items)

   return sorted(listC)

Explanation:

The python program defines a function called generate_list that accepts two list arguments. The return list is the combined list values of both input lists with the even index value from the first list and the odd index value from the second list.

You might be interested in
What is output if month = 11 and day = 14?
goldfiish [28.3K]

Cheese

…………………………..tggggggcfcgvgvv

4 0
3 years ago
Read 2 more answers
Marie wanted to make sure that the information in her presentation was well organized. She should _____.
Sauron [17]
Marie could either ask a friend or her parents to peer edit it and tell her if its good enough or if she should work on it more.<span />
4 0
3 years ago
The term ____ refers to a series of storage devices, such as tapes, hard drives, and cds, that are networked together to provide
Setler [38]

Answer:

SAN

Please Mark Brainliest If This Helped!

5 0
2 years ago
This organization created web standards to be followed in the creation and contentof a web page​
kumpel [21]

Answer:

The World Wide Web Consortium (W3C) is an international community where member organizations, a full-time staff, invited experts and the public work together to develop Web Standards. Led by Web inventor and Director Tim Berners-Lee and CEO Jeffrey Jaffe, W3C's mission is to lead the Web to its full potential.

<em />

<em>Hope you got it</em>

4 0
3 years ago
What do you call a collection of pre-programmed commands and functions used in programs?
densk [106]
The answer is number 3.libary
5 0
3 years ago
Other questions:
  • Which of the following best describes a computer virus? another name for a software bug the product of a computer crash software
    10·2 answers
  • Given the macro definition and global declarations shown in the image below, provide answers to the following questions:
    5·1 answer
  • I have a question involving do and for loops while using arrays.
    8·1 answer
  • If you have four documents open and click the x button on the title bar, _____.
    8·1 answer
  • (Find the number of days in a month) Write a program that prompts the user to enter the month and year and displays the number o
    8·1 answer
  • What operation can be performed using the total feature ​
    13·1 answer
  • Bitmap images are ________ into different software applications.
    9·1 answer
  • Write a function solution that, given an integer N, returns the maximum possible
    8·1 answer
  • What is the last usable host IP address on the 192.168.32.9/30 network?
    15·1 answer
  • PLZ PLZ PLZ PLZ HELP will mark brainlist What component contains the ROM (Read Only Memory)?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!