If an if- else statement is true, it will include which kinds of results?

Answers

Answer 1

In an if...else statement, if the code in the parenthesis of the if statement is true, the code inside its brackets is executed. But if the statement inside the parenthesis is false, all the code within the else statement's brackets is executed instead.

Of course, the example above isn't very useful in this case because true always evaluates to true. Here's another that's a bit more practical:

#include <stdio.h>

int main(void) {

int n = 2;

if(n == 3) { // comparing n with 3 printf("Statement is True!\n");

}

else { // if the first condition is not true, come to this block of code

printf("Statement is False!\n"); } return 0;

}

Output:

Statement is False!


Related Questions

i have a question about Razer headsets. Is it possible to mix microphones? For example:
I have an "Electra V2" headset and microphone and I want to change it's microphone to Kraken.
Is it possible?​

Answers

Answer:

In theory yes it is gonna be pretty hard but it is very possible

it is used to hold screws, jumpers, fasteners, and other small parts and prevent them from getting mixed together​

Answers

Answer:

Cable ties

Explanation:

Used to bundle cables neatly inside and outside of a computer. It is used to hold screws, jumpers, fasteners, and other small parts and prevent them from getting mixed together.

>3

[tex]\boxed{Parts\: organizer}[/tex] is used to hold screws, jumpers, fasteners, and other small parts and prevent them from getting mixed together.

[tex]\bold{ \green{ \star{ \orange{Mystique35}}}}⋆[/tex]

A car manufacturer uses'simulation software during the design process for a new car. Which of the
following are reasons to use simulation software in this context?
1. Using simulation software can save the company money by helping to compare designs early in
the process, before prototype cars are built.
II. Using simulation software can help to identify safety issues by providing data about how different
mechanical components will interact in a wide variety of situations.
III. The manufacturer can present simulation software to customers to demonstrate different design
possibilities
А
I and II only
B
I and III only
С
II and III only
D
I, II, and III

Answers

D I,II and III is the answer i think

The reasons to use simulation software in this context are I, II, and III. The correct option is D.

What is simulation software?

The process of simulating a genuine phenomenon with a set of mathematical formulas is the foundation of simulation software. It is essentially a program that allows the user to simulate an operation and view it without really conducting it.

Simulation is a decision-making and decision-support tool. You can use simulation software to assess, compare, and optimize different designs, programs, and policies. As such, it can be used to explain and defend decisions to multiple stakeholders.

By allowing the corporation to evaluate concepts early in the process before prototype automobiles are constructed, simulation software can save the company money.

Therefore, the correct option is D, I, II, and III.

To learn more about simulation software, refer to the link:

https://brainly.com/question/16192324

#SPJ2

essay on personal assistants

Answers

Answer:

Explanation:

Personal assistants are hired to work very closely and directly to an individual such as a manager or top ranking persons who are usually very busy and have lots of several different tasks to attend to. The personal assistant would be seen as a person who posses the right multitasking skill, good communication skill and good interpersonal relationship skills can p handle administrative duties, respond to calls and visitors who may need to see the boss, give savvy response to cliemts and visitors and a good fre of mind to ensure that all scheduled lettings, appointments, travels are clearly noted to avoid missing important schedules. Depending on the preference of the manager or boss, they may be need to make specific gender representation of the personal assistant required. Also, some have designated some jobs to suit a certain gender more than the other as the favouured gender gets considered ahead of the other during the application process for jobs of such nature.

is solar energy reliable and powerful enough to be used in home or business​

Answers

Answer:

It all depends on what you are prepared to spend and what sort of system you install. I have both grid tie and stand alone systems installed at my home, and both work really well, although we initially had some inverter problems with the grid tie system until we decided to only use top shelf gear.

We have 6.6 kW grid tie system on the roof of the house which supplies around 3 times our requirements, and a 1.5 kW stand alone system that supplies the backyard workshop and pool pump. The grid tie system cost around $6500 to install, and the small stand alone system cost $4500 although this was designed and built by myself, so a purchased system may well be more (batteries are still expensive, but this price is coming down).

In the current configuration (top tier panels, Fronius grid tie inverter and Victron stand alone inverter and charge regulator), we have had no failures in several years, and power bills are something that happen to other people.

My advice is look at what your requirements are, then double that when you spec out your system and don’t go for the cheapest price. Buy your components based on the quality and reputation of the manufacturer, it will be expensive, but you will save money in the long run. A good manufacturer will guarantee their products for at least 12 years and you should expect to get at least 20 years of life out of them.

Explanation:

Solar energy is more than enough for any business or home, but if you want to know if it is cost effective, you need to run the numbers. It does have to be grid-tied though to provide electricity at night or when cloudy for multiple days. In most cases, batteries are not cost-effective at this time.

♡●♡ jess bregoli ♡●♡

#keep learning!!

complete the sentence: hexadecimal numbers use base ____

Answers

Hexadecimal numbers use base-16

Being a Base-16 system, the hexadecimal numbering system therefore uses 16 (sixteen) different digits with a combination of numbers from 0 through to 15. In other words, there are 16 possible digit symbols.

Can someone please type a code that makes a house in python and turtle graphics i need help

Answers

Answer:

import turtle  

turtle.speed(2)

#shape

turtle.forward(100)

turtle.left(90)

turtle.forward(100)

turtle.left(45)

turtle.forward(100)

turtle.left(90)

turtle.forward(100)

turtle.left(45)

turtle.forward(100)

turtle.left(90)

turtle.forward(100)

#door

turtle.left(90)

turtle.forward(50)

turtle.left(90)

turtle.forward(25)

turtle.left(90)

turtle.forward(50)

#windows

turtle.penup()

turtle.right(90)

turtle.forward(20)

turtle.right(90)

turtle.forward(20)

turtle.pendown()

turtle.forward(25)

turtle.left(90)

turtle.forward(40)

turtle.left(90)

turtle.forward(25)

turtle.left(90)

turtle.forward(40)

Explanation:

here :)

Two uses of mortise chisel

Answers

Answer:

Two uses of the mortise chisel are;

1) Mortise chisel are used for cutting across the grain of the wood directly   and also

2) To lever waste materials out of the cut area and smoothen the cut area

Explanation:

A mortice is a recessed hole created in a part that is meant to accommodate a complementary projection part, which will enable the fastening of the two parts together

A mortise chisel are chisels used for the chopping out mortise joints, and are designed such that the heavy impact of a mallet

It's usually easier to change the design of a photo album slide show A.after you've created the presentation. B.before you've created the presentation. C.before you've planned out the presentation. D.after you've planned out the presentation but before creating it.

Answers

Answer:

A. after you've created the presentation.

Explanation:

A power point presentation is defined as a presentation program where one can create any presentation or design any layout like the photo album slide show to present it to others.

Once the album is created in the PowerPoint, it can be changed by going to the slide show and editing the content of the photo album of the slide show. Thus it is easier to make any changes in the design of the photo album slide show after the presentation have been created.

Select the correct answer.
Frankle is trying to create an app. He creates a new ViewController and removes the default one. What should he keep in mind when building
the app?
OA
connect all the ViewControllers to the old ones
OB.
assigning the first ViewController as initial
Oc. creating a SplitViewController
OD. adding a segue from the last ViewController

Answers

od. adding a segue fro. the last viewcontroller

Name the function for output in python.

Answers

Answer:

We use the print() function to output data to the standard output device (screen). We can also output data to a file, but this will be discussed later. An example of its use is given below.

Answer:print()

Explanation:As said above. Print is what we use in python (:

Select the correct answer.

Susan is a programmer and uses the hexadecimal number system to represent instructions. Which letters of the alphabet do you think Susan uses to represent the numbers 10 to 15 in this number system?

A. A to F

B. A to H

C. A to M

D. A to J

Answers

Answer is  Hexadecimal  :     A.   A to F

Write a loop that displays your name 10 times. 2. Write a loop that displays all the odd numbers from 1 through 49. 3. Write a loop that displays every fifth number from 0 through 100. 4. Write a code sample that uses a loop to write the numbers from 1 through 10 to a file. 5. Assume that a file named People.txt contains a list of names. Write a code sample that uses a while loop to

Answers

Answer:

The program in Python is as follows:

#1

for i in range(10):

   print("MrRoyal",end=" ")

print()    

#2

for i in range(1,50,2):

   print(i,end=" ")

print()

#3

for i in range(0,101,5):

   print(i,end=" ")

print()

#4

i = 1

while i <=10:

   print(i,end =" ")

   i+=1

#5

myfile = open("People.txt", "r")

eachLine = myfile.readline()

while eachLine:

   print(eachLine)

   eachLine = myfile.readline()

myfile.close()

Explanation:

The program in Python is as follows:

Program #1

This iterates from 1 to 10

for i in range(10):

This prints the name for each iteration [modify to your name]

   print("MrRoyal",end=" ")

This prints a new line

print()    

Program #2

This iterates from 1 to 49 with an increment of 2

for i in range(1,50,2):

This prints the odd numbers in the above range

   print(i,end=" ")

This prints a new line

print()

Program #3

This iterates from 0 to 100 with a step of 5

for i in range(0,101,5):

This prints every 5th number

   print(i,end=" ")

Print a new line

print()

Program #4

This initializes the number to 1

i = 1

This opens the file in an append mode

f = open("myfile.txt", "a")

This loop is repeated from 1 to 10

while i <=10:

This writes each number to the file

   f.write(str(i))

Increment the number by 1

   i+=1

Close the file

f.close()

Program #5

This opens the file in a read mode

myfile = open("People.txt", "r")

This reads each line

eachLine = myfile.readline()

This loop is repeated for every line

while eachLine:

Print the content on the line

   print(eachLine)

Read another line

   eachLine = myfile.readline()

Close the file

myfile.close()

Describe how serial data access finds data

Answers

Answer:

Serial data access will go through all the data by order until the target data is reached

Explanation:

This is opposite of direct data access which immediately finds the desired

data

Answer:

Serial access works by accessing the data at the beginning and then working through it bit-by-bit until the end.

...

Examples of storage medium that use serial access are:

Video cassettes.

Music cassettes.

Backup tape cartridges(hold lots of tape for backing up large amounts of data)

IT technicians are setting up a new file server for a school. Describe the benefits and
drawbacks of using a command line interface (CLI) rather than a graphical user interface
(GUI) to set up a new file server.

Answers

Answer:

The benefits of using the command line interface for setting up a file server are;

1) The command line interface (CLI) is faster than other interfaces and can easily handle tasks which are repeating such as creating folders for users on the server

2) The CLI requires less time for processing with the CPU, and it takes up less memory such that the file Server is not slowed down during the file setup process

3) The system resources required are few

The drawbacks are;

1) The CLI is confusing to those who are not exposed to programming as the commands the user needs to learn to before they can setup setup the new file server

2) The users needs to be very accurate in terms of spelling errors as that will lead to failure of the program, there are no spell check, and a mistype can lead to the entire coding process being restarted from the beginning

Explanation:

Write a HTML code for displaying the following​

i need an answer urgently

Answers

Answer:

Following are the code to the given question:

Explanation:

<html>

<body>

<p align="center" >VOCATIONAL SUBJECT</p>

<table align="center" border="2">

 <tr>

   <td rowspan="2">YEAR</td>

   <td colspan="5">Vocational course</td>

 </tr>

<tr>

   <td rowspan="1">IT</td>

   <td rowspan="1">CS</td>

   <td rowspan="1">EL</td>

</tr>

    <tr>

   <td colspan="1">2016</td>

   <td colspan="1">66</td>

   <td colspan="1">68</td>

   <td colspan="1">60</td>

 </tr>

 <tr>

   <td colspan="1">2017</td>

   <td colspan="1">77</td>

   <td colspan="1">78</td>

   <td colspan="1">80</td>

 </tr>  

 <tr>

   <td colspan="1">2018</td>

   <td colspan="1">60</td>

   <td colspan="1">67</td>

   <td colspan="1">70</td>

   </tr>

</table>

</body>

</html>

what is the difference between coding with html and coding with python

Answers

Answer:

Python is an object-oriented programming language that is designed to be accessible and simple for all users, HTML is a web language and is used globally to define the structure of web pages by using various tags. HTML is not a programming language it's a markup language which is used to formatting web pages. Python is a general purpose scripting language which can be used to develop a wide range of programs.


1.can you identify the materials needed in making simple doorbell ???

2.what is the use of each material or tool needed in making simple doorbell?????

pakianswer po ng maayos​

Answers

Answer:

1. rotary tool, spray paint, light, drill,

Explanation:

Your company resides in an area with rapid growth in both the corporate and residential areas surrounding your office. As such, your company has been experiencing several brownouts due to power grid problems (too much demand and not enough electricity). Fearing that your computers (especially the servers) could be damaged by these brownouts, your manager has asked you to find a solution to this problem.
Which of the following would be the BEST device to recommend to your manager for computer protection?
A. Surge suppressor
B. Power strips
C. UPS
D. Wall Outlet

Answers

Answer:

The correct answer is option C (UPS).

Explanation:

Since brownouts are reduced voltages that might not be good enough for the required electricity capacity for your company, fearing that your computers (especially the servers) could be damaged, it is best to use UPS for your computer protection.

A UPS also called (Uninterruptable Power Supply) can function as a Surge suppressor when the voltages entering your company might be higher than normal, it can also function too in protecting your computers (especially the servers) in the case of a brownout when voltage required by your computers dropped below the required level. In the case of a brownout, the  UPS supplies energy stored in its batteries to make the computers keep working without going off from lack of electricity.

>What is the output of the following code:

list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]
print (list1[1] )

Answers

Answer:

Given code output is "786".

Explanation:

Code:

list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]#defining a list list1 that holds value in parameter

print (list1[1] )#use a print method that prints list index value

In the given code a list "list1" is declared that holds value in it and in the next step a print method is declared that prints the first index value of the list.

Are DoS and DDos tactics appropriate for legitimate organizations to use against others? What fallout is considered appropriate fallout should an attack be used on others? Explain your answer.

Answers

Answer:

They are inappropriate

fallouts: Access denial and data theft

Explanation:

Dos ( denial of service ) and DDos ( distributed denial of service ) are inappropriate for legitimate organizations to use against each other. because DOS or DDos attacks are attacks on the server of an organization by sending an unusual amount of traffic to the server, thereby denying the devices and users connected to the server access to the server.

Access denial and data theft are the fallouts associated with DOS  and DDos attacks

What is the Full form of DC?

Answers

Answer:

Deputy Commissioner.

Answer:

the full form of DC is deputy commissioner

Draw an electic bettle and label 3.​

Answers

Explanation:

hope it helps thank you❤

A company has recently adopted a hybrid cloud architecture and is planning to migrate a database hosted on-premises to AWS. The database currently has over 50 TB of consumer data, handles highly transactional (OLTP) workloads, and is expected to grow. The Solutions Architect should ensure that the database is ACID-compliant and can handle complex queries of the application.
Which type of database service should the Architect use?
A. Amazon Redshift
B. Amazon DynamoDB
C. Amazon Aurora
D. Amazon RDS

Answers

Answer: Amazon Aurora

Explanation:

Amazon Aurora is a fully managed service which is vital in saving time through the automation of time consuming tasks like recovery, backup, provisioning, patching, repair, and failure detection.

Amazon Aurora also allows the encryption of databases through the use of keys that are managed through the AWS Key Management Service. Therefore, based on the information given the question, type of database service that the Architect should use is Amazon Aurora.

(101101+10110) /110
101101-11001/101 please I need help

Answers

Answer:

000000000000000000000000000001111111111111111111

For what purpose do the hackers create the zombies army?

A. DDoS Attacks
B. DoS Attacks
C. Warm Attacks

Answers

Answer:

A. DDoS Attacks

Explanation:

A zombie, in computer terminology, is a hacker, computer worm, trojan horse, or virus compromised internet connected computer, which can be remotely directed to perform malicious tasks

E-mail spams and denial-of-service, DoS attacks are spread and launched by botnets of zombie computers

Botnets which are also known as "zombie army", are used by hackers mainly for spam and distributed-denial-of-service, DDoS, attacks

While a DoS attack involves one machine, while a DDoS attack consist of multiple computing devices and machines

A botherder is the originator of a botnet and common botnets include Mr Black. Pushdo, and cyclone

In cell K2 enter a formula using the IF and OR functions, as well as structured references, to determine if Adam Moriarty can be a group leader. a. The IF function should first determine if the staff member’s Service Years is greater than 3 OR if the staff member’s college graduate status is "Yes". Remember to use a structured reference to the Service Years and the College Graduate columns.

Answers

Solution :

The value of the K2 cell is filled by IF and OR functions with structured references as :

[tex]K2=IF(OR([CBF\ \text{Staff[ Service years]} > 3, \text{CBF Staff[College graduate]}="Yes"),"Yes","No")[/tex]

Now if the syntax of the formula is not provided, then we can use :

[tex]$K2=IF(OR([[\text{Service Years}]]>3,[[\text{College Graduate}]]="Yes"),"Yes","No")$[/tex]

The staff member are required to satisfy one of the two or both the conditions so as to become a group leader. The conditions are :

---   staff member should served for more than 3 years

--- staff members should be college graduate

Write a pseudocode to calculate the factorial of a number

Answers

Answer:

Answer CODE from C# Sharp  Language

Explanation:

using System;

namespace test

{

   class Program

   {

       public void silnia()

       {

           decimal liczba;

           decimal silnia = 1;

           Console.WriteLine("Obliczanie Silni ");

           Console.WriteLine("Podaj liczbę: ");

           liczba = Convert.ToInt32(System.Console.ReadLine());

           //liczba = int.Parse(Console.ReadLine());

           for (int i = 1; i <= liczba; i++)

               silnia *= i;

           Console.WriteLine("Wynik Silni Wynosi :  " +silnia +" \n ");

       }

       static Program ćwiczeniaA;

       static void Main(string[] args)

       {

           ćwiczeniaA = new Program();

           ćwiczeniaA.silnia();

       

           Console.WriteLine("Koniec Programu");

           System.Console.ReadLine();

       }                                

   }

}

there are 2048bytes in4megabytes true or false​

Answers

Answer:

FALSE IS THE ANSWER.

I HOPE IT IS HELPFUL

State two pieces of information that need to be labeled on the idea development sketch. 1 .________________________________________________. 2 .___________________________________________.​

Answers

Answer:

Design drawings should show details on layout, measurements, plan, cross-sectional and vertical profiles. This information is prepared as scale drawings of the works to be constructed. they are legible  they include all information from previous revisions and updates.

Explanation:

Other Questions
Which of the following best describes the term postulate? A. A statement that is not officially defined but that is understood to be common sense B. A precise statement of the qualities of an idea, object, or process C. A logical arrangement of deductions that leads to the conclusion that a statement is always true D. A statement that is assumed to be true without proof which of the following is an example of how science can solve social problems?It can reduce the frequency of severe weather conditions.It can control the time and day when cyclones happen.It can identify the sources of polluted water. It can stop excessive rain from occurring. chung minh phan so sau toi gian : 21n+4/14n+3 This holiday season, Ms. Bastarache organized to give each 9th grader a $10 Dunkin Donuts gift card. Because she bought a lot of cards, Ms. Bastarache tipped the Dunkin Donuts employee $20.This function represents the relationship between the number of gift cards, c, and T(c), the total cost of the cards.T(c) = 10c + 20Be sure to answer BOTH questions below.1. Determine the total cost, in dollars, for Ms. Bastarache to give out 93 gift cards.2. Last year, Ms. Bastarache spent $820, how many cards did she purchase?need help asap plzzzzzz Confused on how to solve this problem, please help and offer a step by step explanation 6+t=1 pls help............. Factores de la union goda y hispanoromana. If 3.02 g of CuNO3 is dissolved in water to make a 0.560 M solution, what is the volume of the solution in milliliters? Cellular respiration is essential for the survival of the Euglena. Why?Please help me. Which fact is not used to prove that ABC is similar to DBE? NEED HELP ASAP!!!!!! Find the time required for an investment of 7,000 dollars to grow to 14,000 dollars at an interest rate of 4% peryear, compounded monthly. Give your answer accurate to 2 decimal places.Previewyears. Graphic aids refer only to charts.TrueFalse How much would $600 be worth after 10 years, if it were invested at 4% interest compounded continuously? (Use the formula below and round your answer to the nearest cent.) A(t) = Pe^rt Professor moody repeatedly put the imperious curse on Harry until.... In cell K2 enter a formula using the IF and OR functions, as well as structured references, to determine if Adam Moriarty can be a group leader. a. The IF function should first determine if the staff members Service Years is greater than 3 OR if the staff members college graduate status is "Yes". Remember to use a structured reference to the Service Years and the College Graduate columns. what is the average rate of change between:x=1 and x=2x=2 and x=3x=3 and x=4 Determine the equation of the line perpendicular to y = 1/5x 7 and passes through the point (-3,6). Give a description of a recent 2018_2021 example of how this problem has displayed itself in your community if 100% = Rs 120,then. A.120% = Rs 84 B. 20% = Rs 84 C. 70% = Rs 84 D. 30% = Rs 84