JavaScript-Developer-I試験問題を今すぐ試そう!最新の[2024年最新] 正解回答付き
練習できるJavaScript-Developer-Iには認定ガイド問題と解答とトレーニングを提供しています
Salesforce JavaScript-Developer-I 認定試験の出題範囲:
| トピック | 出題範囲 |
|---|---|
| トピック 1 |
|
| トピック 2 |
|
| トピック 3 |
|
| トピック 4 |
|
| トピック 5 |
|
Salesforce JavaScript-Developer-I試験は、60の複数選択の質問で構成されており、105分の時間制限があります。試験に合格するには、68%の最小スコアを達成する必要があります。試験料は200ドルで、オンラインまたはテストセンターで試験を受けることができます。 Salesforceは、試験の準備を支援するために、トレイルヘッドモジュールや公式調査ガイドなどの学習リソースも提供します。適切な準備と経験により、Salesforce JavaScript-Developer-I認定試験に合格することは、新しいキャリアの機会を開くことになるやりがいのある体験になる可能性があります。
質問 # 80
Refer to the following array:
Letarr = [ 1,2, 3, 4, 5];
Which three options result in x evaluating as [3, 4, 5] ?
Choose 3 answers.
- A. Let x= arr.splice(2,3);
- B. Letx= arr.filter((a) => ( return a>2 ));
- C. Let x= arr.filter (( a) => (a<2));
- D. Let x= arr.slice(2);
- E. Let x = arr.slice(2,3);
正解:A、B、D
質問 # 81
Refer to the code below:
What is the value result after line 10 executes?
- A. Error: myfather.job is not a function
- B. Undefined Developer
- C. John Developer
- D. John undefined
正解:A
質問 # 82
developer wants to use a module nameduniversalContainersLib and them callfunctions from it.
How should a developer import every function from the module and then call the functions foo and bar ?
- A. import all from
'/path/universalContaineraLib.js';universalContainersLib.foo();universalContainersLib.bar(); - B. import (foo,bar) from '/path/universalContainersLib.js';foo();bar();
- C. import * from
'/path/universalContaineraLib.js';universalContainersLib.foo();universalContainersLib.bar(); - D. import * ad lib from '/path/universalContainersLib.js';lib.foo();lib.bar();
正解:D
質問 # 83
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
質問 # 84
Which option is a core Node;js module?
- A. Path
- B. locale
- C. Ios
- D. Memory
正解:A、C
質問 # 85
developer uses the code below to format a date.
After executing, what is the value of formattedDate?
- A. October 05, 2020
- B. June 10, 2020
- C. May 10, 2020
- D. November 05, 2020
正解:B
質問 # 86
A developer is setting up a Node,js server and is creating a script at the root of the source code, index,js, that will start the server when executed. The developer declares a variable that needs the folder location that the code executes from.
Which global variable can be used in the script?
- A. _dirname
- B. window.location
- C. _filename
- D. this.path
正解:C
質問 # 87
A developer is setting up a new Node.js server with a client library that is built using events and callbacks.
The library:
* Will establish a web socket connection and handle receipt of messages to the server
* Will be imported with require, and made available with a variable called ws.
The developer also wants to add error logging if a connection fails.
Given this information, which code segment show the correct way to set up a client two events that listen at execution time?
A)
B)
C)
D)
- A. Option B
- B. Option D
- C. Option C
- D. Option A
正解:B
質問 # 88
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
- A. Async runParallel () .then(data);
- B. runParallel ( ). done(function(data){
return data;
}); - C. runParallel () .then(function(data)
return da - D. runParallel () .then(data);
正解:B、C
質問 # 89
Refer to the code below:
const car = {
price:100,
getPrice:function(){
return this.price;
}
};
const customCar = Object.create(car);
customCar.price = 70;
delete customCar.price;const result = customCar.getPrice();
What is the value of result after the code executes?
- A. undefined
- B. null
- C. 0
- D. 1
正解:C
質問 # 90
A developer has a server running with Node.js. the command to start the web server is node server.js. the server started having latency issues. Instead of a one second turnaround 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. NODE_DEBUO=true node server,js
- B. NODE_DEBUO=http, https node server,js
- C. DEBUO=http, https node server,js
- D. DEBUO=true node server,js
正解:C
質問 # 91
Teams at Universal Containers (UC) work on multiple JavaScript projects at the same time.
UC is thinking about reusability and how each team can benefit from the work of others.
Going open-source or public is not an option at this time.
Which option is available to UC with npm?
- A. Private packages can be scored, and scopes can be associated to a private
registries. - B. Private registries are not supported by npm, but packages can be installed via git.
- C. Private packages are not supported, but they can use another package manager like
yarn. - D. Private registries are not supported by npm, but packages can be installed via URL.
正解:A
質問 # 92
Refer to the code below:
Const resolveAfterMilliseconds = (ms) => Promise.resolve (
setTimeout (( => console.log(ms), ms ));
Const aPromise = await resolveAfterMilliseconds(500);
Const bPromise = await resolveAfterMilliseconds(500);
Await aPromise, wait bPromise;
What is the result of running line 05?
- A. aPromise and bPromise run sequentially.
- B. aPromise and bPromise run in parallel.
- C. Only aPromise runs.
- D. Neither aPromise or bPromise runs.
正解:D
質問 # 93
A team that works on a big project uses npm to deal with the project's dependencies.
A developer added a dependency to manipulated dates and pushed the updates to the remote repository. The rest of the team complains that the dependency does not get download when they execute npm install.
Which two reason could be possible explanation for this?
- A. The developer missed the option -ssve when adding the dependency.
- B. The developer missed the option - add when adding the dependency.
- C. The developer added the dependency as a dev dependency, and NODK_ENV is set to production.
- D. The developer added the dependency as a dev dependency, and NOOK_ENV is set to production.
正解:A、C、D
質問 # 94
Refer to the string below.
Const str='Salesforce';
Which two statements results in the word 'Sales'?
正解:
解説:
Str.substring(0,5);
Str.substr(0,5);
質問 # 95
Refer to the code below:
01 const exec = (item, delay) =>{
02 new Promise(resolve => setTimeout( () => resolve(item), delay)),
03 async function runParallel() {
04 Const (result1, result2, result3) = await Promise.all{
05 [exec ('x', '100') , exec('y', 500), exec('z', '100')]
06 );
07 return `parallel is done: $(result1) $(result2)$(result3)`;
08 }
}
}
Which two statements correctly execute the runParallel () function?
Choose 2 answers
- A. Async runParallel () .then(data);
- B. runParallel ( ). done(function(data){
return data;
}); - C. runParallel () .then(data);
- D. runParallel () .then(function(data) return data
正解:B、D
質問 # 96
developer creates a new web server that uses Node.js. It imports a server library that uses events and callbacks for handling server functionality.
The server library is imported with require and is made available to the code by a variable named server. The developer wants to log any issues that the server has while booting up.
Given the code and the information the developer has, which code logs an error at boost with an event?
- A. Server.error ((server) => {
console.log('ERROR', error);
}); - B. Server.catch ((server) => {
console.log('ERROR', error);
}); - C. Try{
server.start();
} catch(error) {
console.log('ERROR', error);
} - D. Server.on ('error', (error) => {
console.log('ERROR', error);
});
正解:D
質問 # 97
The developer has a function that prints ''Hello'' to an input name. To test this, the developer created a function that returns world''.
What can the developer do to change the code to print ''Hello world''?
- A. Change line 7 to ) () ;
- B. Change line 5 to function world () (
- C. Change line 9 to sayhello (world () ;
- D. Change line 2 to console.log ( 'Hello', name () );
正解:A
質問 # 98
......
試験準備には欠かさない!トップクラスのSalesforce JavaScript-Developer-I試験アプリ学習ガイド練習問題最新版:https://jp.fast2test.com/JavaScript-Developer-I-premium-file.html
無料Salesforce JavaScript-Developer-Iテスト練習問題試験問題集:https://drive.google.com/open?id=1nI5PYWO13SLuAM_ySksqpg6qqtM4CltB