[2025年03月]更新のWeb-Development-Applications試験問題集、無料サンプル365日更新 [Q34-Q55]

Share

[2025年03月]更新のWeb-Development-Applications試験問題集、無料サンプル365日更新

まもなく無料セール終了!リアルWeb-Development-ApplicationsのPDF解答使おう

質問 # 34
Which characters are used to enclose multiple statement in a function?

  • A. Curly braces
  • B. Spaces
  • C. Semicotons
  • D. Parentheses

正解:A

解説:
In JavaScript, curly braces {} are used to enclose multiple statements in a function, defining the block of code to be executed.
* Curly Braces: Curly braces {} are used to group multiple statements into a single block. This is necessary for defining the body of a function, loops, conditional statements, and other control structures.
* Usage Example:
function greet(name) {
let greeting = "Hello, " + name;
console.log(greeting);
}
In this example, the curly braces enclose the statements that form the body of the greet function.
References:
* MDN Web Docs on Functions
* ECMAScript Language Specification


質問 # 35
Given the following CSS code:

Which type of selector is used?

  • A. ID
  • B. Element
  • C. Class
  • D. Group

正解:A

解説:
The given CSS code uses the #name selector, which is an ID selector. The ID selector is used to style an element with a specific id attribute.
* ID Selector: In CSS, the ID selector is used to style the element with the specific id. The syntax for the ID selector is #id, where id is the id attribute value of the HTML element.
* Usage Example:
#name {
text-align: left;
}
This CSS rule will apply the text-align: left; style to the element with id="name".
* ID Selector Characteristics:
* An ID must be unique within a document, meaning it can be used only once per page.
* ID selectors are more specific than class selectors and element selectors.
* Example in HTML:
<div id="name">This is a div with ID "name".</div>
References:
* MDN Web Docs on CSS Selectors
* W3C CSS Specification on Selectors


質問 # 36
Given the following CSS code:

How many seconds elapse before the font-size property begins to increase when a user hovers a mouse pointer over the delay element?

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

正解:C

解説:
The CSS transition-delay property specifies how long to wait before starting a property transition. In the given CSS code, the transition-delay is set to 2s.
* CSS Transition Properties:
* transition-property: Specifies the CSS property to which the transition is applied (font-size in this case).
* transition-duration: Specifies how long the transition takes (4s).
* transition-delay: Specifies the delay before the transition starts (2s).
Example:
* Given HTML:
<div id="delay">Hover over me</div>
* Given CSS:
#delay {
font-size: 14px;
transition-property: font-size;
transition-duration: 4s;
transition-delay: 2s;
}
#delay:hover {
font-size: 36px;
}
Explanation: When a user hovers over the element with id="delay", it will wait for 2 seconds before the transition effect on font-size starts.
References:
* MDN Web Docs - transition-delay
* W3C CSS Transitions


質問 # 37
Given the following markup:

Where does the image align in relation to the text?

  • A. The top of The image aligns to the top of Hello World
  • B. The lop of the image aligns the bottom of Hello world.
  • C. The bottom of the Image aligns to the bottom of Hello World
  • D. The bottom of the image aligns to the top of Held world.

正解:C

解説:
The CSS property vertical-align: baseline aligns the baseline of the element with the baseline of its parent. For inline elements like images, the baseline alignment means that the bottom of the image aligns with the bottom of the text.
* CSS vertical-align Property:
* Baseline Alignment: Aligns the baseline of the element with the baseline of its parent.
* Example:
<p>Hello World<img src="sample.jpg" style="vertical-align:baseline"></p>
* Analysis:
* The <img> element with vertical-align: baseline will align its bottom with the bottom of the surrounding text "Hello World".
* References:
* MDN Web Docs - vertical-align
* W3C CSS Inline Layout Module Level 3


質問 # 38
What allows a scripting language to manipulate elements on a web page?

  • A. XML
  • B. CSS
  • C. DOM
  • D. HTML

正解:C

解説:
The Document Object Model (DOM) is an API for HTML and XML documents that defines the logical structure of documents and the way a document is accessed and manipulated.
* DOM Explanation:
* The DOM represents the page so that programs can change the document structure, style, and content.
* It provides a way for scripts to update the content, structure, and style of a document while it is being viewed.
* Explanation:
* Option A: CSS is incorrect because it is used for styling web pages.
* Option B: XML is incorrect because it is a markup language, not an API for manipulating web page elements.
* Option C: HTML is incorrect because it is the markup language used to create web pages, not an API for manipulation.
* Option D: DOM is correct because it allows a scripting language to manipulate elements on a web page.
* References:
* MDN Web Docs - DOM
* W3Schools - JavaScript HTML DOM


質問 # 39
Which element relies on the type attribute to specify acceptable values during form entry?

  • A. <Button>
  • B. <Option>
  • C. <Select>
  • D. <input>

正解:D

解説:
The <input> element relies on the type attribute to specify acceptable values during form entry. Different input types include text, email, number, password, etc.
* Input Types: The type attribute determines the kind of input control and the acceptable values for that control.
* Usage Example:
<input type="email" placeholder="Enter your email">
<input type="number" min="1" max="10">
These input elements specify acceptable values for email and number inputs respectively.
References:
* MDN Web Docs on <input>
* W3C HTML Specification on Input Types


質問 # 40
Which framework assists designers with adaptive page layout?

  • A. Modernize
  • B. Bootstrap
  • C. React
  • D. Knockout

正解:B

解説:
Bootstrap is a popular front-end framework that assists designers in creating adaptive and responsive page layouts easily.
* Bootstrap:
* Responsive Design: Bootstrap provides a responsive grid system, pre-styled components, and utilities that help in designing adaptive layouts.
* Example:
<div class="container">
<div class="row">
<div class="col-sm-4">Column 1</div>
<div class="col-sm-4">Column 2</div>
<div class="col-sm-4">Column 3</div>
</div>
</div>
* Other Options:
* A. Modernize: Not a framework, but a JavaScript library to detect HTML5 and CSS3 features.
* C. React: A JavaScript library for building user interfaces, not specifically for layout.
* D. Knockout: A JavaScript library for implementing MVVM pattern, not specifically for layout.
* References:
* Bootstrap Documentation
* MDN Web Docs - Responsive design
These answers ensure accurate and comprehensive explanations for the given questions, supporting efficient learning and understanding.


質問 # 41
Given the following CSS statement:

Which code segment changes the font color when the viewport is 800 pixels wide or wider?

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

正解:A

解説:
To change the font color when the viewport is 800 pixels wide or wider, a media query with min-width:
800px is used. This ensures that the styles inside the media query are applied only when the viewport width is at least 800 pixels.
* CSS Media Queries:
* Syntax for Media Query:
@media screen and (min-width: 800px) {
body {
color: black;
}
}
* Explanation: The min-width: 800px condition ensures that the styles are applied when the viewport is 800 pixels or wider.
* Example Analysis:
* Option A:
@media screen and (min-width: 800px) {
body {
color: black;
}
}
* Correct. This applies the color: black; style to the body when the viewport is 800 pixels or wider.
* Option B:
@media min-width: 800px {
body {
color: black;
}
}
* Incorrect. Missing screen and which is required for a proper media query targeting screens.
* Option C:
@media screen and (max-width: 800px) {
body {
color: black;
}
}
* Incorrect. This applies the style when the viewport is 800 pixels or narrower.
* Option D:
@media max-width: 800px {
body {
color: black;
}
}
* Incorrect. This applies the style when the viewport is 800 pixels or narrower.
* References:
* MDN Web Docs - Using media queries
* W3Schools - CSS Media Queries
The correct use of media queries ensures that the specified styles are applied only under the desired conditions, providing a responsive design.


質問 # 42
What is the purpose of cascading style sheets (CSSs)?

  • A. Changing the content of a web page dynamically
  • B. Providing functionality that was previously provided by plug-ins
  • C. Setting rules to define how page content looks when rendered
  • D. Structuring and describing web page content

正解:C

解説:
Cascading Style Sheets (CSS) are used to control the presentation of web pages, including aspects such as layout, colors, fonts, and other visual styles. They are a cornerstone technology of the World Wide Web, along with HTML and JavaScript. Here's a detailed breakdown:
* Purpose of CSS: CSS is designed to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple web pages to share formatting, and reduce complexity and repetition in the structural content.
* Setting Visual Rules: CSS allows developers to define rules that specify how different elements of a web page should be displayed. For example, CSS rules can change text color, font size, spacing between elements, and even the overall layout of the web page. These rules are applied by the browser to render the web page according to the defined styles.
* Cascading Nature: The term "cascading" in CSS refers to the process of combining multiple style sheets and resolving conflicts between different CSS rules. This allows developers to use different sources of style information, which can be combined in a hierarchical manner. For instance, a browser style sheet, an external style sheet, and inline styles can all contribute to the final rendering of a web page.
* Benefits of CSS:
* Consistency: By using CSS, developers can ensure a consistent look and feel across multiple web pages.
* Maintainability: CSS makes it easier to update the visual presentation of a web page without altering the HTML structure. This is particularly useful for maintaining large websites.
* Reusability: CSS rules can be reused across multiple pages, reducing redundancy and making it easier to implement changes globally.
* Examples of CSS:
css
Copy code
body {
background-color: lightblue;
}
h1 {
color: navy;
margin-left: 20px;
}
In this example, the body element is given a light blue background color, and the h1 element is styled with a navy color and a left margin of 20 pixels.
References:
* MDN Web Docs on CSS
* W3C CSS Specifications


質問 # 43
Which element attaches an external CSS document to a web page?

  • A. <Meta>
  • B. <Script>
  • C. <Link>
  • D. <style>

正解:C

解説:
To attach an external CSS document to a web page, the <link> element is used within the <head> section of the HTML document.
* <link> Element:
* Purpose: Links external resources, such as stylesheets, to the HTML document.
* Attributes:
* rel="stylesheet": Specifies the relationship between the current document and the linked resource.
* href="path/to/stylesheet.css": Specifies the URL of the external stylesheet.
* Example:
<head>
<link rel="stylesheet" href="styles.css">
</head>
* Other Options:
* <style>: Used to embed internal CSS directly within the HTML document, not for linking external CSS.
* <script>: Used to embed or link to JavaScript files.
* <meta>: Provides metadata about the HTML document, not for linking stylesheets.
* References:
* W3C HTML5 Specification - The link element
* MDN Web Docs - <link>
By using the <link> element correctly, you can ensure that your web page is styled with external CSS, maintaining a separation of concerns and making your HTML more manageable.


質問 # 44
Which attribute is related to moving the mouse pointer of an element?

  • A. Onmouseup
  • B. onmouseenter
  • C. Onmouseover
  • D. Onmouseout

正解:C

解説:
The onmouseover attribute in HTML and JavaScript is used to execute a script when the mouse pointer is moved over an element.
* onmouseover Attribute: This event occurs when the mouse pointer is moved onto an element. It is commonly used to change styles or content of the element when the user interacts with it by hovering.
* Usage Example:
<p onmouseover="this.style.color='red'">Hover over this text to change its color to red.</p> In this example, the text color changes to red when the mouse pointer is moved over the paragraph.
References:
* MDN Web Docs on onmouseover
* W3C HTML Specification on Events


質問 # 45
Given the following code:

What is occurring?

  • A. JavaScript is using the DOM to make a style change.
  • B. An event handler is tracking keyboard strokes.
  • C. In-line CSS is styling the <h1> tag.

正解:A

解説:
The given code snippet demonstrates how JavaScript can manipulate the DOM to change the style of an element.
* Code Analysis:
* Given the HTML:
<h1 id="id1">Blog Title</h1>
<button type="button" onclick="document.getElementById('id1').style.color = 'red'">Click Here</button>
* When the button is clicked, the JavaScript code within the onclick attribute changes the color of the h1 element to red.
* Explanation:
* Option A: An event handler tracking keyboard strokes is incorrect because the event handler is tracking a mouse click, not keyboard strokes.
* Option B: JavaScript is using the DOM to make a style change is correct because the onclick attribute contains JavaScript code that modifies the style of the h1 element.
* Option C: In-line CSS is styling the <h1> tag is incorrect because the style change is done via JavaScript, not inline CSS.
* References:
* MDN Web Docs - Document.getElementById()
* W3Schools - JavaScript HTML DOM


質問 # 46
Given the following JavaScript code:

What happens when this code is executed?

  • A. The object with the id innerHTML is changed to 6.
  • B. The object with the id demo is changed to x.
  • C. The object with the id innerHTML is changed to x.
  • D. The object with the demo is changed to 6.

正解:D

解説:
The provided JavaScript code sets a variable x to 6 and then assigns this value to the innerHTML of the HTML element with the id demo.
var x;
x = 6;
document.getElementById("demo").innerHTML = x;
Explanation:
* Variable Declaration: var x; declares the variable x.
* Variable Assignment: x = 6; assigns the value 6 to the variable x.
* DOM Manipulation: document.getElementById("demo").innerHTML = x; finds the element with id demo and sets its innerHTML to the value of x, which is 6.
Outcome:
* The content of the HTML element with the id demo will be changed to 6.
References:
* MDN Web Docs on getElementById
* W3C JavaScript DOM Manipulation


質問 # 47
Given the following code:

What does the #item token do?

  • A. It specifies a CSS3 property.
  • B. It creates an XML element.
  • C. It locates an HTML5 element by its ID
  • D. It defines a JavaScript function with one parameter.

正解:C

解説:
The #item token in CSS is used to select an HTML element by its ID attribute.
* CSS ID Selector:
* Syntax: The ID selector is prefixed with a hash symbol (#) followed by the ID value of the HTML element.
* Example: If the HTML element has an attribute id="item", it can be selected and styled in CSS as:
width: 300px;
}
* Functionality:
* Selects an Element: The ID selector targets the specific HTML element with the matching id attribute.
* Specificity: ID selectors have high specificity, meaning they will override styles from type selectors and


質問 # 48
A web page has the following CSS code:

Which selector should a developer use to invoke the CSS?

  • A. Style
  • B. id
  • C. Attribute
  • D. class

正解:B

解説:
To invoke the CSS provided, an ID selector is used. In CSS, the ID selector is used to style the element with the specific id attribute.
* CSS ID Selector: The syntax for the ID selector is #id, where id is the id attribute value of the HTML element.
* Usage Example:
#black {
color: black;
}
This CSS rule will apply the color: black; style to the element with id="black".
* Example in HTML:
<div id="black">This text will be black.</div>
References:
* MDN Web Docs on ID Selectors
* W3C CSS Specification on Selectors


質問 # 49
Which code segment creates a slider field that accepts a numeric value ranging from 1 through 10?

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

正解:C

解説:
To create a slider field that accepts a numeric value ranging from 1 through 10, the input element with type=" range" should be used. The min and max attributes define the range of acceptable values.
* HTML Input Type range:
* Purpose: The range type is used for input fields that should contain a value from a specified range.
* Attributes:
* type="range": Specifies that the input field should be a slider.
* min="1": Sets the minimum acceptable value.
* max="10": Sets the maximum acceptable value.
* Example:
* Given the HTML:
<input type="range" name="sat-level" min="1" max="10">
* Options Analysis:
* Option A:
<input type="number" name="sat-level" max="10">
* This creates a numeric input field, not a slider.
* Option B:
<input type="range" name="sat-level" min="1" max="10">
* This is the correct option that creates a slider field with the specified range.
* Option C:
<input type="number" name="sat-level" min="1" max="10">
* This creates a numeric input field, not a slider.
* Option D:
<input type="range" name="sat-level" max="10">
* This creates a slider but lacks the min attribute, so it doesn't fully meet the requirement.
* References:
* MDN Web Docs - <input type="range">
* W3Schools - HTML Input Range
By using the correct attributes, the slider field will allow users to select a value between 1 and 10.


質問 # 50
What is the default behavior of overlay elements?

  • A. First element listed is invisible
  • B. First element listed is transparent
  • C. Last element listed appears on top
  • D. Last element listed appears on bottom

正解:C

解説:
In CSS, when elements overlap, the default behavior is that the last element listed in the HTML document appears on top.
* Stacking Context:
* Default Behavior: Elements are stacked in the order they appear in the HTML. The last element in the document tree is rendered on top.
* z-index: You can control stacking order using the z-index property, but without it, the default order applies.
* Example:
* Given HTML:
<div style="position: absolute; width: 100px; height: 100px; background-color: red;"></div>
<div style="position: absolute; width: 100px; height: 100px; background-color: blue;"></div>
* The blue div will be on top of the red div because it appears later in the HTML document.
* References:
* MDN Web Docs - Stacking context
* W3C CSS Positioned Layout Module Level 3
By understanding these fundamental CSS concepts, developers can create more effective and visually appealing web layouts.


質問 # 51
Given the following CSS code:

Which portion is the rule?

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

正解:C

解説:
In CSS, a rule is composed of a selector and a declaration block. The rule is the entire part that defines how styles should be applied to elements matching the selector.
* CSS Rule Components:
* Selector: Identifies the HTML elements to be styled (e.g., body, .name, #item).
* Declaration Block: Contains one or more declarations, each consisting of a property and a value, enclosed in curly braces {}.
* Example Analysis:
* Option A:
body {
background-color: white;
}
This is the full rule, consisting of the selector body and the declaration block { background-color: white; }.
* Option B:
background-color: white;
This is just a declaration, not a complete rule.
background-color: white,
This is an incorrect declaration due to the comma, and not a complete rule.
* Option D:
color: black
This is just a declaration, not a complete rule.
* References:
* W3C CSS Syntax and Basic Data Types Module Level 3
* MDN Web Docs - CSS Syntax


質問 # 52
Which HTML5 attribute specifies where to send the form data for processing a form is submitted?

  • A. Action
  • B. Method
  • C. Target
  • D. Enctype

正解:A

解説:
The action attribute in the <form> element specifies the URL where the form data should be sent for processing when the form is submitted.
* Action Attribute: This attribute defines the endpoint that will handle the submitted form data.
* Usage Example:
<form action="/submit-form" method="post">
<input type="text" name="username">
<input type="submit" value="Submit">
</form>
Here, the form data is sent to the /submit-form URL when submitted.
References:
* MDN Web Docs on <form> action attribute
* W3C HTML Specification on Forms


質問 # 53
What should a developer increase to create space between a border and content?

  • A. Width
  • B. Height
  • C. Padding
  • D. Margin

正解:C

解説:
Padding is the CSS property used to create space between the content of an element and its border. It is an internal spacing within the element.
* CSS Box Model:
* Content: The innermost part, where text and images appear.
* Padding: The space between the content and the border.
* Border: The edge of the element.
* Margin: The space outside the border, creating space between different elements.
* Usage:
* Padding:
div {
padding: 20px;
}
* This code adds 20 pixels of padding on all sides of the content within the div element.
* References:
* MDN Web Docs - Padding
* W3C CSS Box Model


質問 # 54
Which layout design is easiest to manage on a variety of devices?

  • A. Grid
  • B. Table
  • C. Flow
  • D. Border

正解:A

解説:
A grid layout is easiest to manage across a variety of devices due to its flexibility and ability to create responsive designs that adapt to different screen sizes.
* Grid Layout:
* Responsive Design: Grid layouts can be easily adjusted using media queries to provide a consistent user experience across devices.
* CSS Grid Example:
container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
* Other Options:
* A. Flow: Often used for text, not layout.
* B. Table: Outdated and not responsive.
* D. Border: Not commonly used for complex layouts.
* References:
* MDN Web Docs - CSS Grid Layout
* W3Schools - CSS Grid Layout


質問 # 55
......

Web-Development-Applications問題集あなたを合格させる認証試験:https://www.jpntest.com/shiken/Web-Development-Applications-mondaishu

最新でリアルなWGU Web-Development-Applications試験問題集解答:https://drive.google.com/open?id=1vdE_dzQ85FXCCWTE1pvQwfRAXp3Xat6K

弊社を連絡する

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

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

サポート:現在連絡