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
larisa86 [58]
2 years ago
8

What will be the output of the following code?int p = 3,ch = 2;switch(ch){case 1: System. Out. Println("The square is: " + p*p);

break;case 2: System. Out. Println("The cube is: " + p*p*p);break;default: System. Out. Println("No Output Value");}
Computers and Technology
1 answer:
kodGreya [7K]2 years ago
4 0
“The cube is: 27”
or p^3
The switch function uses the ch int and identifies a matching case. Because ch is 2
We use case 2
Thus the following line at the top is printed.
Then automatically breaks the function, so we don’t continue.
You might be interested in
Create a series called 'directors' that contains each director's name and his or her average rating. Print out the type of your
sasho [114]

Using the computational language in python it is possible to write a code that we will use graphics to organize the names of the directors and the films they made.

<h3>Writing code in python:</h3>

<em>import pandas as pd</em>

<em>df = pd.read_csv('all_data/movie_metadata.csv')</em>

<em>print('Shape: ',df.shape)</em>

<em>df.head()</em>

<em>name = df[['director_name','imdb_score']] </em>

<em>directors = name.groupby(['director_name']).mean() </em>

<em>directors = directors.reset_index() </em>

<em>directors = directors.stack()</em>

<em>print(directors,'\n')</em>

<em>print(type(directors),'\n')</em>

<em>print(directors[directors=='Steven Spielberg'],'\n')</em>

<em>print(directors[102]['imdb_score'])</em>

<em>miyazaki = df[df['director_name'] == 'Hayao Miyazaki']['movie_title']</em>

<em>print(miyazaki)</em>

<em>pivot_agg = pd.pivot_table(df,values='imdb_score', index=['country'], columns=['director_name'],aggfunc=np.median)</em>

<em>pivot_agg</em>

<em>gladiator_duration = df[df['movie_title']=='Gladiator\xa0']['duration'] </em>

<em>gladiator_duration</em>

See more about python at brainly.com/question/18502436

#SPJ1

6 0
2 years ago
Uses of keyboard as a input device
KATRIN_1 [288]

helps us for typing letters, numbers and symbols etc.

3 0
4 years ago
Read 2 more answers
provide(s) many scalability benefits by offering additional network and storage resources on demand and services like autoscalin
Salsk061 [2.6K]

Answer:

The answer is cloud services.

Explanation:

The other answer choices just don't make sense. Python is a coding language and has nothing to do with scalability. Benchmarking has to do with finding out how powerful your system is. Denial of Service is when a website doesn't allow you to access it due to their servers being down.

6 0
3 years ago
You are working on a small network. You recently created a wireless network to allow the owners laptop and mobile devices to mak
Gekata [30.6K]

Answer: enable network encryption to prevent authorized computer from accessing the wireless network.

Explanation:

1.open the wireless security settings on your router’s configuration page.

2. select security method you wish to use.

3.Enter a passphrase needed to access the network whenever authorizes personnel want access to network.

5 0
4 years ago
Type the correct answer in the box. Spell all words correctly.
Viktor [21]

Answer:

editor

Explanation:

I just took the test and got it right.

4 0
3 years ago
Other questions:
  • Omar is preparing to deliver a presentation to his class. It is about a program to collect samples from an asteroid that has bee
    13·1 answer
  • In the negative side of the battery, there are millions and millions of _________.
    14·1 answer
  • Which of the following statements is FALSE?
    10·2 answers
  • What type of pointing device is often used by artists, and why is it ideal for artists?​
    12·1 answer
  • Input an int between 0 and 100 and print the numbers between it and 100, including the number itself and the number 100. If the
    5·1 answer
  • How do you think Beyoncé choreography has/will influence the future of dance?
    9·2 answers
  • What is the computer?​
    9·1 answer
  • Help pleaseeeeeeeeeeeeeeeeee
    7·1 answer
  • You have a server with two physical processors, each with four cores for a total of 8 cores. How many license packs must you buy
    10·1 answer
  • Consider Parameters with Referencing Environment. One complication with parameters that are subprograms appears only with langua
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!