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
natta225 [31]
3 years ago
6

What is the value of count after this nested FOR loop executes fully.

Computers and Technology
1 answer:
Alisiya [41]3 years ago
5 0

Answer:

168 (although the =< must be corrected to <=)

Explanation:

int count = 0;

for (int row = 4; row <= 15; row++)

for (int col = 0; col < 13; col = col +2)

count+=2;

The inner for loop runs 7 times (for col = 0,2,4,6,8,10,12). Anything higher is not less than 13. Therefore the inner loop increments count by 2 seven times, i.e. it increments count by 14.

The outer for loop runs 12 times (for row = 4,5,6,7,8,9,10,11,12,13,14,15).

If the count is incremented by 14 twelve times, you are incrementing it by 14*12 = 168.

Therefore the count goes from 0 to 168 after the nested loops.

You might be interested in
Question 4 of 5
ikadub [295]

Answer:

A. Lifelong Learning.

8 0
3 years ago
Read 2 more answers
What is destination email address​
Ronch [10]

Answer:

Explanation:

The E-mail Destination allows you to send data from your forms in text format to various different email addresses.

8 0
3 years ago
In a cross-site request forgery, what components help send a forged HTTP request? In a cross-site request forgery, browser _____
Mariana [72]

<u>Answer:</u>

<em>In a cross-site request forgery, browser </em><u><em>Link</em></u><em> help send a forged HTTP request.</em>

<u>Explanation</u>:

<em>CSRF is a kind of attack which compels the user to click on the unwanted links </em>or make him to perform some actions on the browser which the user is not intended to do so.

<em>They mainly target on Change request such as fund transfers, modifying their mail id’s etc</em>.

So they do all things by knowing Social engineering tricks and transfer the control of the <em>user to one another application created by the hackers and obtain the information and it is not just for theft of data. </em>

4 0
3 years ago
What method of heat transfer is used when the sun heats the earth?
monitta
Radiation is when heat travels through space.
8 0
4 years ago
Lab: even/odd values in an array
Crank

def input_values(new_list):

   new_list = []

   n = int(input('Enter number of values: '))

   for i in range(n):

       new_list.append(int(input('Enter values: ')))

   def is_list_even(new_list):

       for i in range(len(new_list)):

           if new_list[i]%2!=0:

               return False

           return True

   def is_list_odd(new_list):

       for i in range(len(new_list)):

           if new_list[i]%2==0:

               return False

           return True

   num=input_values()

   if is_list_even(num)==True:

       print('all even')

   elif is_list_odd(num)==True:

       print('all odd')

   else:

       print('not even or odd')

3 0
3 years ago
Other questions:
  • program that reads numbers from scanf (keyboard) and then sums them, stopping when 0 has been entered. Construct three versions
    14·1 answer
  • Beverly is creating a website for her new clothing company. Aside from including photographs, how can she use the index page to
    8·2 answers
  • Which of the following sentences uses correct punctuation? A. I am a good communicator, and I am a strong team member. B. I comm
    12·2 answers
  • Can someone buy me eddie van der tabs???
    13·1 answer
  • Help me with A,b and c
    11·1 answer
  • Which of the following is not an example of debugging? looking for errors in programming code. fixing misspelled commands in pro
    13·1 answer
  • Can we update App Store in any apple device. (because my device is kinda old and if want to download the recent apps it aint sho
    10·1 answer
  • Potterheadler varmı burada​
    10·2 answers
  • After running the following pseudocode, what will the value of VARIABLE be? 1. Set value of VARIABLE to 5 2. Increase the value
    15·1 answer
  • The following equations estimate the calories burned when exercising (source):
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!