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
emmainna [20.7K]
3 years ago
6

What will the document.write() statement display, given the following code snippet? var scores = new Array[94, 90, 88, 82, 73, 7

0, 75]; var lgth = scores.length; document.write("There are " + lgth + "scores recorded. The dropped score is " + scores[lgth – 1]);
Computers and Technology
1 answer:
astra-53 [7]3 years ago
4 0

Answer:

There are 7 scores recorded. The dropped score is 75

Explanation:

The code snippet above prints through the document.write() function. the output prints the string serving as the argument, and makes use of variables (lgth) and expression also (scores [lgth -1]). what it does is. From the point where it sees +lgth+, it checks the value, which is 7. And when it sees scores [lgth-1] it evaluates it to 75. Hence, the string above is produced.

You might be interested in
In social networking websites such as twitter, people leave narrow minded and subjective remarks and upload unacceptable videos.
koban [17]
The advice is That you Message Them To remind Them Those Type of posts are not appropriate if people on social Media say bad Things To you you block Them if people don’t Treat you nice
8 0
3 years ago
I NEED HELP PLEASE!! I just wanted to upgrade my i3 processor to an i7. I bought new hardware (motherboard, fan, etc) and now th
Dafna11 [192]

Answer:

Your processor might be incompatible with motherboard

Explanation:

One major thing to keep in mind while upgrading a PC hardware is comparability among hardware. If you are using incompatible hardware it can cause issues like this. There are websites available to let you check the compatibility of different components.

As you mentioned you upgraded your cpu and motherboard. Does your motherboard has the correct version of chipset to run new cpu. Do notice if there are any beep sounds when you power up your PC. If you don't hear beeps than your motherboard might be dead.

6 0
4 years ago
Write a function insert that takes an array of integers in ascending order, the number of integers currently in the array, the t
Andrei [34K]

Answer:

The code is written in MATLAB

function insert(array,integer,capacity,newInt)

if integer == capacity %if the array is full, the function returns the original array

result = array;

else

if newInt < array(1) %If the new integer is less than the first element, it copies the new integer as the new first element

array = [newInt array];

elseif newInt > array(end) %If the integer is greater than the last element, it copies the new integer as the new last element

array = [array newInt];

else %If the new integer is inside the array, then it checks its new place

for i = 1:length(array)-1

if array(i+1) > newInt % once the place of the new integer is found, the rest of the array is saved in a dummy array

dummy = array(i+1:end);

array(i+1) = newInt;

array(i+2:end) = '';%the rest of the array is deleted

array = [array dummy]; %concatanate the dummy array with the newInteger inserted array

break

end

end

end

end

fprintf('The inserted integer is %g\n', newInt);

fprintf('The new array is \n',array);

disp(array)

3 0
3 years ago
What line of code will import matplotlib in it
Sav [38]

Answer:

import matplotlib

Explanation:

5 0
4 years ago
How do keygens work?
Artist 52 [7]
What are keygens please

3 0
4 years ago
Other questions:
  • ​Case-Based Critical Thinking Questions​Case 9-1Melissa, a computer science engineering student, is learning the basics of progr
    11·1 answer
  • He ____________ may include a high-level WBS in a graphic chart format or as an indentured list of the work elements and associa
    14·1 answer
  • Individuals and businesses have concerns about data security while using Internet-based applications. Which security risk refers
    13·1 answer
  • bj;ljfg'cfmb dfl kbslf jflk[gkdblkfd lbrkjlfbbfkjbdfjkbadbjbbkvbk'lbk'blbf;l;lkb lm;flklmkjlvkljvkljvbfbdsjsfbbjjlkbfjklbkfj'lgg
    9·2 answers
  • Suppose that you have been running an unknown sorting algorithm. Out of curiosity, you once stopped the algorithm when it was pa
    8·1 answer
  • In Microsoft Word you can access _ the command to the mini toolbar
    14·2 answers
  • According to the passage, what are the goals of the<br> program? Check all that apply.
    11·1 answer
  • Write a method intersect that accepts two sorted array lists of integers as parameters and returns a new list that contains only
    8·1 answer
  • Python is a popular programming language and has been labeled as having a safe core.
    14·1 answer
  • Queues can be represented using linear arrays and have the variable REAR that point to the position from where insertions can be
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!