2024年最新の有効なJavaScript-Developer-Iリアル試験問題(更新された)100%問題集と練習試験合格させます [Q90-Q112]

Share

2024年最新の有効なJavaScript-Developer-Iリアル試験問題(更新された)100%問題集と練習試験合格させます

[更新されたのは2024年]Salesforce JavaScript-Developer-I問題準備には無料サンプルのPDF

質問 # 90
A developer has two ways to write a function:
Option A:
function Monster() {
This.growl = () => {
Console.log ("Grr!");
}
}
Option B:
function Monster() {};
Monster.prototype.growl =() => {
console.log("Grr!");
}
After deciding on an option, the developer creates 1000 monster objects.
How many growl methods are created with Option A Option B?

  • A. 1 growl method is created regardless of which option is used.
  • B. 1000 growl methods are created regardless of which option is used.
  • C. 1 growl method is created for Option A. 1000 growl methods are created for Option B.
  • D. 1000 growl method is created for Option A. 1 growl methods are created for Option B.

正解:D


質問 # 91
Refer to HTML below:
<div id ="main">
<div id = " card-00">This card is smaller.</div>
<div id = "card-01">The width and height of this card is determined by its contents.</div>
</div>
Which expression outputs the screen width of the element with the ID card-01?

  • A. document.getElementById(' card-01 ').style.width
  • B. document.getElementById(' card-01 ').innerHTML.lenght*e
  • C. document.getElementById(' card-01 ').getBoundingClientRest().width
  • D. document.getElementById(' card-01 ').width

正解:C


質問 # 92
A developer implements and calls the following code when an application state change occurs:
Const onStateChange =innerPageState) => {
window.history.pushState(newPageState, ' ', null);
}
If the back button is clicked after this method is executed, what can a developer expect?

  • A. The page reloads and all Javascript is reinitialized.
  • B. The page is navigated away from and the previous page in the browser's history is loaded.
  • C. A popstate event is fired with a state property that details the application's last state.
  • D. A navigate event is fired with a state property that details the previous application state.

正解:B


質問 # 93
Refer to the code:

Given the code above, which three properties are set for pet1? Choose 3 answers

  • A. canTalk
  • B. name
  • C. type
  • D. owner
  • E. size

正解:A、C、E


質問 # 94
developer publishes a new version of a package with new features that do not break backward compatibility. The previous version number was 1.1.3.
Following semantic versioning format, what should the new package version number be?

  • A. 2.0.0
  • B. 1.2.3
  • C. 1.2.0
  • D. 1.1.4

正解:A


質問 # 95
A developer wrote a fizzbuzz function thatwhen passed in a number, returns the following:
'Fizz' if the number is divisible by 3.
'Buzz' if the number is divisible by 5.
'Fizzbuzz' if the number is divisible by both 3 and 5.
Empty string if the number is divisible by neither 3 or 5.
Whichtwo test caseswill properly test scenarios for the fizzbuzz function?
Choose 2 answers

  • A. let res = fizzbuzz(Infinity);console.assert ( res === '' )
  • B. let res = fizzbuzz(3);console.assert ( res === ' buzz ' )
  • C. let res = fizzbuzz(5);console.assert ( res === ' ' );
  • D. let res = fizzbuzz(15);console.assert ( res === ' fizzbuzz ' )

正解:A、B、D


質問 # 96
developer wants to use a module named universalContainersLib and them call functions
from it.
How should a developer import every function from the module and then call the fuctions foo
and bar ?

  • A. import all from '/path/universalContaineraLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar();
  • B. import * from '/path/universalContaineraLib.js';
    universalContainersLib.foo();
    universalContainersLib.bar();
  • C. import (foo, bar) from '/path/universalContainersLib.js';
    foo();
    bar();
  • D. import * ad lib from '/path/universalContainersLib.js';
    lib.foo();
    lib.bar();

正解:D


質問 # 97
There is a new requirement for a developer to implement a currPrice method that will return the current price of the item or sales..

What is the output when executing the code above

  • A. 50
    80
    72
  • B. 50
    80
    Uncaught Reference Error:this,discount is undefined
    72
  • C. 50
    Uncaught TypeError: saleItem,desrcription is not a function
    50
    80
  • D. 50
    80
    50
    72

正解:D


質問 # 98
Refer to the code below:
const event = new CustomEvent(
//Missing Code
);
obj.dispatchEvent(event);
A developer needs to dispatch a custom event called update to send information about recordId.
Which two options could a developer insert at the placeholder in line 02 to achieve this?
Choose 2 answers

  • A. 'Update' , {
    Details : {
    recordId : '123abc'
  • B. 'Update' , '123abc'
  • C. { type : 'update', recordId : '123abc' }
  • D. 'Update' , (
    recordId : '123abc'
    (

正解:A、D

解説:
}
}


質問 # 99
Refer to the code declarations below:

Which three expressions return the string JavaScript?
Choose 3 answers

  • A. Str1.join (str2);
  • B. Str1.concat (str2);
  • C. Concat (str1, str2);
  • D. Str1 + str2;
  • E. $(str1) $ (str2} ';

正解:B、D、E


質問 # 100
Refer to the code below:
function changeValue(param) {
Param =5;
}
Let a =10;
Let b =5;
changeValue(b);
Const result = a+ " - "+ b;
What is the value of result when code executes?

  • A. 10 - 5
  • B. 10 -10
  • C. 5 -5
  • D. 5 - 10

正解:B


質問 # 101
A developer is trying to handle an error within a function.
Which code segment shows the correct approach to handle an error without propagating it elsewhere?

  • A.
  • B.
  • C.
  • D.

正解:A


質問 # 102
Refer to the code below:
console.log(''start);
Promise.resolve('Success') .then(function(value){
console.log('Success');
});
console.log('End');
What is the output after the code executes successfully?

  • A. SuccessStartEnd
  • B. StartSuccessEnd
  • C. StartEndSuccess
  • D. EndStartSuccess

正解:C


質問 # 103
Refer to the expression below:
Let x = ('1' + 2) == (6 * 2);
How should this expression be modified to ensure that evaluates to false?

  • A. Let x = ('1' + ' 2') == ( 6 * 2);
  • B. Let x = ('1' + 2) == ( 6 * 2);
  • C. Let x = (1 + 2 ) == ( 6 / 2);
  • D. Let x = (1 + 2) == ( '6' / 2);

正解:B


質問 # 104
bar, awesome is a popular JavaScript module. the versions publish to npm are:

Teams at Universal Containers use this module in a number of projects. A particular project has the package, json definition below.

A developer runs this command: npm install.
Which version of bar .awesome is installed?

  • A. The command fails, because version 130 is not found
  • B. 1.3.1
  • C. 1.3.5
  • D. 1.4.0

正解:C


質問 # 105
A developer creates a generic function to log custom messages in the console. To do this, the function below is implemented.
01 function logStatus(status){
02 console./*Answer goes here*/{'Item status is: %s', status};
03 }
Which three console logging methods allow the use of string substitution in line 02?

  • A. Info
  • B. Assert
  • C. Message
  • D. Log
  • E. Error

正解:A、B、D


質問 # 106
A developer publishes a new version of a package with new feature that do not break backward compatibility. The previous version number was 1.1.3.
Following semantic versioning format, what should the new package version number be?

  • A. 2.0.0
  • B. 1.2.3
  • C. 1.2.0
  • D. 1.1.4

正解:C


質問 # 107
Refer to the HTML below:
<p> The current status of an order: < span> id='' status '> In progress < /span> < /p> Which JavaScript Statement changes the text 'In Progress' to Completed'?

  • A. Document, getElementById (''# status''), innerHTML = 'Completed' ;
  • B. Document, getElementById ('',status''), innerHTML = 'Completed' ;
  • C. Document, getElementById (status'') , value = completed' ;
  • D. Document, getElementById (''status''), innerHTML = 'Completed' ;

正解:D


質問 # 108
Refer to the code below:
<html lang="en">
<table onclick="console.log(Table log');">
<tr id="row1">
<td>Click me!</td>
</tr>
<table>
<script>
function printMessage(event) {
console.log('Row log');
}
Let elem = document.getElementById('row1');
elem.addEventListener('click', printMessage, false);
</script>
</html>
Which code change should be made for the console to log only Row log when 'Click me! ' is clicked?

  • A. Add event.stopPropagation(); to printMessage function.
  • B. Add event.removeEventListener(); to window.onLoad event handler.
  • C. Add event.removeEventListener(); toprintMessage function.
  • D. Add.event.stopPropagation(); to window.onLoad event handler.

正解:A


質問 # 109
The developer wants to test the code:
Const toNumber = (strOrNum) => + strOrNum;
Which two tests are most accurate for this code? Choose 2 answers

  • A. Console. Assert (Number,isNaN (toNumber ( ) ));
  • B. Console,assert (toNumber ( ) === NaN ) ;
  • C. Console,assert (toNumber ( '-3') < 0);
  • D. Console.assert (toNumber ('2') === 2 ) ;

正解:B、D


質問 # 110
A Developer wrote the following code to test a sum3 function that takes in an array of numbers and returns the sum of the first three number in the array, The test passes:
Let res = sum2([1, 2, 3 ]) ;
console.assert(res === 6 );
Res = sum3([ 1, 2, 3, 4]);
console.assert(res=== 6);
A different developer made changes to the behavior of sum3 to instead sum all of the numbers present in the array. The test passes:
Which two results occur when running the test on the updated sum3 function ?
Choose 2 answers

  • A. The line 05 assertion passes.
  • B. The line 02 assertion passes.
  • C. The line 02 assertion fails
  • D. The line 05 assertion fails.

正解:B、D


質問 # 111
Refer to the following code:
Let sampleText = 'The quick brown fox jumps';
A developer needs to determine if a certain substring is part of a string.
Which three expressions return true for the given substring ?
Choose 3 answers

  • A. sampleText.includes(' quick ', 4);
  • B. sampleText.includes('fox');
  • C. sampleText.includes(' Fox ', 3)
  • D. sampleText.includes(' quick ') !== -1;
  • E. sampleText.includes(' fox ');

正解:A、D、E


質問 # 112
......

JavaScript-Developer-I豪華セット学習ガイドにはオンライン試験エンジン:https://www.jpntest.com/shiken/JavaScript-Developer-I-mondaishu

2024年最新の認定サンプル問題JavaScript-Developer-I問題集と練習試験:https://drive.google.com/open?id=1puC0qwOExA-yI_PPT_XHVtl_UZeIw9GJ

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡