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
Licemer1 [7]
3 years ago
8

If a programming language does not use short-circuit evaluation, what is the output of the following code fragment if the value

of myInt is 0?int other=3, myInt;if(myInt !=0 && other % myInt !=0)cout << "other is odd\n";elsecout << "other is even\n";
a.other is even
b.other is odd
c.0
d.run-time error, no output
Computers and Technology
1 answer:
miss Akunina [59]3 years ago
8 0

Answer:

Run time error, no output. If myInt = 0 and other is 3, then 3%0 will never occur...apart from that, myInt was neither declared nor initialized

Explanation:

You might be interested in
When would you use conditional formatting on a cell?
Charra [1.4K]
You use conditional formatting on a cell if the numbers are less then zero.
4 0
3 years ago
What naming scheme identifies the rows in a worksheet?
german
Rows are identified numbers and columns are identified by letters. Cell is A3, that means the cell is in column A and row 3.
7 0
4 years ago
Does this Java Program look correct? First, let me paste the question:Five friends are going to the theater. They have purchased
atroni [7]

Answer:

Your program is correct.

Explanation:

<u>You have this requeriments:</u>

  • James doesn't want to sit next to Jill.
  • Betty and Herb are dating and want to sit next to each other.
  • Bob must sit on an aisle.
  • Aisle on either end.

<u>Your answer:</u>

public class Seating{

public static void main (String [] args)

{ String James;

String Jill;

String Betty;

String Herb;

String Bob;

system.output.println(Bob + "," + Jill + "," + Herb + "," + Betty + "," + James + "."; } <em>//Bob is an aisle. James is not sit next to Jill. Betty and Herb are sit together.</em>

}

4 0
3 years ago
Write an algorithm to find the average of three numbers: 10, 20, 30
STALIN [3.7K]

Language: JavaScript

Answer:

let num = [10,20,30];

average(num);  

function average(num) {

 let sum = 0;

 for(let i in num) {

   sum += num[i];

 }  

 return console.log(sum/num.length);

}

3 0
3 years ago
Which cell contains an absolute reference?
Softa [21]

Answer:

An absolute cell reference is a cell address that contain a dollar sign $ in row and column coordinate or both. We use absolute reference to keep row and column constant

Example: C5*$C$2

The reference to C2 is absolute and will not change when copied.

5 0
3 years ago
Other questions:
  • While there are many types of sediments, those that make up sedimentary rocks must be transported by running water.
    9·1 answer
  • Résumés for teenagers and young adults typically consist of<br> (Apex)
    11·2 answers
  • What Windows Server 2016 feature leverages the storage contained on a network of servers and adds a new level of fault tolerance
    14·1 answer
  • What are the two most common form factors used today for computer cases, power supplies, and motherboards?
    15·1 answer
  • Naruto Uzumaki who likes naruto ??? who waches it??
    14·2 answers
  • what do i do when my mbot is not working but when I plug the cord into the computer it does work but only does one command over
    13·1 answer
  • why might a portrait be both a portrait of the subject and the photographer? how is a photographer present in a portrait?
    10·2 answers
  • We will extend this idea to streams. Write a function called rle that takes in a stream of data, and returns a corresponding str
    5·1 answer
  • What decides the amount of delay between shots on a digital camera?
    7·1 answer
  • Can anyone give me $2 (Reddem code/Promo Code)​
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!