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
lora16 [44]
3 years ago
13

A while loop uses a(n) ___________ at the top of every iteration to test whether to continue or not.

Computers and Technology
1 answer:
Anni [7]3 years ago
8 0

Answer:

boolean

Explanation:

while loops test to see if something is true or false to know when to continue the loop

You might be interested in
You should avoid “S” curves in your photographs. True or False?
WINSTONCH [101]

Answer:

The answer to this question is false.

Explanation:

The S-curve is the natural curve of some object. S-curve is a line or path of the image that curves backward and onward horizontally. we can proceed vertically as much similar to the word S. It is exactly like the letter S. It is not a bad thing. So the S curve is not avoiding in the photographs.  

5 0
3 years ago
Which program will have the output shown below?
blsea [12.9K]

Answer:

for count in range(10, 14):

   print(count)

hope i helped :D

7 0
3 years ago
Read 2 more answers
Explain how increasingly standardized data, access to third-party datasets, and current trends in hardware and software are coll
SashulF [63]

Answer and Explanation:

The information revolution has had profound impacts on decision-making allowing more informed decision as a result of "stone throw" information reach- in our pockets, the desk, the TV, and the vast number of technologies that make this possible.

Standardized data which involves data formatted to bring uniformity and be easily understood and compared by programs and people , access to rich, outsider dataset and less tasking and flexible plus powerful programming have all contributed to empowering another time of information driven decision-making that are less prone to errors and mistakes.

8 0
4 years ago
Write a static method called bothStart that allows the user to input two Strings and returns the String that is the longest subs
marishachu [46]

Answer:

  1.    public static String bothStart(String text1, String text2){
  2.        String s = "";
  3.        if(text1.length() > text2.length()) {
  4.            for (int i = 0; i < text2.length(); i++) {
  5.                if (text1.charAt(i) == text2.charAt(i)) {
  6.                    s += text1.charAt(i);
  7.                }else{
  8.                    break;
  9.                }
  10.            }
  11.            return s;
  12.        }else{
  13.            for (int i = 0; i < text1.length(); i++) {
  14.                if (text1.charAt(i) == text2.charAt(i)) {
  15.                    s += text1.charAt(i);
  16.                }else{
  17.                    break;
  18.                }
  19.            }
  20.            return s;
  21.        }
  22.    }

Explanation:

Let's start with creating a static method <em>bothStart()</em> with two String type parameters, <em>text1 </em>&<em> text2</em> (Line 1).  

<em />

Create a String type variable, <em>s,</em> which will hold the value of the longest substring that both inputs start with the same character (Line 2).

There are two possible situation here: either <em>text1 </em>longer than<em> text2 </em>or vice versa. Hence, we need to create if-else statements to handle these two position conditions (Line 4 & Line 13).

If the length of<em> text1</em> is longer than <em>text2</em>, the for-loop should only traverse both of strings up to the length of the <em>text2 </em>(Line 5). Within the for-loop, we can use<em> charAt()</em> method to extract individual character from the<em> text1</em> & <em>text2 </em>and compare with each other (Line 15). If they are matched, the character should be joined with the string s (Line 16). If not, break the loop.

The program logic from (Line 14 - 20) is similar to the code segment above (Line 4 -12) except for-loop traverse up to the length of <em>text1 .</em>

<em />

At the end, return the s as output (Line 21).

5 0
3 years ago
Explain each kind of pointer and for what it is appropriate.
Mademuasel [1]

Pointer: A pointer is a variable which holds the address of other variable of the specified data type(like int,float,char). In programming we basically use pointers to store the other variable's address.

3 0
3 years ago
Read 2 more answers
Other questions:
  • In the context of firewall as a nonbiometric security measure, a _____ is software that acts as an intermediary between two syst
    6·1 answer
  • Tara and Zach are leading a systems development project and they want the investigation phase to go smoothly and quickly. They d
    5·1 answer
  • Computer a has an overall cpi of 1.3 and can be run at a clock rate of 600mhz. computer b has a cpi of 2.5 and can be run at a c
    11·1 answer
  • Wats is a internal disk drive​
    10·2 answers
  • _____ is a predefined format used for text the can include multiple font formatting features
    13·1 answer
  • Which of the following statements comparing debit cards to credit cards is TRUE?
    13·2 answers
  • How do I convert years to days on Python. For example, if I were to enter 3 years it should output "You are 1095 days old".
    5·1 answer
  • Opinion paragraph should the driving age be raised 21 ​
    13·1 answer
  • Draw a flowchart diagram for a program that displays numbers 1 to 20
    12·1 answer
  • Which objects appear on the slide after she clicks ok? Check all that apply.
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!