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
Naddik [55]
3 years ago
7

Read the following Selection Sort function and determine the correct answer for blank #2.

Computers and Technology
1 answer:
lakkis [162]3 years ago
4 0

Answer:

Option(a) is the correct answer to the given fill in the blank of #2

Explanation:

The values[indexOfMin] returns the minimum element in the particular array As in the given question we have to implement the selection sorting .In the selection sorting we have choose the element and compare them others minimum index that's why we have choose the values[indexOfMin] function.

  • The index of min is not the correct function So we have not used in the given fill in the blanks that's why option(b) is incorrect .
  • The  values[startIndex] represent the starting index only that is not suitable for the given question that's why it is incorrect option.

You might be interested in
A/An ___ is a series of instructions or commands that computer follows used to create software
mamaluj [8]
Code is your answer. Good luck
8 0
3 years ago
Read 2 more answers
Is a psychrometer more likely used at a beach or a desert in California
bixtya [17]

Answer:

the desert

Explanation:

hope this helped

5 0
3 years ago
Mary is entering her senior year of college. She has a meeting on Friday with her advisor to discuss her career plans.Mary is al
kherson [118]

Answer:Business analyst

Explanation: Business analyst is the person in an organization who analyzes the need and working of the business system.It has the functions of analyzing the business process followed in organization, documentation, domain of access etc.

Mary is advised for opting the business analyst post by the advisor because of the qualities she mentioned in the job she wants to pursue.

7 0
3 years ago
How does a layered pattern make use of abstraction and encapsulation?
maxonik [38]

Answer and Explanation:

The ways in which a layered pattern make use of encapsulation and abstraction are as follows:

  • This framework lays its focus mainly on the bundling of related functionalities inside an application into different layer that are vertically stacked over one another.
  • Functionality in between each layer is related by common function or role.
  • Communication in between the layers is clear and exact and is coupled loosely.
  • Providing a layered structure to the application indirectly supports its maintainability and flexibility.

Encapsulation:

Since, features like data type, properties, methods or implementation while designing are not exposed at the boundary of the layer thus No assumptions are required for these features.

Abstraction:

The layered framework abstracts the entire system's view and provides adequate details for better understanding of the roles of each layer individually and the relation that exist between these layers.

7 0
3 years ago
Write a function check_palindrome that takes a string as an input and within that function determines whether the input string i
Setler79 [48]

Answer:

The function in Python is as follows:

def check_palindrome(strn):

   retstr = "Bummer. Not a palindrome."

   if strn[len(strn)::-1] ==strn:

       retstr = "Hey! That's a palindrome!"

       

   return retstr

Explanation:

This defines the function

def check_palindrome(strn):

This sets the return string to not a palindrome

   retstr = "Bummer. Not a palindrome."

This checks if the original string and the reversed string are the same

   if strn[len(strn)::-1] ==strn:

If yes, the return string is set to palindrome

       retstr = "Hey! That's a palindrome!"

This returns the expected string

   return retstr

<em>The function to reverse the string is not given; and the programming language. So, I solve the question without considering any function</em>

3 0
2 years ago
Other questions:
  • Websites using www showed up on the internet for the first time in -992
    9·1 answer
  • To use files in a c++ program you must include the ________ header file.
    15·1 answer
  • What sends massive amounts of email to a specific person or system that can cause that user's server to stop functioning? mail b
    6·1 answer
  • Which is the correct process for attaching a file?
    12·1 answer
  • Assume that the following variables have been defined in a program: int x = 10; int y = 20; int z = 30; Write a cout statement t
    11·1 answer
  • ANSWER ASAP!!!!!
    10·2 answers
  • You are splitting up all your apples equally between 3 people. which statement below will calculate how many apples will be left
    12·1 answer
  • (20points)
    6·1 answer
  • Speed(?)
    5·1 answer
  • You decide to test an audio clip that you have inserted into your presentation, but before you do that you make sure that the co
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!