C777 Computer Programming Questions With 100% Correct Answers 2024-2025
Which type of content should use an <aside>? - ANS-✔✔News feeds
Which portion of this code specifies and accesses jQuery? - ANS-✔✔$
Which element allows a developer to add a caption for a created group of items? - ANS-✔✔<legend>
Which global attribute should a developer use to bind a label element to an input element? - ANS-✔✔
for
Given the following HTML:
What color would you like to use?
<select autofocus>
<option value = "red">Red</option><option value = "blue">Blue</option>
<option value = "green">Green</option>
<option value = "pink">Pink</option>
</select> What happens when the page loads? - ANS-✔✔The select element in the form takes focus.
Which code segment creates input text that has its value checked against a regular expression? - ANS-✔
✔<input type="text" name="name" pattern="[a-zA-Z]">
Given the following markup:<input id="password" name="password" type="password"
class="password" pattern=".{8,12}" required
>What does the markup do? - ANS-✔✔It allows a user to enter a password between 8 and 12
characters long.
Which form input type supports a required attribute? - ANS-✔✔file
, Which development phase helps ensure cross-browser compatibility through coding standards? - ANS-
✔✔Validation
What is used in code to specify the width of an image in responsive web design? - ANS-✔✔%
What is a goal of responsive web design? - ANS-✔✔Dynamic element adjustments
What is a characteristic of a web page with responsive design? - ANS-✔✔The ability to resize to the
screen size
Which element should a developer use for a bulleted list? - ANS-✔✔<ul>
What does an HTML5 code validator confirm about code? - ANS-✔✔It complies with a standard.
Which style sheet code defines the 18-point Arial font for all level two headers? - ANS-✔✔h2
{
font-family: Arial; font-size: 18px;
}
Given the following CSS code:body { color : white;}
Which part of an element is affected by the color property? - ANS-✔✔Text
What should be added first when embedding CSS in a single web page as an internal style sheet? - ANS-
✔✔A <style> element to the <head> section
Which type of content should use an <aside>? - ANS-✔✔News feeds
Which portion of this code specifies and accesses jQuery? - ANS-✔✔$
Which element allows a developer to add a caption for a created group of items? - ANS-✔✔<legend>
Which global attribute should a developer use to bind a label element to an input element? - ANS-✔✔
for
Given the following HTML:
What color would you like to use?
<select autofocus>
<option value = "red">Red</option><option value = "blue">Blue</option>
<option value = "green">Green</option>
<option value = "pink">Pink</option>
</select> What happens when the page loads? - ANS-✔✔The select element in the form takes focus.
Which code segment creates input text that has its value checked against a regular expression? - ANS-✔
✔<input type="text" name="name" pattern="[a-zA-Z]">
Given the following markup:<input id="password" name="password" type="password"
class="password" pattern=".{8,12}" required
>What does the markup do? - ANS-✔✔It allows a user to enter a password between 8 and 12
characters long.
Which form input type supports a required attribute? - ANS-✔✔file
, Which development phase helps ensure cross-browser compatibility through coding standards? - ANS-
✔✔Validation
What is used in code to specify the width of an image in responsive web design? - ANS-✔✔%
What is a goal of responsive web design? - ANS-✔✔Dynamic element adjustments
What is a characteristic of a web page with responsive design? - ANS-✔✔The ability to resize to the
screen size
Which element should a developer use for a bulleted list? - ANS-✔✔<ul>
What does an HTML5 code validator confirm about code? - ANS-✔✔It complies with a standard.
Which style sheet code defines the 18-point Arial font for all level two headers? - ANS-✔✔h2
{
font-family: Arial; font-size: 18px;
}
Given the following CSS code:body { color : white;}
Which part of an element is affected by the color property? - ANS-✔✔Text
What should be added first when embedding CSS in a single web page as an internal style sheet? - ANS-
✔✔A <style> element to the <head> section