What is the result of the following code?
int x = 1;
switch(x)
{
case 1: printf( "Help" );
case 0: printf( "Me" );
break;
case 2: printf( "Hello World" );
}
A. HelpMe
B. Help
C. Help Me
D. Hello World

Answers

Answer 1

Answer:

B: Help

Explanation:

During the execution of this switch statement, it will print "Help" because that's the only case that matches the value of x, it will not print "Me" because that case does not match, so it will fall through that case into the break statement.


Related Questions

The Electronics Communications Privacy Act allows the government to have access to....?

Answers

The Electronic Communications Privacy Act allows the government to have access to a treasure trove of information regarding who you are, where you go, and what you do.

What is Electronic Communications Privacy Act?

Electronic Communications Privacy Act may be defined as a law that determines it is unlawful to wipe or apprehend communication, over wires.

This access to government is accumulated by cell phone providers, search engine operators, social networking sites, and other websites each and every day.

All such network providers track all major activities of individuals through the mode of electronic gadgets.

Therefore, it is well described above.

To learn more about The Electronics Communications Privacy Act, refer to the link:

https://brainly.com/question/14142485

#SPJ1

2. Why do old video games have large pixels and images with jagged edges?
Because that was the style at the time.
Because it allowed for larger files.
Because it allowed for smaller files.
Because smaller pixels didn't exist.

Answers

Answer:

A

Explanation:

cuz yea

What are three benefits of sharing on social media?

Answers

Answer:

reach more organization

get viral to whole entire nation

it also enhance to people's knowledge and quatable understandment

When creating an if() statement, when are curly braces required?
A. when there is only one statement line related to the test condition
B. when there are two or more statement lines related to the test condition
C. never
D. always

Answers

Answer:

B. When there are two or more statements lines related to the test condition.

Sorry if I got it wrong.

Build python

Prompt the user for the length,width and height of a room.


Calculate the area of the floor. (length*width)


Calculate the volume of the room. (length*width*height)


Display the area and volume to the user.


Open a file named “roomdata.txt”.


Write the area and volume to the file.

Answers

Answer:

You'd have to create a "roomdata.txt" file before writing to it.

Explanation:

#Python Geometry

lenght = int(input("Enter lenght: "))

width = int(input("Enter width: "))

height = int(input("Enter height: "))

def floor_area(area);

area = 0

area = lenght * width

return area

def room_volume(vol);

vol = 0

vol = lenght * width * height

return vol

print ("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)

f = open ("roomdata.text", "w")

f.write("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)

f.close()

4.24 LAB: Exact change
Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.

Ex: If the input is:

0
or less than 0, the output is:

No change
Ex: If the input is:

45
the output is:

1 Quarter
2 Dimes

Answers

The Exact change program is an illustration of conditional statements;

Conditional statements are used to make decisions

The Exact change program

The Exact change program written in java programming language, where comments explain each action purposes

import java.util.*;

public class Money{

public static void main(String [] args){

Scanner input = new Scanner(System.in);

// Declare Variables

int amount, dollar, quarter, dime, nickel, penny;

// Prompt user for input

System.out.print("Amount: ");

amount = input.nextInt();

// Check if input is less than 1

if(amount<=0)  {

  System.out.print("No Change");  }

else  {

  // Convert amount to various coins

  dollar = amount/100;   amount = amount%100;

  quarter = amount/25;   amount = amount%25;

  dime = amount/10;   amount = amount%10;

  nickel = amount/5;   penny = amount%5;

  // Print results

  if(dollar>=1)    {

    if(dollar == 1) { System.out.print(dollar+" dollar\n");}

  else { System.out.print(dollar+" dollars\n"); }

}

if(quarter>=1){

if(quarter== 1){System.out.print(quarter+" quarter\n");}

else{System.out.print(quarter+" quarters\n");}

}

if(dime>=1){

if(dime == 1){System.out.print(dime+" dime\n");}

else{System.out.print(dime+" dimes\n");} }

if(nickel>=1){

if(nickel == 1){System.out.print(nickel+" nickel\n");}

else{System.out.print(nickel+" nickels\n");}}

if(penny>=1){

if(penny == 1) {System.out.print(penny+" penny\n");}

else { System.out.print(penny+" pennies\n"); }}}}}

Read more about conditional statements at:

https://brainly.com/question/11073037

#SPJ1

What’s the main purpose of a personality test?

Answers

Answer:

Which of following is not anelectroyte

Personality tests are designed to systematically elicit information about a person's motivations, preferences, interests, emotional make-up, and style of interacting with people and situations.

You are preparing to communicate to an audience about analysis project. You consider the roles that your audience members play and their stake in the project. What aspect of data story telling does this scenario describes?

Answers

The aspect of data story telling does this scenario describes is audience engagement.

What is Audience engagement?

This is known to be  user engagement and it is a term that connote  the cognitive, emotional, or affective form of experiences that users do get or have with media content or any kind of brands.

Note that in the case above, the aspect of data story telling does this scenario describes is audience engagement.

Learn more about project from

https://brainly.com/question/13374052

#SPJ1

What is used for risk response control?

Answers

Answer:

Risk response control uses methods such as mitigate, avoidance, shift, actively accept, and passively accept.

Explanation:

Risk Response Control refers to the procedure of evaluating residual risks, detecting new risks, guaranteeing the execution of risk plans, and assessing the success of the plans in decreasing risk is known as risk response control. Whereby the risk response control techniques include acceptance, avoidance, transfer, and mitigation

When does if(x>=y) execute?
A. when x is greater than y
B. when x is equal to y
C. when x is greater than or equal to y

Answers

Answer:

C. When x is greater than or equal to y

Which of the following is not a valid technique to create a function stub?

a.
Use a pass statement

b.
Raise NotImplementedError

c.
Print a "FIXME" message and return -1

d.
Leave the function body empty

Answers

An option which isn't a valid technique to create a function stub is to: D. leave the function body empty.

What is a function stub?

A function stub can be defined as a type of function that can be called safely without an error. However, a function stub has no definition because it doesn't actually perform any action when called.

In this context, leaving the function body empty is an option which isn't a valid technique to create a function stub.

Read more on function stub here: https://brainly.com/question/17214711

#SPJ1

Use propositional logic to prove the following argument is valid. If Alice gets the office position and works hard, then she will get a bonus. If she gets a bonus, then she will go on a trip. She did not go on a trip. Therefore, either she did not get the office position or she did not work hard or she was late too many times. a) Define your propositions [5 points]: O = W = B = T = L = b) Write down the logical argument [8 points]: c) Proof sequence [12 points]: Steps: Reason: 1. 2. 3. …

Answers

This question relates to Propositional logic. Thus, the propositions as defined are:

A = Gets office position

B = Works hard

C = Gets a bonus

D = Go on a trip.

What is the logical argument?

The logical argument is notated as follows:

((A∧B)→C)∧(C→D)∧(¬D),∴((¬A)∨(¬B))

What is a propositional logic?

A proposition is an assertion that can only be one of two things: valid or wrong. It can never be both.

Learn more about propositional logic at;
https://brainly.com/question/16783205
#SPJ1

1) Which of the following best describes the Ribbon?
B. A feature that can translate text into any language
C. A slider that you can use to zoom the document
D. A cable that connects your computer to a printer
E. A toolbar with various commands

Answers

Answer:

E. A toolbar with various commands

Explanation:

the ribbon is pretty much the red bar on top of your screen on power point

The option that best describes the Ribbon is A toolbar with various commands.

What is ribbon in MS Word?

The Ribbon is known to be a kind of a user interface element that is said to be found below the Quick Access Toolbar and the Title Bar and It made up of Home, Insert, Page layout commands and others.

Therefore one can say that The option that best describes the Ribbon is A toolbar with various commands.

Learn more about ribbon from

https://brainly.com/question/11685530

#SPJ6

Briefly explain the importance of doing backup in systems administration and explain in detail any three methods for performing backup!?​

Answers

Answer:

Importance of backup in system administration:

Backups are crucial in system administrations for preserving continuity and protecting against specific types of hardware failures, service interruptions, and human mistakes. To aid a company in recovering from an unexpected catastrophe, backup copies make it possible to restore data to a previous point in time. To safeguard against primary data loss or corruption, it is essential to save a copies of data on a different media. When a system administrator create a backup, he makes a copy of the data that you can restore if your main data is lost. These errors may be the consequence of faulty hardware or software, corrupted data, or a human error like a targeted attack or an unintentional deletion. System backup and recovery is therefore a crucial skill for system administrators as well as the companies they work for.

Three methods for performing backup:

Disk image: A efficient method to back up not only the files and directories but also everything else on the system is by creating a disk image. If a user have a disk image, the user can restore everything, including the operating system, applications, data, and more, so the user won't have to worry about any difficulties. Placing the  disk image-containing DVD into the DVD-ROM to restore the backup. Additionally, just attach an external HDD to the computer if the user have a disk image that they made.External hard drive: The most common backup method is to use an external hard drive or even a USB flash drive. An HDD can be easily, quickly, and affordably backed up. It is effective since consumers may carry their portable backup with them wherever they go. Cloud backup: Cloud backup or Online backup has been around for a while, but not many people really utilize it. But the greatest backup technique by far is cloud backup. The user does not have to worry about hardware problems because their files are saved in the cloud and can be accessed from anywhere because the backups are automatically produced and everything is synchronized. It is one of the greatest methods to backup, especially when you consider that the contents are encrypted and stored securely.

of
tion
TCP/IP was developed in the 1960s to enable university scientists to locate other computers on the Internet.
Select one:
O True
O False

Answers

Answer:

True

Explanation:

a ___ is a type of computer that is small and portable?

Answers

Answer:

laptop

Explanation:

laptops are small and they can be taken anywhere.

what are the effects of information systems in the management of corona ?

Answers

The effects of information systems in the above are:

It is used for Remote access and working remotely.Managing supply chain issues.What is impact of information system?

Information systems is one  that has helped to lower the number of levels in an organization by giving managers with a lot of information to monitor larger numbers of workers.

Note that The effects of information systems in the above are:

It is used for Remote access and working remotely.Managing supply chain issues.

Learn more about information systems from

https://brainly.com/question/14688347

#SPJ1

You get a text. It is a reminder from your dentist’s office that you have an appointment tomorrow. It says to type “1” to confirm or “2” to cancel the appointment. You accidentally type a “3” and nothing happens. How could the input validation be improved?

Answers

Answer:

Redo the one you want

Explanation:

Redo the "1" if you are confirming the appointment

Or "2", if you do not.

Do not fret over this worse, comes to worse call your dentist back and explain you hit the 3 by mistake and then tell them your decision .

Why should we apply print preview before printing the document.​

Answers

to helps them to see how the final printed material will appear. 

What federal law requires manufacturers to put care labels on their garments and fabrics sold by the yard?

Answers

CARE LABELING RULE which requires manufacturers and importers to attach care instructions to garments.

what are the 7 layers of cyberspace?

Answers

Answer:

The OSI model's seven layers are the: Human Layer, Perimeter Layer, Network Layer, Endpoint Layer, Application Layer, Data Layer, and Mission Critical Layer . Each layer represents a different stage in network communication, from someone typing on a keyboard to the data your system uses for applications.

What is wrong with this case statement -> case 2:
A. cases must be capitalized
B. cases must use a ; and not a :
C. nothing

Answers

Answer:

C: Nothing

Explanation:

Assuming this case is acting upon a switch on an integral value, there is nothing wrong with this case header.

var x = 10;

switch (x)

{

case 2:

     Console.WriteLine("The value of 'x' is 2!");

}

If 294.00 units are made and demand is 287.00. Your fixed expenses are $1257.00. Your variable cost per unit is $2.25. Your Sales price is 6.49. The variable expenses for the day is?

Answers

If the  294.00 units are made and the cost per unit is $2.25 then variable expenses for the day is $661.5.

Given that 294.00 units are made and the variable cost per unit is $2.25

We have to find variable expenses for the day.

Total variable expenses for the day are a product of the output and the variable cost per unit.

So the variable expenses = no. of output x variable cost per unit

Variable expenses = 294 x 2.25

Variable expenses = 661.5

Hence the variable expenses for the day is $661.5

Learn more about variable expenses here: https://brainly.com/question/8225307

#SPJ10

What is an example of a Data component within an enterprise platform?

Answers

An example of a Data component within an enterprise platform A mobile app used by potentail customers to buy product or place an order.

What is an enterprise platform?

An Enterprise Business Platforms is known to be a kind of an integrated software applications that helps and shared data which is often combined to form Enterprise Business Solutions or Apps.

Note that An example of a Data component within an enterprise platform A mobile app used by customers to buy product or place an order.

Learn more about enterprise platform from

https://brainly.com/question/25946375

#SPJ1

Suppose that you have the following definitions:
struct time Type
struct tourType
{
int hr;
double min;
int sec;
string cityName;
int distance;
timeType travelTime;
};
};
a. Declare a variable destination of type tourType.
b. Write C++ statements to store the following data in destination: cityName - Chicago, distance -- 550
miles, travelTime - 9 hours and 30 minutes.
c. Write the definition of a function to output the data stored in a variable of type tourType.
d. Write the definition of a value-returning function tat inputs data into a variable of type tourType.
e. Write the definition of a void function with a reference parameter of type tourType to input data in a
variable of type to tourType

Answers

Suppose that you have the following definitions:struct time Type struct tourTypen the variable destination of type your type are tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.city name;

What is C++ statements?

Expression statements. These statements examine an expression for its aspect outcomes or for its go-back value. Null statements. These statements may be supplied in which a declaration is needed with the aid of using the C++ syntax however in which no motion is to be taken.

#include#includethe use of namespace std;struct timeType;struct tourType;tourType destination;tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.cityName;cin>>destination.distance;cin>>destination.travelTime.hr;cin>>destination.travelTime.min;go back destination;}void display()cityName;d.distance = t->distance;d.travelTime.hr = t->travelTime.hr;d.travelTime.min = t->travelTime.min;">int main().

Read more about the variable :

https://brainly.com/question/2804470

#SPJ1

What is the value of X when line 30 is executed in the program below:
10 X = 5
20 X = X + 5
30 X = X/5 + X
40 X = X * 5
50 X = (X - 5)/5

this is for qbasic btw

any helpis appreciated pls only correct answers

Answers

Answer:

X = 12

Explanation:

The primary value of X is 5. In line 20 X = X + 5, which is saying the primary value of X ,5, + 5, this is going to return the value of X to now become 10. Now the primary value of X in the program has changed to 10.

In line 30 X = X/5 + X, keeping in mind that the new primary value is not 5 but 10. So now line 30 is saying X = 10/5 + 10. This return the value of X to be 12.

The layer of ISO/OSI model organizes bits into logical data unit

Options:
(a) transport
(b) data-link
(c) network
(d) physical ​

Answers

Answer:

Physical Layer

Explanation:

Physical Layer: It is responsible for the actual physical connection between

the devices. The physical layer contains information in the

form of bits.

Complete the sentence about bias and equity.
There is a lack of
in the field of computer science.

Answers

Answer:

diversity

Explanation:

Complete the sentence about bias and equity.

There is a lack of  

diversity

in the field of computer science.

got it right

Answer:Below

Explanation:

When evaluating an OR operator, what is necessary for execution.
A. Only one condition can be true
B. One condition must be true
C. Both conditions must be true

Answers

Answer:

B

Explanation:

What is CPU? List its major parts.​

Answers

Answer:

The central processing unit is the brain of the computer. it is the part of the computer which performs manipulations. it is also called the microprocessor.

components of the CPU: The control unit, the arithmetic and logic unit, the register and the memory unit.

I hope you understand:-):-)

Other Questions
Iliana cubed the number of flowering plants in her garden, then added 2 vegetable plants. Let p represent the original number of plants in her garden. Which shows an expression to represent the total number of plants in her garden and the total number of plants if p = 3?3 p minus 2; when p = 3 the number of plants is 73 p + 2; when p = 3 the number of plants is 11p cubed minus 2; when p = 3 the number of plants is 25p cubed + 2; when p = 3 the number of plants is 29 Which of the following is a function of the plasma membrane?a. breaks down lipids, carbohydrates, and proteins from foodsb. stores water, salt, proteins, and carbohydratesc. keeps the cell wall in placed. regulates which materials enter and leave the cell Question 7About __________% of the human life cycle is taken up by infancy and childhood.20%O 10%.O 25%O 5% ________ development involves learning, attention, memory, language, thinking, reasoning, and creativity. An athlete is running at a constant velocity with a javelin held in his right hand. The force he is applying on the javelin to carry it is 5.0 newtons. If he covers a distance of 10 meters, what work has he done on the javelin? Which expression simplifies to 2 divided 15 ? 8. (08.03 LC)A set of equations is given below:Equation C: y = 3x+7Equation D: y = 3x + 2How many solutions are there to the given set of equations? (1 point)One solutionOTwo solutionsO Infinitely many solutionsNo solution How were the Normandy landings similar to the atomic bomb attacks onJapan during World War II?A. Both were collaborative efforts among the United States, Canada,and Great Britain.B. Both were major offensive attacks by Allied forces thatcontributed to the end of the war.C. Both offensives were successful first attempts to use a new formof military technology.D. Both occurred on the same day as part of a coordinated offensiveagainst the Axis powers. s. aureus has been isolated from georges infected wound. to satisfy kochs postulates, what would georges doctor need to do with the isolated s. aureus? 5As you know, usuallyagree) with the things you're saying nowThis time last yearthe city centreI was so tired last night thattelevision.4I missed my bus to school yesterday, and by the time(lesson /start).(Tim/visit) me next Sunday, and23Grammar and vocabularyA Complete the sentences with the correct form of the words in bracketsExample:We study (we/study) English every day, but today we're doing (we/do) a progress test1cinema.(1/agree) with everything you say, but(1/work) in a shop and(1/fall) asleep while(1/not(live) in a small flat in(1/watch)(1/arrive), my(we/probably/go) to the Corrosion may be regarded as the destruction of metal by:Electrochemical actionHydroelectric actionElectromechanical actionAll of the above What is the solution set for the following inequality? 4x 3 + 6x > 5x + 7 How does the author develop the central idea across these passages?Alvarez describes how she and her mother were emotionally distant, but once she moved to Vermont, her mother was finally able to bestow praise.Alvarez describes events in her childhood to show how the relationship between her and her mother was strained, but improved as she grew older.Alvarez traces moments that highlight her mothers desire for silence, culminating in the moment her mother expressed pride in her writing.Alvarez explains the difficulty she had in going against her mothers wishes to write about their experiences and how it was worth it in the end. The diagram shows a line joining O to P.The gradient of the line is 2 The length of the line is 2645 Work out the coordinates of P. rrrrrrrrrrrrrrrrrrrrr Which words in the sentence are adverbs? choose four answers. lonely quite slowly new eventually really overjoyed The failure of Soviet agricultural policy under Khrushchev and Brezhnev was demonstrated by? if a victim refuses first aid treatment, the first aid responder should why is jesse owen prominent in the history of Olympics?? EMERGENCY!! 25 POINTS!!Make a table for the following data.a) English, Maths, Urdu, Science, English, Urdu, Science, Maths, English, Computer, Maths, Urdu, Science, Maths, Computer, English.