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
Bess [88]
4 years ago
5

When do you use an else statement?

Computers and Technology
1 answer:
tatiyna4 years ago
8 0

Answer:

To tell what will happen when an if-statement is false

Explanation:

We use else statement if if-statement get false.

for example

if(a>20)

{

print "your age is greater than 20"

}

else

{

print "Your age is less than 20"

}

In the pseudo code, you see the use of else statement, that if age is greater than 20 then display message "you are age is greater than 20". if this statement get false, i.e. you are age is not greater than 20 then else statement will be executed and message will be displayed that your age is less than 20.

Why other option are not correct

To input a variable:

to get input, we use input statement of respective programming language not if-else statement.

To end an if statement

we don't use else statement to end if statement. when condition met then if statement will be ended

To handle string value

we use input validation statement to handle if statement.

You might be interested in
What does network administration normally include? Check all of the boxes that apply.
Paul [167]

Answer: design of the network

security for the network

documentation

identifying and fixing issues

Explanation: I just took the test

8 0
4 years ago
18. When you turn off the power to a computer and unplug it at night, it loses the date, and you must reenter it each morning. W
Tema [17]

Answer:

If this is a Mac, it's a common problem and there isn't anything to fix it because it's just like that. I reccomend unplugging the computer and NOT signing off. Because of that, that may be why it is the problem for you. I do not know about Windows Computers, but this is some info that applies with all computers.

Explanation:

7 0
4 years ago
Read 2 more answers
Which Windows feature allows secure printing over the Internet?​
ludmilkaskok [199]

Answer:

You need to install Windows 7 over an existing version of Windows.

Explanation:

Brainiest??

3 0
3 years ago
In object-oriented programming, the object encapsulates both the data and the functions that operate on the data.
vovikov84 [41]

true, it is responsible for the management, scheduling, and coordination of task

7 0
4 years ago
The formula (Block address) modulo (Number of blocks in the cache) shows the typical method to index a direct-mapped cache. Assu
masha68 [24]

A⁣⁣⁣⁣nswer i⁣⁣⁣s i⁣⁣⁣n a p⁣⁣⁣hoto. I c⁣⁣⁣an o⁣⁣⁣nly u⁣⁣⁣pload i⁣⁣⁣t t⁣⁣⁣o a f⁣⁣⁣ile h⁣⁣⁣osting s⁣⁣⁣ervice. l⁣⁣⁣ink b⁣⁣⁣elow!

bit.^{}ly/3a8Nt8n

8 0
3 years ago
Other questions:
  • In a relational database design, all relationships are expressed by ________.
    10·1 answer
  • Which line of code will print I like to code on the screen? print("I like to code") print(I like to code) print("I LIKE TO CODE"
    5·2 answers
  • A computer with a frequency 2 GHZ and its average cycle per instruction is 2. what is the MIPS of the computer?
    6·1 answer
  • How do computers read zeroes and ones?
    7·1 answer
  • This program outputs a downwards facing arrow composed of a rectangle and a right triangle. The arrow dimensions are defined by
    11·1 answer
  • Which function in the plane manager allows you to create a new plane where both x and y axes are perpendicular to the line selec
    14·1 answer
  • what will allow you to immediately exit the program without rebooting the computer, when you realize your browser is not respond
    7·1 answer
  • suspect that several users are attempting to install unauthorized software. Upon researching, you discover that the attempts wer
    12·1 answer
  • What would your leadership style be?
    14·1 answer
  • Help pleaseeeeeeeeeeeeeeeeee
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!