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
sergij07 [2.7K]
2 years ago
12

1) What is y after executing the statements?

Computers and Technology
1 answer:
balu736 [363]2 years ago
6 0

Answer: d. 12

Explanation: if X = 5, then y = 5 + 1 because in y = x + 1, You are replacing the x with 5.

y is now 6.

Now you are multiplying 6 * 2 because of y * 2. You replace the Y with the 6.

6 * 2 = 12

y = 12 or letter d

You might be interested in
What how do i delete a question
Dvinal [7]

Answer: not sure if you can

Explanation: idk if you can but if you wanna get a good answer try searching up on google hope i helped!

7 0
3 years ago
There are two activities on your schedule, which are: 1) install server in lab 2) move server into the data center. however, the
astra-53 [7]
Quality Assurance or testing.
4 0
4 years ago
What is an IF...THEN statement
Ede4ka [16]
It is used in science and it is usually used in a hypothesis statement. Example: if frogs jump 50 feet, then we can try to make the frog jump faster because the frog species can jump 110 feet maximum.
7 0
3 years ago
What are the benefits of writing functions that use parameters and return List 2 please and explain what is return
Ratling [72]

<u>Answer and explanation:</u>

There are many benefits of writing functions that use parameters and return. Some of them are:

1. Flexibility: With functions having parameters, several values of the parameters can be used at invocation time thereby making the application flexible. For example, given the following function in Java.

<em>public void showName(String name){</em>

<em>    System.out.println("Your name is " + name);</em>

<em>}</em>

To call this method (function), the programmer could use various values for the name parameter used in the function like so:

showName("John");

showName("Doe");

If the function didn't have a parameter, it is possible it will only print a hardcoded name every time the function is called.

2. Scope Control: When a function is allowed to return a value, it helps to work around scope issues since variables declared within a function are limited to that function and do not exist outside the function. This means that the values of these variables cannot be used anywhere else outside the function in which they are being declared. However, if the function returns a value, the value can be used anywhere else in the program.

For example:

<em>public String getDouble(int x){</em>

<em>    int y = x * 2</em>

<em>    return y;</em>

<em>}</em>

The function above returns twice the value of the argument supplied to it. Since the integer variable y is declared within the function, it's value cannot be used outside the function. However, since the value is being returned by the function, it could be used anywhere the function is being called. Thanks to the return keyword.

3 0
3 years ago
. It is perfectly valid to create pointers that point to __________
slega [8]

Answer:

NULL.

Explanation:

We can create a pointer that points to NULL.There is no problem in doing that you will not get any error.It means that the pointer right now points to nothing or 0.Look at this example for better explanation:-

#include <iostream>

using namespace std;

int main() {

   int *p=NULL;

   cout<<p;

return 0;

}

The output of this program is 0.

6 0
3 years ago
Other questions:
  • Write an expression that concatenates the string variable suffix onto the end of the string variable prefix .
    15·2 answers
  • Using underlining and italics at the same time is which of these? A. allowed but might be overkill B. always a good idea C. not
    15·2 answers
  • Measuring design attributes is helpful for comparingalternative designs and for predicting:
    11·1 answer
  • The function ________ comprises one or more statements that are executed when the function is called.
    14·1 answer
  • Want summmmmmmm bec i do lol
    9·1 answer
  • You are a network consultant who has been asked to attend an initial meeting with the executive management team of ElectroMyCycl
    10·1 answer
  • A bubble starts by comparing the first item in the list to all the remaining items, and swaps where the first item is ____ a lat
    9·2 answers
  • System.out.print(two.indexOf('r'));
    8·2 answers
  • Did you know you can buy a Passport Online?
    12·2 answers
  • Pictures in the _____ gallery give the appearance of a physical object, such as water drops or sand, that can give your presenta
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!