5. What will be displayed when this program finishes running?
var numbers List = [20, 10, 5]
appendItem(numbersList, 50)
appendItem(numbersList, 100)
removeItem(numbersList, 1)
insertItem(numbersList, o, 30)
console.log(numbersList.length)
A. 3
B. 6
C. 7
D. 5

Answers

Answer 1

Answer:5 i think im not sure though

Explanation:

Answer 2

5  will be displayed when this program finishes running. Hence, option D is correct.

What is program?

A set of preset, sequential actions that a computer is designed to perform is known as a program. The program in the modern computer that John von Neumann described in 1945 contains a set of instructions that the computer executes one at a time.

A set of instructions called a program or software program instructs the hardware of a computer how to do a task. To complete a task, a computer executes a set of guidelines known as a program.

To communicate with computers, programmers use a programming language, which is a computer language. It is a set of instructions written in a specific language such as C, C++, Java, or Python, built to do a certain task.

Thus, option D is correct.

For more information about program, click here:

https://brainly.com/question/11023419

#SPJ2


Related Questions

HELPPP
44 What text will be output by the program?
A- less than 10
B- less than 20
C- less than 30
D- 30 or more

Answers

Answer:

D. 30 or more

Explanation:

All other ones are canceled out ad the score adds 10.

The correct text for the output of the program is, ''30 or more''. So, option (D) is true.

A program is a set of instructions that a computer can run.

Programs are clear, ordered, and in a language that computers can follow.

Given that,

A program for the score is shown in the image.

Now, From the given program;

The last line will appear with the,

 console,log (''30 or more'')

Hence, The correct text for the output of the program is, ''30 or more''.

Therefore, the correct option is,

D) 30 or more

Read more about Python programs at:

brainly.com/question/26497128

#SPJ6

can someone help me​

Answers

Answer:

C

Explanation:

Answer:

B. boringanimals.join()

Explanation:

The ".join" method creates and returns a new string by concatenating, or joining, all of the elements in an array.

When memory allocation is ____, it means all portions of the program and OS are loaded into sequential locations in memory.

Answers

Answer:

Contiguous

Explanation:

A Contiguous memory allocation is known to be a classical memory allocation model. In this situation, we have a system which assigns consecutive memory blocks to a process. It is one of the oldest methods of memory allocation. If the process is in need of execution, the memory would be requested by the process. The processes size would then be compared to the amount of Contiguous memory that is available for the execution of the process.

Which of the following is NOT true?

a. The process provides the macro steps
b. Methodologies provide micro steps that never transcends the macro steps.
c. Methodologies provide micro steps that sometimes may transcend the macro steps.
d. A methodology is a prescribed set of steps to accomplish a task.

Answers

Answer:

b. Methodologies provide micro-steps that never transcends the macro steps.

Explanation:

Methodologies are a series of methods, processes, or steps in completing or executing a project. Projects can be divided into macro steps or processes and these macro steps can be divided into several micro-steps. This means that, in methodology, micro-steps always transcends to a macro-step.

What is the shortcut key to “Left Align” the selected text

Answers

Explanation:

The shortcut key to"left align" the selected text is Control+L

heyyy y’all hope your day was great

Generally speaking, digital marketing targets any digital device and uses it to advertise and sell a(n) _____.


religion

product or service

governmental policy

idea

Answers

Answer:

product or service

Explanation:

Digital marketing is a type of marketing that uses the internet and digital media for the promotional purposes. It is a new form of marketing where the products are not physically present. The products and services are digitally advertised and are used for the popularity and promotion. Internet and digital space are involved in the promotion. Social media, mobile applications and websites are used for the purpose.

Answer:

A.) Product or service

Explanation:

Digital marketing is the practice of promoting products or services through digital channels, such as websites, search engines, social media, email, and mobile apps. The goal of digital marketing is to reach and engage with potential customers and ultimately to drive sales of a product or service. It can target any digital device that can access the internet, and it can use a variety of techniques such as search engine optimization, pay-per-click advertising, social media marketing, content marketing, and email marketing to achieve its objectives.

How do you overload a C2677 error code in c++ for '-'?

Answers

The answer is the c++ one I know becuase I took the test

Any one know??please let me know

Answers

Answer:

B

Explanation:

Answer:

The answer is B.

Explanation:

Also I see your using schoology, I use it too.

Pointers are addresses and have a numerical value. You can print out the value of a pointer as cout << (unsigned)(p). Write a program to compare p, p + 1, q, and q + 1, where p is an int* and q is a double*. Explain the results.

Answers

Answer:

#include <iostream>

using namespace std;

int main() {

  int i = 2;

  double j = 3;

 

  int *p = &i;

  double *q = &j;

 

  cout << "p = " << p << ", p+1 = " << p+1 << endl;

  cout << "q = " << q << ", q+1 = " << q+1 << endl;

  return 0;

}

Explanation:

In C++, pointers are variables or data types that hold the location of another variable in memory. It is denoted by asterisks in between the data type and pointer name during declaration.

The C++ source code above defines two pointers, "p" which is an integer pointer and "q", a double. The reference of the variables i and j are assigned to p and q respectively and the out of the pointers are the location of the i and j values in memory.

What is the missing line of code?

>>> phrase = "You are amazing!"
>>> _____
'u a'

phrase[3:6]

phrase[2:6]

phrase[3:5]

phrase[2:5]

Answers

Answer:

phrase[2:5]

Explanation:

Given:

The above code segment

Required

Which instruction returns 'u a'

First, we need to get the index of u in the phrase:

u is at the third position but in programming, index starts at 0.

So, u is at index 2

Next, we need to get the index of a in the phrase:

a is at index 4

One of the ways to return a sub string from a string in python is [tex]string[start:stop+1][/tex]

Where:

[tex]start = 2[/tex] ----- index of u

[tex]stop = 4[/tex]  ----- index of a

phrase ---- The string variable

So, the instruction that returns 'u a' is: [tex]phrase[2:5][/tex]

Where 5 = 4 + 1

Answer:

phrase[2:5]

Explanation: got it right on edgen

Thale cress is a plant that is genetically engineered with genes that break down toxic materials. Which type of organism is described?
recombinant
transgenic
transverse
restriction

Answers

Answer: Transgenic

Explanation:

Since the thale cress is a plant that is genetically engineered with genes that break down toxic materials, the type of organism that is described here is the transgenic plant.

Transgene is when a gene is naturally transferred or transferred from an organism to another organism by genetic engineering method.

Therefore, the correct option is transgenic.

Answer:

The answer is B (transgenic)

Explanation:

Write a method that draws a circle and a square that is centered in a DrawingPanel. The method will take in the width and height (they are the same for both the circle and square) and a Graphics object as parameters
IN java
current code: turn it into a method along with the main method
import java.awt.*;
public class Graphics {
static final int WIDTH = 300;
static final int HEIGHT = 200;
public static void drawGraphics () {
}
public static void main(String []args) {
DrawingPanel2 draw = new DrawingPanel2(WIDTH,HEIGHT); // Make a DrawginPanel2 of size 300 by 200.
Graphics2D g = draw.getGraphics(); // gets graphics from DrawingPanel so you can draw
g.setColor(Color.RED);
g.fillRect(45, 30, 200, 150);
g.setColor(Color.BLUE);
g.fillOval(70, 30, 150, 150);
}
}

Answers

Answer:

public static void drawGraphics (Graphics g, int width, int height) {

   int r = Math.round(width/2);

   int x = 45;

   int y = 30;

     g.setColor(Color.RED);

   g.fillRect(x, y, width, height);

   g.setColor(Color.BLUE);

   g.fillOval(Math.round(x/2), Math.round(y/2), r, r);

}

Explanation:

The Java method "drawGraphics" of the Graphics class accepts draws a square with the "fillRect()" method of the Graphics class object and at its center, a circular path is drawn as well.

Should video gaming be considered a school sport?

Answers

Answer:

I believe it should be in higher grades such as high school or college so people don't abuse it like little kids might.

Answer:

No because the defininition of sports is an activity involving physical exertion and Video games don't involve physical extertion.

Suppose that a 2M x 16 main memory is built using 256kB x 8 RAM chips and memory is word addressable, how many RAM chips are necessary?

Answers

Answer:

16 RAM chips

Explanation:

To calculate the number of RAM chips needed, we divide the total size of the main memory by the size of each RAM chip. Hence:

Number of RAM chips required = Main memory size / size of one RAM

2M = 2²¹, 16 = 2⁴, 256K = 2¹⁸, 8 = 2³

Hence:

Number of RAM chips required = (2²¹ * 2⁴) / (2¹⁸ * 2³) = 2⁴ = 16

Therefore 16 RAM chips are necessary

what types of problems if no antivirus is not installed

Answers

If you meant what would happen if you don't install an antivirus software, trust me, you don't want to know. I'd definitely recommend either Webroot (I believe that's how it's spelled) or Mcafee.

Which formatting option(s) can be set for conditional formatting rules?

Answers

Answer:

D

Explanation:

Any of these formatting options as well as number, border, shading, and font formatting can be set.

Write a SELECT statement that returns these columns from the Customers table:
Customer last name customer_last name column
City customer_city column
Zip code customer_zip Column
Return only the rows with customer_state equal to IL .
Sort the results in Descending order of customer last name
SCHEMA:
CREATE TABLE customers
(
customer_id INT NOT NULL,
customer_last_name VARCHAR(30),
customer_first_name VARCHAR(30),
customer_address VARCHAR(60),
customer_city VARCHAR(15),
customer_state VARCHAR(15),
customer_zip VARCHAR(10),
customer_phone VARCHAR(24)
);
INSERT INTO customers VALUES
(1, 'Anders', 'Maria', '345 Winchell Pl', 'Anderson', 'IN', '46014', '(765) 555-7878'),
(2, 'Trujillo', 'Ana', '1298 E Smathers St', 'Benton', 'AR', '72018', '(501) 555-7733'),
(3, 'Moreno', 'Antonio', '6925 N Parkland Ave', 'Puyallup', 'WA', '98373', '(253) 555-8332'),
(4, 'Hardy', 'Thomas', '83 d''Urberville Ln', 'Casterbridge', 'GA', '31209', '(478) 555-1139'),
(5, 'Berglund', 'Christina', '22717 E 73rd Ave', 'Dubuque', 'IA', '52004', '(319) 555-1139'),
(6, 'Moos', 'Hanna', '1778 N Bovine Ave', 'Peoria', 'IL', '61638', '(309) 555-8755'),
(7, 'Citeaux', 'Fred', '1234 Main St', 'Normal', 'IL', '61761', '(309) 555-1914'),
(8, 'Summer', 'Martin', '1877 Ete Ct', 'Frogtown', 'LA', '70563', '(337) 555-9441'),
(9, 'Lebihan', 'Laurence', '717 E Michigan Ave', 'Chicago', 'IL', '60611', '(312) 555-9441'),
(10, 'Lincoln', 'Elizabeth', '4562 Rt 78 E', 'Vancouver', 'WA', '98684', '(360) 555-2680');

Answers

Answer:

SELECT customer_last_name, customer_city, customer_zip FROM customers WHERE customer_state = 'IL' ORDER BY customer_last_name DESC;

Explanation:

Here, we are given a SCHEMA with the table name customers.

It's creation command and commands to insert values are also given.

We have to print the customer last name, city and zip code of all the customers who have their state as IL in the decreasing order of their last names.

Let us learn a few concepts first.

1. To print only a specified number of columns:

We can write the column names to be printed after the SELECT command.

2. To print results as per a condition:

We can use WHERE clause for this purpose.

3. To print in descending order:

We can use ORDER BY clause with the option DESC to fulfill the purpose.

Therefore, the answer to our problem is:

SELECT customer_last_name, customer_city, customer_zip FROM customers WHERE customer_state = 'IL' ORDER BY customer_last_name DESC;

Output of the command is also attached as screenshot in the answer area.

Why are people's visions of utopias and dystopias subjective?
A. Because the vision one person has of paradise will likely match
the vision most people have of a utopia
B. Because only certain technologies make things better and
different ones make things worse in a dystopia
C. Because all technology is dangerous and can lead to the downfall
of all societies, resulting in dystopia
D. Because the technology needed for one person's utopia may be
what creates disaster for another person's dystopia

Answers

Answer:

D. Because the technology needed for one person's utopia may be what creates disaster for another person's dystopia.

Explanation:

Because the technology needed for one person's utopia may be what creates disaster for another person's dystopia are people's visions of utopias and dystopias subjective. Thus option D is correct.

What are utopias and dystopias?

Speculative fiction categories that study social as well as political structures include utopian and dystopian literature. In order to pique readers' interest, utopian fiction often depicts a world that adheres to the author's ethics and has many elements of a different reality.

Ultimately, it all varies depending on who you ask. A person's dystopia may be another person's utopia. We don't all have the same notions regarding what a utopia would look like, which is, in my opinion, one of the grounds why people don't live in one. Therefore, option D is the correct option.

Learn more about utopias and dystopias, Here:

https://brainly.com/question/905235

#SPJ2

How did NAT help resolve the shortage of IPV4 addresses after the increase in SOHO, Small Office Home Office, sites requiring connections to the Internet?

Answers

Question Completion:

Choose the best answer below:

A. It provides a migration path to IPV6.

B. It permits routing the private IPV4 subnet 10.0.0.0 over the Internet.

C. NAT adds one more bit to the IP address, thus providing more IP addresses to use on the Internet.

D. It allowed SOHO sites to appear as a single IP address, (and single device), to the Internet even though there may be many devices that use IP addresses on the LAN at the SOHO site.

Answer:

NAT helped resolve the shortage of IPV$ addresses after the increase in SOHO, Small Office Home Office sites requiring connections to the internet by:

D. It allowed SOHO sites to appear as a single IP address, (and single device), to the Internet even though there may be many devices that use IP addresses on the LAN at the SOHO site.

Explanation:

Network Address Translation (NAT) gives a router the ability to translate a public IP address to a private IP address and vice versa.  With the added security that it provides to the network, it keeps the private IP addresses hidden (private) from the outside world.  By so doing, NAT permits routers (single devices) to act as agents between the Internet (public networks) and local (private) networks.  With this facilitation, a single unique IP address is required to represent an entire group of computers to anything outside their networks.

Select the correct answer from each drop-down menu.
Complete the sentence listing the basic parts of a computer.
All computers have these four basic parts: an input device, a

Answers

Answer:

all computers have an input device, storage, proccesing,and output

hope it helped

Explanation:

Most presentation programs allow you to save presentations so they can be viewed online by saving them as ____
files.

Answers

Explanation:

Most presentation programs allow you to save presentations so they can be viewed online by saving them as html

files.

Most presentation programs allow you to save presentations so they can be viewed online by saving them as html files.

what is the operating system on an IBM computer?​

Answers

Answer:

OS/VS2 and MVS

Explanation:

IBM OS/2, is full International Business Machines Operating System/2, an operating system introduced in 1987 IBM and the Microsoft Corporation to operate the second-generation line of IBM personal computers, the PS/2 (Personal System/2.) hope this helps! Pleas mark me as brainliest! Thank you! :))

g Assume that this program is run on a processor with data cache of size big enough that the entire array arr can fit in the cache. (a) How many paths does the function foo of this program have

Answers

Answer:

A. 2

Explanation:

The food function in the C source code uses two for loop statements to fill and array of size 100 with 100 values ranging from 1 to 100 and the second to get the total sum to the values in the array. With this, two program paths are created.

A series of gentle often open-ended inquiries that allow the client to progressively examine the assumptions and interpretations here she is made about the victimization experience is called:_____.

Answers

Answer:

Trauma Narrative

Explanation:

Given that Trauma narrative is a form of narrative or carefully designed strategy often used by psychologists to assists the survivors of trauma to understand the meaning or realization of their experiences. It is at the same time serves as a form of openness to recollections or memories considered to be painful.

Hence, A series of gentle often open-ended inquiries that allow the client to progressively examine the assumptions and interpretations he or she is made about the victimization experience is called TRAUMA NARRATIVE

Which option describes a systematic error in measuring in the following scenario?
A nurse is performing a pre-assessment before a patient is seen by a physician.
The patient's weight is inaccurate due to the calibration of the scale.
O The patient's temperature changes during the pre-assessment.
o The nurse measures the patient's weight twice and observes two different measurements.
o The nurse estimates the patient's weight based on the increments on the scale.
UiT onroTION

Answers

Answer:

D - The patient’s weight is inaccurate due to the calibration of the scale.

Explanation:

if feel like it is but i'm not 100% sure, sorry if not right answer ( also taking the assignment )

The answer is:

The patient’s weight is inaccurate due to the calibration of the scale.

You want to draw a rectangle over the moon you added to your slide and then move it behind the moon. You want it to look like a frame.
What ribbon tab would you click to find the tool to add the rectangle?
Animations
Insert
Design
Home

Answers

I choose Home and it’s a good thing to have

A video game character can face one of four directions

Answers

Really
I didn’t know that:)

A substring of some character string is a contiguous sequence of characters in that string (which is different than a subsequence, of course). Suppose you are given two character strings, X and Y , with respective lengths n and m. Describe an efficient algorithm for finding a longest common substring of X and Y .For each algorithm:i. Explain the main idea and approach.Write appropriate pseudo-code.Trace it on at least three different examples, including at least a canonical case and two corner cases.
iv. Give a proof of correctness.v. Give a worst-case asymptotic running time analysis.

Answers

Answer:

create a 2-dimensional array, let both rows represent the strings X and Y.

check for the common characters within a string and compare them with the other string value.

If there is a match, append it to the array rows.

After iterating over both strings for the substring, get the longest common substring for both strings and print.

Explanation:

The algorithm should create an array that holds the substrings, then use the max function to get the largest or longest substring in the array.

Write a method called classSplit that accepts a file scanner as input. The data in the file represents a series of names and graduation years. You can assume that the graduation years are from 2021 to 2024.Sample input file:Hannah 2021 Cara 2022 Sarah2022Nate 2023 Bob 2022 Josef 2021 Emma 2022Your method should count the number of names per graduation year and print out a report like this --- watch the rounding!:students in class of 2021: 28.57%students in class of 2022: 57.14%students in class of 2023: 14.29%students in class of 2024: 00.00%You must match the output exactly.You may not use any arrays, arrayLists, or other datastructures in solving this problem. You may not use contains(), startsWith(), endsWith(), split() or related functions. Token-based processing, please.There is no return value.

Answers

Answer:

public static void classSplit(Scanner file){

   int studentsOf21 = 0, studentsOf22 = 0,studentsOf23 = 0, studentsOf24 = 0;

   while (file.hasNext() == true){

       String studentName = file.next();

       int year = file.nextInt();

       switch (year){

           case 2021:

               studentsOf21++;

               break;

           case 2022:

               studentsOf22++;

               break;

           case 2023:

               studentsOf23++;

               break;

           case 2024:

               studentsOf24++;

               break;

       }

   }

   int totalGraduate = studentsOf21+studentsOf22+studentsOf23+studentsOf24;

   System.out.printf("students in class of 2021: %.2f%n", students2021*100.0/totalGraduate);

   System.out.printf("students in class of 2022: %.2f%n", students2022*100.0/totalGraduate);

   System.out.printf("students in class of 2023: %.2f%n", students2023*100.0/totalGraduate);  

   System.out.printf("students in class of 2024: %.2f%n", students2024*100.0/totalGraduate);

}

Explanation:

The classSplit method of the java class accepts a scanner object, split the object by iterating over it to get the text (for names of students) and integer numbers (for graduation year). It does not need a return statement to ask it prints out the percentage of graduates from 2021 to 2024.

2. A block of text is selected and now you
wish to center align them. Which of the
following command will let you do it?​

Answers

Paragraph command from format menu

Answer:

The command Ctrl+E will be used to center align the selected text.

Or the center align command from the Insert Tab can be sued for this purpose.

Explanation:

Alignment is how the text appears on the screen or on printed page. There are four types of alignment in word.

LeftRightJustifiedCenter

There are commands and menus on the word interface and shortcut keys to center align a text.

Hence,

The command Ctrl+E will be used to center align the selected text.

Or the center align command from the Insert Tab can be sued for this purpose.

Other Questions
Three types of shots in basketball are:Group of answer choicesA: Free Throw, Jump Shot, Lay UpB: Dunk, Lay Up, PassC: Dribble, Free Throw, 3 PointerD: Tip In, Jump Ball, Block Solve the equation.- w - 2 = 42 Dealing with and attempting to overcome problems and difficulties is called: a coping. b procrastination. c rationalization. d relaxation. executive branch, judicial branch, resides, checks and balances, amendment what do all of them mean like vocabulary (LATIN)1. The tense sign -era is translated by the word(s)willhavewill havehad2. Which is not a perfect ending? imuseruntistiOtense. 3. The personal endings -i, -isti, -it, -imus, -istis, -erunt are used in theimperfectperfectpluperfectfuture perfect4. Which of the following would NOT be a translation for the verb monuerunt? (1 point)they have warnedthey did warnthey warnedOthey will have warned5. Th translation of aedificavero is? I had built I did build I will build I will have built 6. Th translation of pugnavimus is? We have fought We had fought We are fighting You will have fought 7. Th translation of dedi is? I have given I do give I had given I will have given I need help with this!!!!! Question 6 (2 points)Find the inverse of y= 4x+8y= 4x+2y = (1/4) X-2o ay=4X-2 I will mark BRAINLIST this is not difficult 9. Summarize how transcription makes mRNA. A complete answer will include: gene, mRNA, sequence, nucleotides, complementary, RNA polymerase, base-pairing rules. Contrast is similar toopposites like a jagged line is opposite of a Plagiarism occurs when a person does not cite a source that they referred to orquoted from.TrueFalse Several people have helped me in so many ways. A) SimpleB) CompoundC) ComplexD) Compound-complexPlz answer this quickly. its urgent. 20 POINTS!!!!!! A student is selling tickets for a concert. She keeps track of how many tickets she sells each day on a table. Which line plot shows this information? Many Irish immigrants came to America to escape a famine. Many Chinese immigrants came to America to work on the Transcontinental Railroad. Many Russian Jewish immigrants came to America to escape harsh treatment. Many Scandinavian immigrants came to America for land that the US government made available to new settlers in the Midwest. You dont have to help its not urgent Which is a chain of islands Vietnam , Philippines, Burma , or Indonesia Report the following in direct speech 1. Arun said that he wanted to be a soldier. 2. Bina said that she had seen that building. 3. I told him that I had not seen him for months. 4. He said that he was not tired, and that he did not wish to go to bed. 5. He told us that he had waited for an hour. If every 1 Oth student on a nonalphabetized list of names was chosen fromyour school to answer a survey, this group would be a(n):OA. random sample.O B. independent sample.O C. biased sample.O D. experimental sample. Carlos walked to school on 12 of the 25 days of February. Which value is equivalent to the fraction of the school days in February that Carlos walked to school? Express as a trinomial (3x + 8)(2x + 1) Which sentence demonstrates proper subject-verb agreement? *A) Each student are responsible for bringing their own paper to school.B)Each student is responsible for bringing their own paper to school. A truck is 180 inches long. A car is 30% shorter than the truck. How long is the car?