Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JavaScript Question 7 (1 point) The primitve data types provided by JavaScript a

ID: 3910251 • Letter: J

Question

JavaScript

Question 7 (1 point)

The primitve data types provided by JavaScript are

Question 7 options:

Boolean, integer, decimal

Boolean, numeric, string

character, string, numeric

Boolean, string, character

Save

Question 8 (1 point)

Which of the following is a valid statement for declaring and initializing a variable named length to a starting value of 120?

length = 120;

int length = 120;

var length = 120;

num length = 120;

Question 9 (1 point)

Assuming that the following three variables have already been declared, which variable will store a Boolean value after these statements are executed?
choice = true;
again = "false";
result = 0;

choice

again

result

none of these are Boolean variables

Save

Question 10 (1 point)

A value assigned to a variable can be

a literal value

another variable

an arithmetic or string expression

any of the above

Question 11 (1 point)

The order of precedence for arithmetic expressions causes

multiplication operations to be performed before addition operations

division operations to be performed after subtraction operations

increment operations to be performed after modulus operations

addition operations to be performed before subtraction operations

Save

Question 12 (1 point)

What is the value of the variable named result after the following code executes?
var X = 5; var Y = 3; var Z = 2;
var result = X + Y / Z * X;

Question 12 options:

.8

20

12.5

32.5

Boolean, integer, decimal

Boolean, numeric, string

character, string, numeric

Boolean, string, character

Explanation / Answer

7) Javascript provide 6 primitive data type.

So correct ans is Boolean, numeric, string

8) We can declear javascript variable by var followed by variable name

So correct ans is var length = 120;

9) choice store a boolean value. again contain a string value and result contain a numeric value.

10) Correct ans is any of the above. Because javascript support all procedure mentioned in the question.

11) Correct ans is multiplication operations to be performed before addition operation.

12) 5 + 3 / 2 * 5

=5 + 1.5 * 5

=5 + 7.5

=12.5

Correct ans is 12.5

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote