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
Salsk061 [2.6K]
2 years ago
15

What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -=

14; System.out.println (x = " + x + ", y = " + y + ", z = " +z);"
Computers and Technology
1 answer:
Alex_Xolod [135]2 years ago
5 0

Answer:

Following are the output of the statements

x = 27, y = 4, z = 18.

Explanation:

Following is the description of the statements.

  • Initially, the variable x is initialized with 15,y is initialized with 26 and z is  initialized with 32
  • The statement x=x+12 means adding the value of variable x by 12 and store in "x" variable so x=15+12=27
  • The y = y/6; statement gives the result 4 because the "/" operator gives the quotient.So 26/6 gives 4.
  • z -= 14; statement gives the result 18 because it subtracts the value of z by 14 and stores in the "z" variable.
  • Finally the System.out.println () method print the value of "x","y" and "z" variable
You might be interested in
Which of these is NOT a benefit of being connected 24/7?
Serjik [45]

Answer:

c

Explanation:

answering messages is a more of a choice than a benifit.

3 0
3 years ago
17. What is something an employer might look for in person when hiring? (3
inessss [21]
D. all of the above
6 0
2 years ago
Read 2 more answers
File explorer provides ____ ways to view the contents of a folder.
AURORKA [14]
2 or 3 ways.......................................
5 0
3 years ago
Is a factory-formatted hard disk split into a fixed number of files?
IRINA_888 [86]

No, that is not true; <span>a factory-formatted hard disk does not split into a fixed number of files.
A hard drive is a data storage device (HDD) which is used to store or retrieve information using platters coated with magnetic materials.</span>

7 0
3 years ago
A variable definition defines the name of a variable that will be used in a program, as well as:
tresset_1 [31]

Answer:

A) The type of data it will hold

Explanation:

In most programming languages, a variable must be decalared before it can be used. Variable declarations allows the compiller to make provision of memory space for the variable so the type of data must be defined accordingly with the name of the variable because different data types occuppy different spaces in memory for example

An integer is 32 bit integral value

A char  is 16 bit unicode value

A double is 64 bit floating point value

6 0
2 years ago
Other questions:
  • What version of ubuntu is linux mint 17.3 based on?
    14·1 answer
  • Rows within a spreadsheet are identified by:
    8·1 answer
  • What general strategies can the network managers use to reduce congestions?
    7·1 answer
  • Which is the hanging indent on the ruler?
    10·2 answers
  • A(n) ____________________ is hardware or software that blocks or allows transmission of information packets based on criteria su
    13·1 answer
  • The IP protocol (and UDP) are called "connectionless" and "unreliable." Describe what those two words mean in the context of dat
    8·1 answer
  • ________models software in terms similar to those that people use to describe real- world objects.
    6·1 answer
  • Question No. 5:
    7·1 answer
  • Company A has a project plan for a new product under development. The product will be one of many released in the coming year. T
    5·1 answer
  • I need help so bad it’s the entire test for EdHesive python coding Test 2
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!