What would be the state of the following list after each of the first four passes in a Bubble sort, sorting into ascending sequence?
(a) 65, 34, 28, 68, 52, 21

Answers

Answer 1

Answer:

21,28,34,52,65,68

Explanation:

Answer 2

Following are the Python program to Bubble sort the given array value.

Program:

def sort(l):#defining the a method sort that takes list value in parameter

   for n in range(len(l)-1, 0, -1):#defining a loop that counts list value and performs the swapping

       for i in range(n):#defining another loop that counts range of list

           if l[i] > l[i + 1]:#defining if block that check list number value

               l[i], l[i + 1] = l[i + 1], l[i]#performing the swapping

l=[ 65, 34, 28, 68, 52, 21]#defining a list l that holds integer value

print("Unsorted list: ")#print message

print(l)#print list value

sort(l)#calling the sort method

print("Sorted Array: ")#print message

print(l)#print sorted list value

Output:

Please find the attached file.

Program Explanation:

Defining the method "sort" that takes list value "l" as a parameter, and defines a loop that counts list values and performs the swapping.Inside the loop, another loop is defined that counts the range of the list and uses a conditional statement.In this case, it uses an if block that checks the list number value and performs the swapping.Outside the method, a list "l" that holds integer values is used, and the print method that calls and prints its value.

Find out more about the sorting here:

brainly.com/question/18568184

What Would Be The State Of The Following List After Each Of The First Four Passes In A Bubble Sort, Sorting

Related Questions

In the Page Setup dialog box, the _____ tab gives you options to change the paper size.
a.
Layout
b.
Paper
c.
Sizes
d.
Margins

Answers

Answer:

I think its either layout or sizes

Which of the following are likely reasons people enjoy watching lifelike stories on the screen? Select all that apply.


People develop a connection that is emotional with the stories and/or characters.

The stories remind them of situations they are familiar with.

The situations they see are not familiar to them.

They are distracted by the video and sound combination.

Answers

Answer:

c

Explanation:

I dont know but omost every time I guess I get it right

Answer:

A: People develop a connection that is emotional with the stories and/or characters.

and

D:The stories remind them of situations they are familiar with.

Explanation:

edg2021

Can a syntax error occur in a block-based code? Why or why not?

Answers

The environment stops two instructions from snapping together if they cannot be combined to form a valid assertion. Via preventing syntax problems in this way, block-based programming environments maintain the practice of writing programs by piecemeal assembly of statements.

Why do syntax errors happen?

When a programmer enters an incorrect line of code, they have made a syntax error. Missing punctuation or misspelled names are the two most common syntax mistakes. In either a compiled or an interpreted programming language, a syntax error prevents the code from running.

The source code contains a syntax error, but the object code does not. A source program is created by a programmer using a word processor or editor and written in high level language.

To learn more about Syntax error refer to:

https://brainly.com/question/24822807

#SPJ1

Which note-taking method quickly captures and organizes information?

mapping
Cornell
SQRW
recording

Answers

Answer:

c mapping

Explanation:

Mapping  is a note-taking method that quickly captures and organizes information

What is mapping method in note-taking?

Mapping is known to be s process where one can make use of their comprehension or concentration skills and then they can use in a note taking form.

In this method, it always linked each fact or idea to all other fact or idea. Mapping is known to be a kind of  graphic representation of the work or all the contents of a lecture.

Learn more about mapping  from

https://brainly.com/question/1425367

The item in this illustration that is highlighted is _____.



help
the status bar
zoom control
the title bar

Answers

Answer:the title bar

Explanation:

Answer:

I think it's title bar

Explanation:

I'm not positive but another guy said it and its the only one that makes sense

Which tab is used to configure an export to PST in Outlook 2016?
Send/Receive
File
Home
Review

Answers

Answer:

File Tab

On the topmost ribbon of MS Outlook, go to the File Tab. Click Options>Advanced>Export. From Import and Export wizard, select Export to a file.

The file tab in Outlook 2016 will be used to configure an export to PST. Then, choice B is the best one.

What is outlook?

On your PC, Outlook Desktop App is already installed. You can access it from the Taskbar or the Start menu on your computer (bottom panel of your screen). By logging into your email account using a web browser that you can use Outlook on the web.

By selecting the "Files" icon in Outlook's lower-left corner, you can reach this view. It will be situated between the "People" and "To-Do" icons by default. If you cannot see it but instead have a three-dot icon, click it and then select "Files" from the menu that appears.

The tab used to configure an export to PST in Outlook 2016 will be known as the file tab. Then the correct option is B.

More about the outlook link is given below.

https://brainly.com/question/17457799

#SPJ6

Which is the civil penalty for COPYRIGHTS violations? Choose the answer. $200-$150,000 fine up to five years in jail Fines and court costs 1 year in jail

Answers

Answer: $200-$150,000 fine

Explanation:

I took the Quiz

Which of the following Office Online apps is most effective for creating spreadsheets?

Answers

Answer:

Excel

Explanation:

It allows you to make spreadsheets.

Create a bash shell script for a number guessing game. Here are the requirements: a. Your program generates a random number between 0 and 128 and keeps asking the user to guess the number until the user guesses it correctly. b. If the user guesses a number that is lower or higher than the number to be guessed then indicate that information to the user as a ‘low guess’ or a ‘high guess’ so that the user can get to the correct guess quicker. c. The program keeps track on number of guesses taken by the user to get to the correct guess. This is user’s score. d. Your program asks user for the name and adds user’s name and the score in a file that keeps track of the scores by various users. e. At the end of the game, the program displays the top 3 scores (lowest 3 scores) along with the name of the users to conclude the game. John 4 Sam 7 Tony 10

Answers

Answer:

Here is the bash shell script:

scorefile="scores_bash"

guess=-1

typeset -i n=0

echo -e "guess.bash - Guess a number between 0 to 128\n"

(( answer = RANDOM % 128 + 0 ))

while (( guess != answer )); do

n=n+1

read -p "Enter guess $n: " guess

if (( guess < answer )); then

 echo "Low guesss"

elif (( guess > answer )); then

 echo "High guess"

fi

done

echo -e "You guessed the number in $n guesses.\n"

read -p "Enter your name: " name

echo $n $name >> $scorefile

echo -e "\nScores"  

sort -n $scorefile

Explanation:

The program creates a scorefile as scores_bash to store the names and scores. Next the program initializes the guess with -1. guess is used to store the guess made by user and n is used to store the number of trials user took to guess the correct number. Next the program prompts the user to: Guess a number between 0 to 128 and generates random numbers from 0 to 128 and store it into answer.  Next the while loop keeps repeating until the user guesses the correct number. If the user guess is less than the correct answer then the program displays the message Low guess otherwise displays High guess. When the user guesses the correct number, the loop breaks and the message You guessed the number in $n guesses. is displayed where in place of $n the number of trials user take to guess the number is displayed. Next the user is asked to enter his name.

echo $n $name >> $scorefile statement adds the n which is the user score and name which is the names of user to the score file.  sort -n $scorefile  sorts the file in ascending order to display the lowest  scores. The screenshot of program with its output is attached.

Meet my horse! ask questions about him too!

Answers

Answer:

no answer, just horse

Explanation:

how much does he eat and is his hair soft? jdnfnnan

Answer:

Hi I have a horse too. He is so handsome

what dicapline do you do?

Explanation:

The ____ logic unit is responsible for the execution of arithmetic and logical operations.

Answers

Answer:

The arithmetic/logic unit(ALU)

Explanation:

This unit executes all arithmetic and logical operations through the electrical circuitry it has.

What is the output?
password = "sdf# 356"
>>> password. isalnum()

Answers

The output is False because the string password contains #.

Answer:

The answer is False.

Explanation:

The answer is false becasue it has other characters than letters and numbers.

Have a great day, I hope this helped.

Which of the following is NOT a characteristic developed by New Journalism?
illustrations and photographs
flashy page layouts
satirical news stories
banner headlines

Answers

Flashy page layouts

The one that is not a characteristic developed by New Journalism is flashy page layouts. The correct option is b.

What are flashy page layouts?

The flashy page Layout describes how the document pages will appear after printing. When we check the layout in Word, we can see that the page layout includes components such as margins, column count, and the ability to alter the header and footer.

There are various sorts of layouts, such as magazine layouts, static, adaptable, dynamic, adaptive layouts, and responsive layouts.

The features are as follows:

Page margin dimensions.Image and figure size and placementColumn and gutter count and size (gaps between columns)Intentional white space placement

Therefore, the correct option is b, flashy page layouts.

To learn more about flashy page layouts, refer to the link:

https://brainly.com/question/28702177

#SPJ2

What are some consequences of posting inappropriate material online? (Choose all that apply)
friends and loved ones might think less of you
you might land in legal trouble
your social media history will be erased from the internet
future employers may not want to hire you.

Answers

Answer:

I think all of them is a consequence of posting inappropriate material online

All except the third one unless it’s something really bad. But otherwise it’s without the third one

An instrument used to measure the amount of electrical current intensity in a circuit

Answers

the instrument is an ammeter

five reasons Why Photographers Aren't Filmmakers

Answers

Answer:

1. They don't like recording things (They'd rather take photos)

2. It doesn't take much time to take a good photo as it is to record a video

3. They'd rather work alone or with others who want pictures taken

Explanation:

These are weird reasons but true..I'm a photographer so these are my reasons. I don't have others tho. Sorry.

-
Which of the following is an example of academic integrity?
A. You work on each assignment mostly by yourself
B. You don't copy work or allow others to copy your work
c. You look up answers on the internet without citing the source
D. You work with close friends on assignments without instructor approval

Answers

Answer:

B. You don't copy work or allow others to copy your work

Explanation:

The example of academic integrity is that you don't copy work or allow others to copy your work. The correct option is B.

What is academic integrity?

The moral code or ethical policy of academics is known as academic integrity. The R.C., regarded as the "grandfather of academic integrity," popularised the phrase.

Being honest, fair, polite, and responsible in your studies and academic work is referred to as having academic integrity.

It entails acting in accordance with these ideals both when producing your own work and engaging with that of others.

Academic integrity is the practise of doing learning, teaching, and research with the principles of honesty, trust, fairness, respect, and responsibility.

Students, teachers, researchers, and all other staff members should act honestly, take responsibility for their choices, and be fair in all aspects of their job.

Thus, the correct option is B.

For more details regarding academic integrity, visit:

https://brainly.com/question/9540934

#SPJ2

What is one step taken when solving a computer software problem?

Answers

scanning the computer and deleting any viruses

[ if this helped you please give brainliest :) ]

Answer:

B. scanning the computer and deleting any viruses

Explanation:

edge 2020

What is the issue with this code

interface Box2{

static final int ITEM_CODE=201;

int method1();

double method2();
}

public class Window implements Box2{

public int method1(){

return ITEM_CODE;

}

}

public class myFrame{

public static void main(String args[]){

Window w = new Window();

System.out.println(w.method1());

}

}

A.
The interface should be declared as abstract.
B.
The class should be declared as abstract.
C.
The interface should have an implementation of method2.
D.
The class should have an implementation of method2.

Answers

Question: What is the issue with this code

interface Box2{

static final int ITEM_CODE=201;

int method1();

double method2();

public class Window implements Box2{

public int method1(){

return ITEM_CODE;

public class myFrame{

public static void main(String args[]){

Window w = new Window();

System.out.println(w.method1());

A. The interface should be declared as abstract.

B. The class should be declared as abstract.

C. The interface should have an implementation of method2.

D. The class should have an implementation of method2.

Answer: A The interface should be declared as abstract.

what are the software is there ? their uses

Answers

Answer:

Computer software is programming code executed on a computer processor. The code can be machine-level code, or code written for an operating system. An operating system is software intended to provide a predictable and dependable layer for other programmers to build other software on, which are known as applications.

I’m sorry but I don’t think you worded that correctly

Select the correct answer.

What is the drawback of the linear model?

A. communication is only in one direction

B. too much noise is created

C. no feedback is sent on receiving the message

D. long travel between the sender and the receiver

I NEED this asap
20 points

Answers

long travel between the sender and the receiver

Answer:

D. long travel between the sender and the receiver

Explanation:

Which below best describes JavaScript? *
a) a common dynamic computer language
b) C++ with a different name
c) The study of coding

Please help me out! 23 extra points!

Answers

Answer:

it is a programing languwage that is useualy used to program visual or text based applications

Explanation:

Answer: A

JavaScript is a common dynamic computer language. It was invented decades ago.

C++ is a different way of coding, it is not the answer. Many different people use C++, because they prefer it is easier than JavaScript.

Hope this helps!

Use the drop-down menu to complete the steps for using the Autofill feature. Click the . Click the . Drag the to the desired range. Click the Autofill option you want to use.

Answers

Answer:

Cell,fill handle,fill handle

Explanation:

Trust

Answer:

Guy up top is correct, it's Cell, Fill handle, Fill handle, in that order

Explanation:

Name the application pagram used in creating the
document above​

Answers

Answer:

Excel or Google Sheets

Explanation:

Urgent Please Help ASAP!! 50 Points!! Assignment due in 15 minutes!!

Reflect on the questions below.

1.) Why do some people resist help from others?
2.) Is it useful to work separately at some point in time during pair programming?
3.) How is pair programming beneficial?
4.) In pair programming, how can we better work together?

Answers

Questions:

1.) Why do some people resist help from others?

2.) Is it useful to work separately at some point in time during pair programming?

3.) How is pair programming beneficial

4.) In pair programming, how can we better work together?

Answers:

1.) Some people are prideful in their work, or they're just embarrassed to ask for assistance.

2.) It can be done, but pair programming is further effective with others.

3.) Pair programming is beneficial because you can get the job done faster.

4.) In pair programming, you can better work with your partner by working on different sections, and then checking each other's tail when the job is almost finished.

These answers are a combination of my knowledge and opinion(s). If you need any more help, do not hesitate to let me know. Glad I could help! :)

True or False:
JavaScript was found in 1923

Answers

Answer:

False. It was in 1995

Explanation:

Answer:

False it was created September 1995.

Explanation:

What is the purpose of this diamond shape in a flowchart?

Answers

Answer:

To represent a decision making step.

Explanation:

for example, assume that you need to display 'pass' if the total marks are greater than 50 and 'fail' if it's less than 50

Then, after calculating the total, you should draw a diamond and inside it write, 'is total ∠ 50?'

after that you can continue your flowchart taking one decission as 'yes' and the other decission as 'no'

The rectangular shape stands for a task or course of activity. In the flowchart sequence, the diamond shape represents a question or a branch.

What is flowchart?

A flowchart is a diagram that shows a process' individual steps in their proper order.

It is a general tool that may be customised for a wide range of uses and used to define a variety of processes, including a project plan, an administrative or service process, or a manufacturing process.

These four typical forms are excellent for outlining organisational structure, how various departments interact, and economic, industrial, or administrative operations.

In a process, a decision point is represented by a diamond. Usually, the statement in the symbol will call for a "yes" or "no" response and, in accordance, branch to other locations in the flowchart.

Thus, this is the main use of diamond symbol in a flowchart.

For more details regarding a flowchart, visit:

https://brainly.com/question/14598590

#SPJ2

If String str = "United States";, then what is the value of str.indexOf("united");?

−1
0
1
2
3

Answers

Answer:

-1

Explanation:

due to the fact their is no capital "U" it will -1

The implementation stage of the SDLC _____.


involves describing the desired functionality of the system


involves establishing an overview of the project goals


involves putting the system into production so users can begin to perform real business operations with the system


involves analyzing end-user business requirements in order to refine project goals

Answers

Answer:

d. involves analyzing end-user business requirements in order to refine project goals

Explanation:

In the software development life cycle, the implementation stage is the stage where the computer programmers begin the actual coding of the application required by the end-user. At this stage, the developer takes into account the needs and specifications of the customer.

For example, if the end-user wants a software application that can track payment records, the researcher at this stage begins using the right software to code programs that can effect this function.

Dan works for an automobile company. He has designed a new model of a car based on an older version. Which technology can he use to present the model at a board meeting?
A.
wearable computing
B.
3-D printing
C.
grid computing
D.
screenless display

Answers

Answer:

a

Explanation:

i did the test

Answer:

The answer is B (3-D printing)

Explanation:

Other Questions
-3/4 x -1/5=What is the answer?? Why is first person narration more initiate for the reader 3 different ways to write 4/8 in ratios What was the outcome of the great compromise BRAINLIEST!!! easy question What do the Great White Chiefs not tell Chief Joseph? What are the benefits of the colonists? Solve:12 + 5 + 32 x 10 - 5 = (12 + 5) + 3'2 x (10 5) = In your own words, explain the difference between a conductor and an insulator.(4th grade) Juan can do 48 jumping jacks in 2 minutes. How many jumping jacks will Juan have completed after 17 minutes? What does the name "atom" mean inGreek? Hi can somebody help me with this equation, please? 50=2(x+3)+10 Solve 6y + 2x = 14 for x. Which of the following is not a benefit of participating in a regular fitness program -increased self-esteem -decreased metabolic rate -increased energy -increased cardio-respiratory fitness A. It has reflectional symmetry with one line of symmetry.B. It has rational symmetry with an angle rotation of 45.C. It has point symmetry.D. It has no reflectional symmetry. PLZ HELP! Eddie's recipe for bagels makes 18 bagels per batch. Eddie makes 2/3 batch of bagels. How many bagels does Eddie make An increase in French refugees led to anti-immigrant sentiment during Adams presidency True or False? 7x-6=21+7x solve for x. Given the weekly demand curve of a local wine producer is p= 50-0.1q, and that the total cost function is c= 1500+ 10q, where q bottles are produced each day and sold at a price of $p per unit. a)Express the weekly profit as a function of price.b) at what price must a bottle of wine be sold to realise maximum profit. c) what is the maximum profit that ca be made by the producer Which change occurs to the skeletal system with frequent moderately intense,too intense exercise?