Interpret matching results across languages

Two developers write price calculations in different programming languages. Each fragment runs successfully in software that supports its own language, and each displays 33 for the supplied quantity.


In JavaScript, let introduces a variable and console.log displays a value. In both fragments, * means multiplication. No complete specification of the shop's pricing policy is supplied.


Python


Python
quantity = 3
total = quantity * 11
print(total)


JavaScript


JavaScript
let quantity = 3;
let total = quantity * 11;
console.log(total);


Which statements are supported by this evidence? Select all that apply.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More What Is Programming? Questions: