[2024年09月]更新のJavaScript-Developer-I試験問題と有効なJavaScript-Developer-I問題集PDF [Q89-Q106]

Share

[2024年09月]更新のJavaScript-Developer-I試験問題と有効なJavaScript-Developer-I問題集PDF

JavaScript-Developer-Iブレーン問題集学習ガイドにはヒントとコツで試験合格を目指そう


SalesforceのJavaScript-Developer-I認定試験に備えるには、JavaScriptの基礎をしっかりと理解し、Apex、Visualforce、Lightningコンポーネントでの作業経験を持つことが望ましいです。Salesforceは、自己学習コース、インストラクター主導のトレーニング、模擬試験など、試験に備えるための様々なリソースを提供しています。


Salesforce Certified JavaScript Developer I認定は、業界で非常に評価されており、専門家に多くの利点を提供します。この認定は、開発者がキャリアの機会を強化し、収益の可能性を高め、業界の専門家として認められるのに役立ちます。この認定は、トレーニング、サポート、ネットワーキングの機会など、幅広いリソースへのアクセスも提供します。

 

質問 # 89
A test has a dependency on database. query. During the test, the dependency is replaced with an object called database with the method,
Calculator query, that returns an array. The developer does not need to verify how many times the method has been called.
Which two test approaches describe the requirement?
Choose 2 answers

  • A. Substitution
  • B. Stubbing
  • C. White box
  • D. Black box

正解:A、C


質問 # 90
Given the code below:
const delay = async delay =>{
return new Promise((resolve,reject)=>{
console.log(1);
setTimeout(resolve,deleay);
});
};
const callDelay = async ()=>{
console.log(2);
const yup = await delay(1000);
console.log(3);
}
console.log(4);
callDelay();
console.log(5);
What is logged to the console?

正解:

解説:
4 2 1 5 3


質問 # 91
Refer to the code below:

In which sequence will the number be logged?

  • A. 0 2 4 3 1
  • B. 1 3 0 2 4
  • C. 0 1 2 3 4
  • D. 0 2 4 1 3

正解:A


質問 # 92
Refer to the following array:
Let arr = [ 1,2, 3, 4, 5];
Which three options result in x evaluating as [3, 4, 5] ?
Choose 3 answers.

  • A. Let x= arr.filter((a) => ( return a>2 ));
  • B. Let x= arr.filter (( a) => (a<2));
  • C. Let x = arr.slice(2,3);
  • D. Let x= arr.slice(2);
  • E. Let x= arr.splice(2,3);

正解:A、D、E


質問 # 93
Refer to the code below:
Const pi w 3.1415926;
What is the data type of pi?

  • A. Float
  • B. Number
  • C. Double
  • D. Decimal

正解:B


質問 # 94
A developer needs to debug a Node.js web server because a runtime error keeps occurring at one of the endpoints.
The developer wants to test the endpoint on a local machine and make the request against a local server to look at the behavior. In the source code, the server, js file will start the server. the developer wants to debug the Node.js server only using the terminal.
Which command can the developer use to open the CLI debugger in their current terminal window?

  • A. node inspect server,js
  • B. node start inspect server,js
  • C. node -i server.js
  • D. node server,js inspect

正解:A


質問 # 95
Given the requirement to refactor the code above to JavaScript class format, which class definition is correct?

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

正解:B


質問 # 96
Refer to the code below:

Which assertion accurately tests the above code?

  • A. Console, assert ( await functionalUnderTest (true) , 'ok
  • B. Console, assert ( await functionalUnderTest (true) , 'not ok' )
  • C. Console, assert (functionalUnderTest (true) , 'ok')
  • D. Console, assert ( await functionalUnderTest (true) , 'not ok) )

正解:C


質問 # 97
Refer to the code below:

What is the value of result after line 10 executes?

  • A. John Developer
  • B. John undefined
  • C. Error: myFather.job is not a function
  • D. undefined Developer

正解:A


質問 # 98
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 (toNumber ('2') === 2 ) ;
  • B. Console. Assert (Number,isNaN (toNumber ( ) ));
  • C. Console,assert (toNumber ( '-3') < 0);
  • D. Console,assert (toNumber ( ) === NaN ) ;

正解:A、D


質問 # 99
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 functions foo and bar ?

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

正解:B


質問 # 100
Refer to the code below:

Considering that JavaScript is single-threaded, what is the output of line 08 after the code executes?

  • A. 0
  • B. 1
  • C. 2
  • D. 3

正解:C


質問 # 101
The developer wants to test the array shown:
const arr = Array(5).fill(0)
Which two tests are the most accurate for this array ?
Choose 2 answers:

  • A. console.assert( arr.length === 5 );
  • B. console.assert(arr[0] === 0 && arr[ arr.length] === 0);
  • C. arr.forEach(elem => console.assert(elem === 0)) ;
  • D. console.assert (arr.length >0);

正解:A、C


質問 # 102
developer has a web server running with Node.js. The command to start the web server is node server,js. The web server started having latency issues. Instead of a one second turn around for web requests, the developer now sees a five second turnaround, Which command can the web developer run to see what the module is doing during the latency period?

  • A. DEBUG = http, https node server.js
  • B. DEBUG =true node server.js
  • C. NODE_DEBUG =http, https node server.js
  • D. NODE_DEBUG =true node server.js

正解:B


質問 # 103
Refer to the code below:

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' , '123abc'
  • B. {type ; update ', recordId : '123abc')
  • C. 'update', {
    Detail ; {
    recordId, '123abc
    )
    )
  • D. 'update', ( recordId ; 123abc'
    )

正解:C、D


質問 # 104
Which function should a developer use to repeatedly execute code at a fixed time interval?

  • A. setPeriod
  • B. setInterim
  • C. setInterval
  • D. setTimeout

正解:C


質問 # 105
Given code below:
setTimeout (() => (
console.log(1);
). 0);
console.log(2);
New Promise ((resolve, reject )) = > (
setTimeout(() => (
reject(console.log(3));
). 1000);
)).catch(() => (
console.log(4);
));
console.log(5);
What is logged to the console?

  • A. 2 1 4 3 5
  • B. 2 5 1 3 4
  • C. 1 2 5 3 4
  • D. 1 2 4 3 5

正解:B


質問 # 106
......

JavaScript-Developer-I試験問題無料PDFダウンロード 最近更新された問題です:https://www.jpntest.com/shiken/JavaScript-Developer-I-mondaishu

JavaScript-Developer-I認定試験問題集には224練習テスト問題:https://drive.google.com/open?id=17OnlIqc6EJswKWOkT3ugLEdkB_ZlROl-

弊社を連絡する

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

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

サポート:現在連絡