exam questions

Exam 98-375 All Questions

View all questions & answers for the 98-375 exam

Exam 98-375 topic 1 question 76 discussion

Actual exam question from Microsoft's 98-375
Question #: 76
Topic #: 1
[All 98-375 Questions]

You write the following JavaScript code. (Line numbers are included for reference only.)

You need to write a function that will initialize and encapsulate the member variable full name.
Which are two possible code fragments you could insert at line 02 to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️
Note:
* In JavaScript this always refers to the ג€ownerג€ of the function we're executing, or rather, to the object that a function is a method of.
* If you assign a value to variable that has not yet been declared, the variable will automatically be declared as a GLOBAL variable.
This statement:
carname="Volvo";
Will declare the variable carname as a global variable , even if it is executed inside a function.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
betamalon
Highly Voted 5 years ago
The answer is B,C
upvoted 11 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...