_______ statements will execute an action when the condition is true and no action when the condition is false.
A. elif
B. if
C. if-else
D. when

Answers

Answer 1

Answer:

B. if

Explanation:

In Computer programming, there are four (4) main types of statements used in the decision-making process and these are;

I. If statement.

II. If....else statement.

III. Else.....if statement.

IV. Nested if...else statement.

However, only the first test expression would be executed when it is true and then the program is terminated. Otherwise, the program would continue to run until it gets to the breaking point (else statement) and then terminates.

This ultimately implies that, an If statement will execute an action when a particular condition is true (1) and no action will be executed when the condition is false (0).


Related Questions

Puede existir la tecnologia sin la ciencia y sin las tecnicas,explique si o no y fundamente el porque de su respuesta

Answers

Answer:

No

Explanation:

No, La ciencia organiza toda la informacion que obtenemos despues de hacer experimentos. Esta informacion se puede replicar y probar, ademas nos ayuda ampliar nuestro conocimiento de varios temas. Las tecnicas, son procedimientos y reglas que fueron formados para solucionar problemas y obtener un resultado determinado y efectivo. Sea como sea la ciencia y las tecnicas se necesitas para que exista la tecnologia. Sin la ciencia y las tecnicas se tendria que obtener la informacion para poder entender y crear tecnologia, y para hacer eso tenes que hacer experimentos, procedimientos, y reglas (ciencia y tecnicas.)

What is the difference between HTML and C?
A. C allows programmers to write code for different devices, while
HTML makes code easier to analyze on a single device.
O B. HTML is a language used for web pages, while C is a language
commonly used in operating systems.
C. C is a language invented for interactive television, while HTML is a
language designed for smartphones.
D. HTML is a language for computer operating systems to sync with
other devices, while C is a language for web browsers to read web
pages.

Answers

Answer:

B

Explanation:

HTML is interpreted in web browsers, while C is complied and is low level, which is why many operating systems, including Linux use it.

I'm a programmer :)

HTML is a language used for web pages, while C is a language commonly used in operating systems. Then the correct option is B.

What is the difference between HTML and C?

The Hypertext Markup Language (HTML) is the most dominant language for organizing and formatting websites and other materials on the Internet.

C is a programming language.

HTML is a language used for web pages, while C is a language commonly used in operating systems.

Then the correct option is B.

More about the HTML and C link is given below.

https://brainly.com/question/13384476

#SPJ2

An accountant initially records adjusting entries in a(n) _____.
A. revenue record
B. ledger
C. expense record
D. Journal​

Answers

Journal!
Adjusting entries are changes to journal entries you've already recorded.

Answer:

Ledger

Explanation:

Believe me it's not a journal

Need the answer ASAP!!!

Type the correct answer in the box. Spell all words correctly.
What does the type of documentation depend on?

Apart from the documents required in SDLC phases, there is also other documentation (or variations in documentation) depending upon the nature, type, and_________of the software.

Answers

Answer: type and create of the software

Explanation:

pls mark brainliest

A group of students writes their names and unique student ID numbers on sheets of paper. The sheets are then randomly placed in a stack.

Their teacher is looking to see if a specific ID number is included in the stack. Which of the following best describes whether their teacher should use a linear or a binary search?

A. The teacher could use either type of search though the linear search is likely to be faster
B. The teacher could use either type of search though the binary search is likely to be faster
C. Neither type of search will work since the data is numeric
D. Only the linear search will work since the data has not been sorted

Answers

Answer:

D.

Explanation:

Binary searches are required to be first sorted, since they use process of elimination through halving the list every round until the answer is found. Linear searches just start from the beginning and check one by one.

In the following nested loop structure, which loop does the program EXIT first?

Answers

Answer:

The loops are nested, and the program ends when loop 1 is completed. Since loop 4 is the innermost one, that one is completed first.

Which scenarios could be caused by software bugs? Check all that apply.
A. A person catches the flu and misses two days of work.
B. Smartphone users around the world are unable to get phone service.
C. A person is wrongfully arrested by the police.
D. A person receives a $10 bill at an ATM after requesting a $100 withdrawal.

Answers

Answer:

B- smartphone users around the world are unable to get phone service

C- A person is wrongfully arrested by the police

D- A person receives a $10 bill at an ATM after requesting a $100 withdrawal.

Explanation:

Software bugs are the fault and error in the application that affects the result. It can cause an error in receiving a different bill at ATM after withdrawing a different amount. Thus, option D is correct.

What is a software bug?

A software bug is a flaw or an error occurred in the applications of the system that generates unexpected results and causes crashing, and invalid outcomes.

Some software bugs include functional errors, missing commands, typos, crashes, calculation errors, etc. These types of errors can affect the ATM services causing errors in receipt generation.

Therefore, option D. a $10 bill is generated at ATM after withdrawing $100 is an example of software bugs.

Learn more about software bugs here:

https://brainly.com/question/4490366

#SPJ2

A run is a sequence of adjacent repeated values. Write a
program that generates a sequence of 50 random die tosses in
an array and prints the die values, making the runs by including
them in parentheses, like this:

1 2 (5 5) 3 1 2 4 3 (2 2 2 2) 3 6 (5 5) 6 3 1

Add a method alternatingSum() that returns the sum of the
alternating elements in the array and subtracts the others. For
example, if your array contains:

1 4 9 16 9 7 4 9 11
Then the method should compute:

1-4+9-16+9-7+4-9+11 = -2


I am having trouble with this code can someone please help me?

Answers

Answer: yeet

Explanation:

liker up

The required program illustrates an array, outputs the die values with runs in parenthesis, and computes the alternating sum of the array's elements.

What is the array?

An array is a type of data structure that holds a collection of elements. These elements are typically all of the same data type, such as an integer or a string.

Here is a program that generates a sequence of 50 random die tosses in an array, prints the die values with runs in parentheses, and computes the alternating sum of the elements in the array:

import java.util.Random;

public class Main {

   public static void main(String[] args) {

       // Create a random number generator

       Random rand = new Random();

       // Create an array to store the die tosses

       int[] tosses = new int[50];

       // Generate the random die tosses

       for (int i = 0; i < tosses.length; i++) {

           tosses[i] = rand.nextInt(6) + 1;

       }

       // Print the die tosses with runs in parentheses

       System.out.print(tosses[0]);

       for (int i = 1; i < tosses.length; i++) {

           if (tosses[i] == tosses[i - 1]) {

               System.out.print(" (" + tosses[i]);

               while (i < tosses.length - 1 && tosses[i] == tosses[i + 1]) {

                   System.out.print(" " + tosses[i]);

                   i++;

               }

               System.out.print(") ");

           } else {

               System.out.print(" " + tosses[i]);

           }

       }

       System.out.println();

       // Compute and print the alternating sum of the array elements

       System.out.println("Alternating sum: " + alternatingSum(tosses));

   }

   public static int alternatingSum(int[] array) {

       int sum = 0;

       for (int i = 0; i < array.length; i++) {

           if (i % 2 == 0) {

               sum += array[i];

           } else {

               sum -= array[i];

           }

       }

       return sum;

   }

}

The alternatingSum() method computes the alternating sum of the elements in the array by adding the elements at even indices and subtracting the elements at odd indices.

To learn more about the arrays click here:

brainly.com/question/22364342

#SPJ2

What type of internet connection do you think you'd get in Antarctica?

A.
cable
B.
DSL
C.
dial-up
D.
satellite
E.
ISDN

Answers

Hello!
My best guess is you would have to use mediocre satellites that float over for internet connection.

What are benefits of using debugging tools? Check all that apply.
A. Debugging tools help programmers catch errors they might otherwise miss.
B. Debugging tools can save time.
C. Debugging tools can introduce new errors into the code.
D. Debugging tools help programmers make methodical assessments of the problem.

Answers

Answer:

It's

A. Debugging tools help programmers catch errors they might otherwise miss.

B. Debugging tools can save time.

D. Debugging tools help programmers make methodical assessments of the problem.

Explanation:

got it right on edge.

Answer:

A, B and C

Explanation:

When the condition of an if statement is false, the computer will return an error message to the user.
A. True
B. False

Answers

The correct answer to your problem is A, True

what adaptation Judy and her parents have that help them run from predators coming?​

Answers

Answer:

.57

Explanation:

The adaptation which Judy and her parents have that helps them run from predators coming is:

Self preservation/survival

According to the given question, we are asked to state the adaptation which Judy and her parents has that helps them run from predators coming and continue to survive.

As a result of this, we can see that humans have adapted over the years to run from predators who are capable of killing them because of the sense of self preservation or survival which is helped by the adrenaline to escape from danger

Read more here:

https://brainly.com/question/20594263

Rafi is developing an application to send urgent information about global health crises over the Internet to hospitals. He is worried about packets getting lost along the way and the effect that will have on the accuracy of the information. What is his best option for dealing with lost packets

Answers

Have the packets virtual

Answer:

Rafi can use the Transmission Control Protocol for communication since TCP has ways to recover when packets are lost.

Explanation:

TCP is a data transport protocol that works on top of IP and includes mechanisms to handle lost packets, such as the retransmission of lost packets.

#done with school already

Answers

Answer: omg yes same hate it

Explanation:school is boring and we have to do work.

Alison wants to create a website with clickable elements, which languages will help her create a website with clickable functionality? scauer hi a {color:#FFF; tex #header .header-button {posit function new user(a) for (var b = ** scele #nav {position:relative; 2-3 #nav ul {margin:0; padding:0; length;C++) { b**** ale) #nav ul li {display:inline; #nav ul li a {display:block ; } return b; "page" #nay ul li:last-child a my Whine:15px 9px;) HTML CSS JavaScript > Sub submit(source as objece, e ls EventArgs) if red. Checked-True then pi. InnerHtml"You prefer red* who was the testy-second president of the 1.$.&.? willia Jefferson liten pl. Inner Html-"You prefer blue end it red.checked-false blue.checked-false End Sub ASP XML XML​

Answers

To make clickable elements she can use JavaScript language

how to save an edited document.​

Answers

You can either hit the save button (usually at the top of the window) or use CTRL-S or CMD-S (depending if you're on Windows or Mac).

Conflict on cross-cultural teams
O is inevitable and should just be ignored until it blows over
O should be handled immediately, so resentments do not grow
O is not likely to happen, since everyone works in basically the same way
cannot really be controlled, since barriers to communication are so high

Answers

Answer:

should be handled immediately, so resentments do not grow

Explanation:

Edge 2021

how to Calculate the area of a rectangle in python

Answers

Firstly, take input from the user for length and breadth using the input() function.

Now,calculate the area of a rectangle by using the formula Area = l * b.

At last, print the area of a rectangle to see the output.

What are different ways that celebrities try to connect with fans using the Internet and social media?
*No links or files, I will report your answer so it gets taken down

Answers

Answer:

they ask fans questions they talk to fans they do many things with fans trying to connect with them

Need the answer ASAP !!!!

Type the correct answer in each box. Spell all words correctly.What type of maintenance does Desmond perform?

Desmond is responsible for modifying software to improve performance or meet new client requirements. Desmond performs_________
maintenance.

Answers

Answer: software

Explanation:

Software maintenance refers to modifying a software product in order to correct faults, and also to enhance the performance after it has been delivered.

Since Desmond is responsible for the modification of software to enhance performance or meet the new client requirements, then we can infer that Desmond performs software maintenance.

how should we utilize our rights​

Answers

Answer:

Human rights also guarantee people the means necessary to satisfy their basic needs, such as food, housing, and education, so they can take full advantage of all opportunities. Finally, by guaranteeing life, liberty, equality, and security, human rights protect people against abuse by those who are more powerful.

Explanation:

Answer:

Speak up for what you care about.  

Volunteer or donate to a global organization.  

Choose fair trade & ethically made gifts.  

Listen to others' stories.  

Stay connected with social movements.

Stand up against discrimination.

Explanation:

Which of the following was (and still is) used by computer programmers as a first test program?

Answers

Answer:

The "Hello World!" program

Explanation:

Options are not given, However, the answer to the question is the "Hello World!" program.

For almost all (if not all) programming language, this program is always the test program.

In Python, it is written as:

print("Hello World!")

In C++, it is:

#include <iostream>

int main() {

   std::cout << "Hello World!";

   return 0; }

Answer:

the following was (and still is) used by computer programmers as a first test program is "Hello world!".

and its computer program is:

Explanation:

[tex]\:{example}[/tex]

#include <stdio.h>

int main()

{

/* printf() displays the string inside

quotation*/

printf("Hello, World!");

return 0;

}

How do programmers reproduce a problem?
A. by replicating the conditions under which a previous problem was solved
B. by replicating the conditions under which the problem was experienced
C. by searching for similar problems online
D. by copying error messages from another software program

Answers

Answer:

B

Explanation:

Answer:

It was

B. by replicating the conditions under which the problem was experienced

on edge

Convert the following numbers to binary numbers: 5 , 6 , 7 , 8 , 9 .​

Answers

Answer:

log 5,6,7,8,9 is the binary number according to the computer

Answer:

Divide by the base 2 to get the digits from the remainders:

For 5

Division by 2    Quotient Remainder(digit)

(5)/2                    2            1

(2)/2                    1              0

(1)/2                            0                  1

= (101)_2

For 6

Division by 2    Quotient Remainder(digit)

(6)/2                    3            0

(3)/2                    1              1

(1)/2                            0                  2

= (110)_2

For 7

Division by 2    Quotient Remainder(digit)

(7)/2                           3                    1

(3)/2                    1              1

(1)/2                            0                  1

= (111)_2

For 8

Division by 2    Quotient Remainder(digit)

(8)/2                    4            0

(4)/2                    2              0

(2)/2                            1                  0

(1)/2                             0                  1

= (1000)_2

For 9

Division by 2    Quotient Remainder(digit)

(9)/2                    4            1

(4)/2                    2              0

(2)/2                           1                  0

(1)/2                            0                  1

= (1001)_2

Explanation:

does anyone here like meta runner?

Answers

Answer:

Meta Runner is the best show! Sophia is my fav!

Explanation:

Answer:

YAS!! Tari is my fav. U watch smg4 too?

Explanation:

Please Help!
Computer Sci

Answers

Answer:

A.

Explanation:

Hope this helps :)

give one reason why more people prefer to settle in areas of flat land than on steep slopes​

Answers

more people prefer to settle in areas of flat land than on steep slopes because it's safer. if someone settled their house on a steep slope there's a high chance that their house might get knocked down the slope during a natural disaster or something. but if it's on a flat piece of land then that's probably not gonna happen.

also it's easier to make farms on flat land rather than steep slopes.

Farmers prefer to settle in flat areas such as plains and valleys.

Flat land gave farmers more room to plant crops. The rich soil in coastal plains and river valleys was great for growing crops.

Plains are more suitable to agriculture than plateaus because they have deep, fertile soil.

I also had to answer this question, good thing I found it on my quizlet flashcards.

How to mark someone the Brainliest

Answers

Answer:

Explanation: Once u get more than 1 answer of a question. A message is shown above each answer that is "Mark as brainiest". Click on the option to mark it the best answer.

Answer:

above

Explanation:

Which of these statements about the truck driving occupation in the U.S. are accurate?

Answers

Answer:

I'm unsure 38373672823

Answer:

I really hate to not give answers when answering for people but I'm not sure. It is definitely not A or D, I am tied between B and C. I'm so sorry I couldn't give the answer but hopefully you can narrow them down

A farmer is reading a nature guide to learn how to make changes to a pond so that it will attract and support wildlife. The guide gives the suggestions listed below.
Help Your Pond Support Wildlife
1. Reduce soil erosion by keeping livestock away from the banks of the pond
2. Allow plants to grow along the shoreline to provide cover, nests, and food for wildlife
3. Float logs near the edge of the water to provide habitats for salamanders
4. Add large rocks to provide sunning sites for turtles

Which suggestion involves interactions between two groups of living organisms?
A. Suggestion 1

B. Suggestion 2

C. Suggestion 3

D. Suggestion 4

Answers

D is the answer


Hope this helps

According to the scenario, suggestion three involves the interactions between two groups of living organisms. Thus, the correct option for this question is C.

What is the process called when two groups of living organisms interact?

When two groups of living organisms interact with one another, the process is known as species interaction. It states that the population of one species interacts with the population of other species that live in the same locality.  

Suggestion three reveals that the floating logs near the bank of the water bodies significantly provides a habitat for salamander which are amphibians by nature. So, it gives the chance to aquatic organisms like fishes, phytoplankton, etc. to interact with salamanders. This mutually supports the wildlife of a particular region.

Therefore, according to the scenario, suggestion three involves the interactions between two groups of living organisms. Thus, the correct option for this question is C.

To learn more about Species interactions, refer to the link:

https://brainly.com/question/28062759

#SPJ2

Other Questions
Is the point (4,11) a solution to the following system of equations? How do you know?y=2x+14y=3x5 Find the molarity of iodide ions in a solution obtained by dissolving 1.97 g of ZnI2(s) and enough water to form 34.2 mL of solution. Assume complete dissociation of ZnI2(aq) into ions. The molar mass of ZnI2 is 319.22 g/mol. Give the answer in mol/L with 3 or more significant figures. 3.Complete thesecond sentenceso that it has asimilar meaningto the firstsentence.a) My teacher wouldn't let me leave early.My teacher refused ...............b) Jill sang without stopping for an hour.Jill continued ..............c) Apparently you have passed the exam.It seemsd) Richard thinks he is going to do wellRichard expects.....e) What are your plans for the summer?What do you intend .................f) Clearing up my room is something I dislike!I hate .........g) Helen said she'd go to the cinema with me.Helen agreed ............h) Tina and Brian are getting married.Tina and Brian have decided ...............i) See you later, I hope.I hope ................j) What do you fancy doing this evening?What do you want .................. Juan is writing a report about a frogs journey from tadpole to adult frog. Jua n found the following facts during his research.Source 1: Metamorphosis: The Lifecycle of a FrogMetamorphosis is the process through which an animal changes shape.A frog begins as a tadpole. First, the tadpole sprouts hind legs; front legs grow later.After 10 weeks or so, the tadpoles tail shrinks until it is totally gone.Source 2: Amazing Facts about the FrogEvery frog species has its own special call.Frogs are excellent jumpers; some can jump several times their body length.Frog calls can be heard long distancesmaybe even a mile away.Select one:Source 1Source 2 Find the size of angle of cuz give your answer to 1 decimal place 13cm and 4cm Punctuation 6: Question 4 What does a dash most commonly connect? Select one: O Two proper nouns O Two independent clauses O Two prepositional phrases O Two adjectives Simplify the expression: 9f2 - 10 - 1 + 2/2 + -772 how many 2 digit numbers are multiples of five Before cellular division, the cell must duplicate its DNA so that the daughter cells will contain complete copies of the dna. Which characteristic of DNA makes it most suitable as a molecule for this role?A. DNA is located in the nucleus B. DNA is a large macromoleculeC. DNA is made of repeating sugar-phosphate subunits D. DNA is made of two strands of complementary nucleotides Please help me with this:A teacher decorated her classroom with 3 times as many balloons as paper fans. She used 12 fewer streamers than twice the number of paper fans. If the teacher had a total of 120 balloons, paper fans, and streamers, how many of each kind of decoration did she use? 2. Given the following balanced chemical equation: 3ZnO + 2Li3N-->Zn3N2 + 3Li20If 3.14 g of ZnO reacts with 3.14 g of Li3N,a. Identify the limiting reactant.b. Identify the reactant in excess.c. How many grams of Zn3N2 are formed?d. How many grams of the excess reactant are needed for the reaction?e. How many grams of the excess reactant are left at the end of the reaction? If the Market Equilibrium Wage Rate is $105.00 and FC = $1500.00: A. The firm Shuts Down and hires no workers and loses $1500.00 B. The firm hires 45 workers and earns a $1200.00 Economic Profit C. The firm hires 55 workers earns a $975.00 Economic Profit D. The firm hires 40 workers and earns a $1200.00 Economic Profit Strontium has 3 stable isotopes with mass numbers 86, 87 and 88. Their relative abundances are 9.97%, 7.0% and 82.6% respectively. How do the number of electrons and the electron configurations compare for atoms of the three isotopes Which group of organelles is directly responsible for the production of new molecules within a cell?A. Ribosomes, the endoplasmic reticulum, and Golgi apparatusesB. Golgi apparatuses, lysosomes, and the plasma membraneC. The endoplasmic reticulum, plastids, and vacuolesD. The nucleolus, vacuoles, and ribosomes What is the Indian legislature called Elena likes her school very much. Read Elena's description of her school. Then indicate whether the statements that follow are Cierto (true) or Falso (false).Me llamo Elena. Me gusta mucho estudiar en la escuela. Soy una buena estudiante. Siempre saco buenas notas y contesto todas las preguntas de la maestra. Me gusta mucho estudiar historia. Tengo la clase de espaol todos los das a las nueve de la maana. Siempre usamos la computadora en clase y de vez en cuando escuchamos msica en clase. Tambin, tengo la clase de arte a la una. Dibujamos todos los das. Tenemos que trabajar mucho en la escuela pero tambin hablamos con amigos y practicamos deportes despus de las clases.1. Elena saca buenas notas en la escuela. *CiertoFalso2. Elena tiene la clase de espaol a las ocho. *CiertoFalso3. En la clase de arte usan la computadora. *CiertoFalso4. Nunca escuchan msica en clase. *CiertoFalso5. Elena y sus amigos pueden practicar deportes despus de la escuela *CiertoFalso What effect would a mutation have on a protein if the codon sequence GUU changes to GUAA.there is no effect on the activity of the protein. B. A different protein will result from the new amino acid sequence. C. The codon will now code for the amino acid glutamine. D. The protein would not function correctly 12345678910112131415161718192021212223242526272829303132333435363738394041424344454647484950 Which group of words are signal words for cause and effect? *since, so, because, due to the facttoday, meanwhileabove, below, under, nextO first, last, then, finally How do the wavelength and frequency of colors change when moving from red to violet through the visible light spectrum?