更新された2023年05月プレミアムJavaScript-Developer-I試験エンジンPDFで今すぐダウンロード!無料更新された225問あります [Q120-Q140]

Share

更新された2023年05月プレミアムJavaScript-Developer-I試験エンジンPDFで今すぐダウンロード!無料更新された225問あります

正真正銘のJavaScript-Developer-I問題集には100%合格率練習テスト問題集


Salesforce JavaScript-Developer-I試験を受験するには、候補者はJavaScriptプログラミングとSalesforceプラットフォームの基本的な理解を持っている必要があります。また、Apex、Visualforce、およびLightningコンポーネントなどのSalesforceツールやテクノロジーを使用した経験が必要です。試験は複数選択問題で構成されており、候補者は合格点を取得して認定を受ける必要があります。

 

質問 # 120
Refer to the code below:
let o = {
get js() {
let city1 = String("st. Louis");
let city2 = String(" New York");
return {
firstCity: city1.toLowerCase(),
secondCity: city2.toLowerCase(),
}
}
}
What value can a developer expect when referencing o.js.secondCity?

  • A. An error
  • B. ' New York '
  • C. ' new york '
  • D. Undefined

正解:C


質問 # 121
Refer to the code below:
01 const server = require('server');
02 /* Insert code here */
A developer imports a library that creates a web server. The imported library uses events and
callbacks to start the servers
Which code should be inserted at the line 03 to set up an event and start the web server ?

  • A. serve(( port) => (
  • B. server()
  • C. console.log( 'Listening on ', port) ;
  • D. server.on(' connect ' , ( port) => {
    console.log('Listening on ' , port) ;})
  • E. Server.start ();

正解:D


質問 # 122
Which statement accurately describes the behaviour of the async/ await keyworks ?

  • A. The associated function will always return a promise
  • B. The associated sometimes returns a promise.
  • C. The associated class contains some asynchronous functions.
  • D. The associated function can only be called via asynchronous methods

正解:B


質問 # 123
A developer is wondering whether to use, Promise.then or Promise.catch, especially
when a Promise throws an error?
Which two promises are rejected?
Which 2 are correct?

  • A. Promise.reject('cool error here').then(error => console.error(error));
  • B. New Promise(() => (throw 'cool error here'}).then(null, error => console.error(error)));
  • C. New Promise((resolve, reject) => (throw 'cool error here'}).catch(error =>
    console.error(error)) ;
  • D. Promise.reject('cool error here').catch(error => console.error(error));

正解:C、D


質問 # 124
Given the JavaScript below:

Which code should replace the placeholder comment on line 06 to hide accounts that do not match the search string?

  • A. 'Block' : 'none'
  • B. 'None' : 'block'
  • C. 'Visible : 'hidden'
  • D. 'Hidden, visible

正解:A


質問 # 125
Refer to the code below
let inArray = [[1,2],[3,4,5]];
which two statements results in the array [1,2,3,4,5]?
choose 2 answer

  • A. [ ].concat.apply([ ],inArray);
  • B. [ ].concat(...inArray);
  • C. [ ].concat([...inArray])
  • D. [ ].concat.apply(inArray,[ ]);

正解:A、B


質問 # 126
Given the code below:
Function myFunction(){
A =5;
Var b =1;
}
myFunction();
console.log(a);
console.log(b);
What is the expected output?

  • A. Both lines 08 and 09 are executed, and the variables are outputted.
  • B. Line 08 outputs the variable, but line 09 throws an error.
  • C. Both lines 08 and 09 are executed, but values outputted are undefined.
  • D. Line 08 thrones an error, therefore line 09 is never executed.

正解:B


質問 # 127
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.alice (2) ;
  • B. Let x = arr.aplice (2, 3);
  • C. Let x = arr.filter( (a) => ( a < 2)) ;
  • D. Let x = arr.filter( (a) => )return a > 2 )) ;
  • E. Let x = arr. Slince (2, 3);

正解:A、B、D


質問 # 128
Which statement parses successfully?

  • A. JSON.parse ("foo");
  • B. JSON.parse ("foo");
  • C. JSON. parse (""foo"');
  • D. JSON.parse (""foo'");

正解:C


質問 # 129
Considering type coercion, What does the following expression evaluate to?
True + '13 ' + NaN

  • A. 'true13NaN'
  • B. 113NaN
  • C. 'true13'
  • D. 0

正解:B


質問 # 130
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 window.onLoad event handler.
  • B. Add event.removeEventListener(); toprintMessage function.
  • C. Add event.removeEventListener(); to window.onLoad event handler.
  • D. Add event.stopPropagation(); to printMessage function.

正解:D


質問 # 131
Refer to the code snippet below:
Let array = [1, 2, 3, 4, 4, 5, 4, 4];
For (let i =0; i < array.length; i++)
if (array[i] === 4) {
array.splice(i, 1);
}
}
What is the value of array after the code executes?

  • A. [1, 2, 3, 5]
  • B. [1, 2, 3, 4, 5, 4]
  • C. [1, 2, 3, 4, 4, 5, 4]
  • D. [1, 2, 3, 4, 5, 4, 4]

正解:C

解説:


質問 # 132
Refer to the code below:
new Promise((resolve, reject) => {
const fraction = Math.random();
if( fraction >0.5) reject("fraction > 0.5, " + fraction);
resolve(fraction);
})
.then(() =>console.log("resolved"))
.catch((error) => console.error(error))
.finally(() => console.log(" when am I called?"));

When does Promise.finally on line 08 get called?

  • A. When resolved or rejected
  • B. When rejected
  • C. WHen resolved
  • D. When resolved and settled

正解:A


質問 # 133
A developer at Universal Container creates a new landing page based on HTML, CSS, and JavaScript.
To ensure that visitors have a good experience, a script named personalizeewebsiteCotent needs to be executed when the webpage is fully loaded (HTML content and all related files), in order to do some custom initialization.
Which statement should be used to call personalizeWebsiteContent based on the above business requirement?

  • A. Window, addEventListener('load', personalizewebsiteContent);
  • B. Document,addEventListener ('DCMContentLoaded' , personalizeWebsiteContent);
  • C. Document, addEventListener ('oDCMContentLoaded' , personalizewensiteContent);
  • D. Window, addEventListener('onload', personalizewebsiteContent);

正解:A


質問 # 134

Which code change should be done for the console to log the following when 'Click me!' is clicked'
> Row log
> Table log

  • A. Change line 10 to event.stopPropagation (false) ;
  • B. Change line 14 to elem.addEventListener ('click', printMessage, true);
  • C. Remove line 10
  • D. Remove lines 13 and 14

正解:C


質問 # 135
Refer to following code:
class Vehicle {
constructor(plate) {
This.plate =plate;
}
}
Class Truck extends Vehicle {
constructor(plate, weight) {
//Missing code
This.weight = weight;
}
displayWeight() {
console.log('The truck ${this.plate} has a weight of ${this.weight} lb.');}} Let myTruck = new Truck('123AB', 5000); myTruck.displayWeight(); Which statement should be added to line 09 for the code to display 'The truck 123AB has a weight of 5000lb.'?

  • A. Vehicle.plate = plate;
  • B. super(plate);
  • C. Super.plate =plate;
  • D. This.plate =plate;

正解:B


質問 # 136
A developer has a formatName function that takes two arguments, firstName and lastName and returns a string. They want to schedule the function to run once after five seconds.
What is the correct syntax to schedule this function?

  • A. setTimeout ('formatName', 5000, 'John", "Doe');
  • B. setTimeout (formatName('John', ''Doe'), 5000);
  • C. setTimout(() => { formatName("John', 'Doe') }, 5000);
  • D. setTimeout (formatName(), 5000, "John", "BDoe");

正解:A


質問 # 137
Refer to the code below:

What is displayed when myfunction(true) is called?

  • A. 2 2 2 2
  • B. 2 2 1 1
  • C. 2 2 undefined undefined
  • D. 2 2 1 2

正解:B


質問 # 138
Refer to the following code:

Which two statement could be inserted at line 17 to enable the function call on line 18?
Choose 2 answers

  • A. leo.prototype.roar = ( ) =>( console.log('They\'re pretty good!'); };
  • B. Object.assign (leo. Tiger);
  • C. Object.assign (leo, tony);
  • D. leo.roar = () => { console.log('They\'re pretty good!'); );

正解:C、D


質問 # 139
Refer to the code below:

What are the value of objBook and newObBook respectively?

  • A. ( author: ''Robert'', title JavaScript'' )
    ( author: ''Robert'', title JavaScript'' )
  • B. author: ''Robert title ''javaScript'' ) undefined
  • C. (author: ''Robert'' )
    (Author: ''Robert '', title: JavaScript'')
  • D. ( Title: JavaScript'')
    ( Title: JavaScript'')

正解:B


質問 # 140
......


SalesforceのJavaScript-Developer-I試験は、Salesforceプラットフォーム上で高品質のアプリケーションを開発するために必要な知識とスキルを持つ候補者を確認するために、専門家によって設計されました。この試験には、ApexとVisualforceを使用するソリューションを設計および実装する、データのクエリと操作、カスタムLightningコンポーネントの開発など、さまざまなトピックが含まれます。また、セキュリティ、統合、展開などのトピックもカバーしています。

 

検証済み!合格できるJavaScript-Developer-I試験一発合格保証付き:https://www.jpntest.com/shiken/JavaScript-Developer-I-mondaishu

Salesforce JavaScript-Developer-Iリアル試験問題保証付き 更新された問題集にはJPNTest:https://drive.google.com/open?id=1VzP0T0-hmd-q-GQ2R8IFdsVQ6CsnZaAQ

弊社を連絡する

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

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

サポート:現在連絡