- Học kỳ
- SP2026
- Thời Gian
- 4/5/26
- Loại tài liệu
- FE
- Campus
- Hồ Chí Minh
WED201c SP26 FE RE
Câu 1: Choose 1 answer Multiple Choice
What unit is used to fix the size of an element (it will appear exactly this size)?
Câu 2: Choose 1 answer Multiple Choice
- A. Vmax
- B. Vmin
- C. %
- D. mm
Which CSS property is used to generate space around an element's content, inside of any defined borders?
Câu 3: Choose 1 answer Multiple Choice
- A. margin
- B. padding
- C. float
- D. clear
What unit is used to specify the font size that relative to 1% of viewport's smaller dimension?
Câu 4: Choose 1 answer Multiple Choice
- A. Rem
- B. Vmin
- C. %
- D. Px
What CSS3 property creates animation effects without using JavaScript?
Câu 5: Choose 1 answer Multiple Choice
- A. animate
- B. @keyframes
- C. motion
- D. event
If you want your navigation bar to remain visible, even when the user scrolls downward, you should use which type of positioning?
Câu 6: Choose 1 answer Multiple Choice
- A. static
- B. absolute
- C. relative
- D. fixed
Which CSS property is used to create space between the element's border and inner content?
Câu 7: Choose 1 answer Multiple Choice
- A. margin
- B. padding
- C. spacing
- D. border-spacing
Which CSS property is used to set the space between the characters of a text?
Câu 8: Choose 1 answer Multiple Choice
- A. letter-spacing
- B. word-spacing
- C. line-height
- D. text-indent
What does the transform: scale(2); property do to an element?
Câu 9: Choose 1 answer Multiple Choice
- A. Doubles the width only
- B. Doubles both width and height
- C. Halves the element's size
- D. Rotates the element by 2 degrees
Consider the code:
CSS
<span>html</span> { <span>font-size</span>: <span>16px</span>; }<br><span>div</span> { <span>font-size</span>: <span>3rem</span>; <span>border</span>: <span>1px</span> solid black; }<br><span>#mycss</span> { <span>font-size</span>: <span>2rem</span>; <span>border</span>: <span>1px</span> solid red; }<br>
HTML
<span><<span>p</span>></span>This is a text<span></<span>p</span>></span><br><span><<span>div</span> <span>id</span>=<span>"mycss"</span>></span>At here for your code<span></<span>div</span>></span><br>
What is the right option?
Câu 10: Choose 1 answer Multiple Choice
- A. The font-size of this document is 16px.
- B. The font-size of the div with id="mycss" is 2 x the browser's font size.
- C. The rem unit sets the font-size relative to the browsers base font-size, and will not inherit from its parents.
- D. All of the others
If you want your navigation bar to remain visible, even when the user scrolls downward, you should use which type of positioning?
Câu 11: Choose 1 answer Multiple Choice
- A. static
- B. absolute
- C. relative
- D. fixed
Which property is used to wrap flex items on a new line?
Câu 12: Choose 1 answer Multiple Choice
- A. flex-wrap: wrap;
- B. wrap: flex;
- C. overflow: wrap;
- D. display: wrap;
What is the correct syntax for defining a keyframe animation in CSS?
Câu 13: Choose 1 answer Multiple Choice
- A. @animation keyframes {}
- B. @motion {}
- C. @keyframes slide {}
- D. @frame key {}
Consider the below code:
CSS
<span>div</span> { <span>width</span>: <span>300px</span>; <span>padding</span>: <span>5px</span>; <span>border</span>: <span>1px</span> red solid; <span>margin</span>: <span>0px</span>; }<br>
Choose the right statement about the total width of a div tag.
Câu 14: Choose 1 answer Multiple Choice
- A. Total width: 300px
- B. Total width: 310px
- C. Total width: 312px
- D. Total width: 302px
Which HTML tag is used to define an internal style sheet?
Câu 15: Choose 1 answer Multiple Choice
- A. <style>
- B. <script>
- C. <css>
- D. <link>
Which of the following CSS pseudo-classes is used to select an element that is being hovered over by the mouse pointer?
Câu 16: Choose 1 answer Multiple Choice
- A. hover
- B. focus
- C. active
- D. visited
Consider the below code:
JavaScript
<span>var</span> x = <span>5</span> + <span>5</span>;<br><span>var</span> y = <span>"5"</span> + <span>5</span>;<br><span>var</span> z = <span>"Hello"</span> + <span>5</span>;<br>
Which statement is right about the result of x,y,z?
Câu 17: Choose 1 answer Multiple Choice
- A. 10, 55, Hello5
- B. 55, 10, Hello5
- C. Hello5, 10, 55
- D. Hello5, 55, 10
What will happen when the following code runs?
JavaScript
<span>let</span> num = <span>3</span>;<br>num += <span>2</span>;<br>++num;<br><span>console</span>.log(num);<br>
Câu 18: Choose 1 answer Multiple Choice
- A. 6
- B. 2
- C. 3
- D. 5
What is the correct JavaScript syntax to the 2nd paragraph display inline?<p>Humpty Dumpty</p><p>sat</p><p>on the wall</p>
Câu 19: Choose 1 answer Multiple Choice
- A. document.getElementsByTagName("p")[1].style.display="inline";
- B. document.getElementsByTagName("p")[2].style.display="inline";
- C. document.getElementsByName("p")[1].style.display="inline";
- D. document.getElementsByName("p")[2].style.display="inline";
What is the correct syntax to change another source of the 2nd image?<img src="image1.jpg"/><img src="image2.jpg"/><img src="image3.jpg"/>
Câu 20: Choose 1 answer Multiple Choice
- A. document.getElementsByName("img").src="anotherImage.jpg";
- B. document.getElements2ndByName("img").src="anotherImage.jpg";
- C. document.getElementsByTagName("img").item(2).src="anotherImage.jpg";
- D. document.getElementsByTagName("img")[1].src="anotherImage.jpg";
Where can you put JavaScript?
Câu 21: Choose 1 answer Multiple Choice
- A. In the head and body section
- B. Just in the <body> section
- C. Just in the <head> section
JavaScript
<span>var</span> str = <span>"Visit w3schools"</span>;<br><span>var</span> n = str.search(<span>/w3schools/</span>);<br>
What is the value of the variable n?
Câu 22: Choose 1 answer Multiple Choice
- A. 6
- B. 5
- C. 7
- D. null
Which JavaScript loop is best used when you want to execute a block of code a specific number of times?
Câu 23: Choose 1 answer Multiple Choice
- A. for loop
- B. while loop
- C. do...while loop
- D. switch case loop
You can call a function without it being defined.
Câu 24: Choose 1 answer Multiple Choice
- A. True
- B. False
What statement do you use to change className property of a tag with id="demo"?
Câu 25: Choose 1 answer Multiple Choice
- A. document.getElementById("demo").className=newclass
- B. document.getElementById("demo").style.className=newclass
- C. document.getElementById("demo").class=newclass
- D. document.getElementById("demo").style.class=newclass
Which of the following JavaScript code creates a function expression?
Câu 26: Choose 1 answer Multiple Choice
- A. function myFunc() {}
- B. const myFunc = function() {}
- C. myFunc: function() {}
- D. function = myFunc() {}
Consider the code:
- x = 10;
- var x;
- window.alert(x);Choose the right order of the above codes to display the variable x?
Câu 27: Choose 1 answer Multiple Choice
- A. 1, 2, 3
- B. 2, 1, 3
- C. 3, 2, 1
- D. 2, 3, 1
HTML
<span><<span>body</span>></span><br><span><<span>p</span> <span>id</span>=<span>"demo"</span>></span><span></<span>p</span>></span><br><span><<span>script</span>></span><span><br><span>if</span> (<span>Math</span>.random() < <span>0.5</span>) {<br> text = <span>"<a href='You do not have permission to view link Đăng nhập hoặc Đăng ký.'>Visit W3Schools</a>"</span>;<br>} <span>else</span> {<br> text = <span>"<a href='You do not have permission to view link Đăng nhập hoặc Đăng ký.'>Visit WWF</a>"</span>;<br>}<br><span>document</span>.getElementById(<span>"demo"</span>).innerHTML = text;<br></span><span></<span>script</span>></span><br><span></<span>body</span>></span><br>
What is the output?
Câu 28: Choose 1 answer Multiple Choice
- A. write a link to either VisitW3Schools or to VisitWWF
- B. write a link to VisitW3Schools
- C. write a link to VisitWWF
- D. All of the others
Which JavaScript method is commonly used to validate if a user's input in a form is a valid email address?
Câu 29: Choose 1 answer Multiple Choice
- A. Testing input with regex.
- B. form.validateEmail();
- C. input.checkType("email");
- D. input.match(/@/);
Which of the following is true about the typeof operator in JavaScript?
Câu 30: Choose 1 answer Multiple Choice
- A. The typeof is a unary operator that is placed before its single operand, which can be of any type.
- B. Its value is a string indicating the data type of the operand.
- C. The typeof operator is followed by its operand
- D. All of the others
What does this JavaScript function do?
JavaScript
<span><span>function</span> <span>validateForm</span>(<span></span>) </span>{<br> <span>let</span> x = <span>document</span>.forms[<span>"myForm"</span>][<span>"email"</span>].value;<br> <span>if</span> (x == <span>""</span>) {<br> alert(<span>"Email must be filled out"</span>);<br> <span>return</span> <span>false</span>;<br> }<br>}<br>
Câu 31: Choose 1 answer Multiple Choice
- A. Submits a form to the database
- B. Sends email to user
- C. Validates that email is not empty
- D. Disables all inputs
What does the CSS 'min-width' media query condition ensure in responsive design?
Câu 32: Choose 1 answer Multiple Choice
- A. Styles are applied only to screens that are smaller than the specified width
- B. Styles apply to screens larger than or equal to the specified width
- C. Styles apply to screens with a fixed width
- D. Styles apply only to desktop devices
Bootstrap is a framework for back-end web development.
Câu 33: Choose 1 answer Multiple Choice
- A. True
- B. False
What does the CSS property display: flex; do?
Câu 34: Choose 1 answer Multiple Choice
- A. Makes the element completely invisible on the page
- B. Aligns multiple elements horizontally in a single line
- C. Creates a flexible layout for child elements
- D. Centers an element on the page
- E. Converts the element into an inline-level block container
How would you apply styles only to screens with a maximum width of 600px?
Câu 35: Choose 1 answer Multiple Choice
- A. @media screen max-width:600px {}
- B. @media screen and (max-width: 600px) {}
- C. @media (screen) max-width 600px {}
- D. @media (max-width: 600px, screen)
Choose the right statement about the code below:
CSS
<span>@media</span> <span>only</span> screen <span>and</span> (<span>max-width</span>: <span>768px</span>) {<br> <span>[class*=<span>"col-"</span>]</span> { <span>width</span>: <span>100%</span>; }<br>}<br>
Câu 36: Choose 1 answer Multiple Choice
- A. When the screen (browser window) gets smaller than 768px, each column should have a width of 100%
- B. When the screen (browser window) gets greater than 768px, each column should have a width of 100%
- C. Each column should have a width of 100% for any screen wide
- D. When the screen (browser window) or mobile gets smaller than 768px, each column should have a width of 100%
Consider the following CSS rules:
CSS
<span>@media</span> all <span>and</span> (<span>min-width</span>: <span>500px</span>) { <span>div</span> { <span>width</span>: <span>25%</span>; } }<br><span>div</span> { <span>width</span>: <span>80%</span>; }<br>
What is the width of any div elements on a 750px screen?
Câu 37: Choose 1 answer Multiple Choice
- A. 80%
- B. 75%
- C. 100%
- D. 25%
When testing a responsive website, which tool is most effective for quickly simulating various screen sizes and devices?
Câu 38: Choose 1 answer Multiple Choice
- A. Using browser developer tools to toggle device modes and adjust screen size
- B. Relying on real device testing for each screen size individually
- C. Viewing the site on a single device and adjusting the CSS for that specific resolution
- D. Using a single fixed screen size and adjusting layout elements to fit
What way is the best choice if you want to scale down if the image has to, but never scale up to be larger than its original size?
Câu 39: Choose 1 answer Multiple Choice
- A. Using the max-width property and set up the code "max-width: 100%"
- B. Using the width property and set up the code "width: 100%"
- C. Using the min-width property and set up the code "min-width: 100%"
- D. Using the random-width property and set up the code "random-width: 100%"
Consider two statements:Statement 1: You only can insert one "responsive breakpoint" in your stylesheet.Statement 2: Insert one breakpoint for testing the viewport size which is from 768px and down. You have to do: @media only screen and (max-width: 768px){}Choose the right option:
Câu 40: Choose 1 answer Multiple Choice
- A. Statement 1 is true, statement 2 is true
- B. Statement 1 is false, statement 2 is false
- C. Statement 1 is true, statement 2 is false
- D. Statement 1 is false, statement 2 is true
Consider two statements:Statement 1: Responsive web design is a setup of the same HTML code to all devices and CSS is used to alter the rendering of the page on the device.Statement 2: The meta viewport tag gives the browser instructions on how to adjust the dimensions and scaling of the page to the width of the device.Choose the right option.
Câu 41: Choose 1 answer Multiple Choice
- A. Statement 1 is true, statement 2 is true
- B. Statement 1 is false, statement 2 is false
- C. Statement 1 is true, statement 2 is false
- D. Statement 1 is false, statement 2 is true
Consider the following CSS rules:
CSS
<span>div</span> { <span>width</span>: <span>80%</span>; }<br><span>@media</span> all <span>and</span> (<span>max-width</span>: <span>767px</span>) { <span>div</span> { <span>width</span>: <span>25%</span>; } }<br>
What is the width of any div elements on a 500px screen?
Câu 42: Choose 1 answer Multiple Choice
- A. 80%
- B. 75%
- C. 100%
- D. 25%
In responsive design, which measurement unit allows a fluid element to adjust based on the screen size?
Câu 43: Choose 1 answer Multiple Choice
- A. em
- B. px
- C. vh
- D. rem
In Bootstrap 3, a standard navigation bar is created with:
Câu 44: Choose 1 answer Multiple Choice
- A. <nav class="navbar navbar-default">
- B. <nav class="nav navbar">
- C. <nav class="navigationbar navbar-default">
- D. <nav class="navbar default-navbar">
What does this JavaScript code do?
JavaScript
<span>window</span>.addEventListener(<span>"resize"</span>, <span><span>function</span>(<span></span>) </span>{ alert(<span>"Resized!"</span>); });<br>
Câu 45: Choose 1 answer Multiple Choice
- A. Alerts when user clicks
- B. Alerts when input changes
- C. Alerts when window is resized
- D. Does nothing
Which of the following is NOT a characteristic of responsive design?
Câu 46: Choose 1 answer Multiple Choice
- A. Content adjusts to different screen sizes
- B. Layouts are fixed and do not change based on the device
- C. Media queries are used to apply different styles at different screen sizes
- D. Images and elements scale based on the viewport size
Which attribute specifies the URL where the form data will be submitted and processed?
Câu 47: Choose 1 answer Multiple Choice
- A. Encode
- B. Method
- C. Action
- D. Post
______ is used to create rules about the color, font, and layout of our pages
Câu 48: Choose 1 answer Multiple Choice
- A. CSS
- B. HTML
- C. JS
- D. FONT
What does WAN stand for?
Câu 49: Choose 1 answer Multiple Choice
- A. Wide Area Network
- B. World Area Network
- C. Word Area Network
- D. All of the others
What should target="_blank" do when included in a link tag?
Câu 50: Choose 1 answer Multiple Choice
- A. Opens the link in a new tab or window
- B. Opens the link in a tab called "_blank"
- C. This is not a valid expression.
What is the purpose of the Document Object Model (DOM)?
Câu 51: Choose 1 answer Multiple Choice
- A. To define the structure of a web page as a tree of objects.
- B. To style the elements of a web page.
- C. To create interactive animations.
- D. To store data on the client side.
URL stands for
Câu 52: Choose 1 answer Multiple Choice
- A. Unordered Resource Location
- B. Universal Relation Locator
- C. Uniform Resource Locator
- D. None of the others
Every well-formed HTML document should include
Câu 53: Choose 1 answer Multiple Choice
- A. doctype, head, body
- B. doctype, header, body
- C. header, nav, footer
The Internet is a type of
Câu 54: Choose 1 answer Multiple Choice
- A. Hypertext Network
- B. Local Area Network
- C. Wide Area Network
Consider the code:
<form><input type="[missing code]" value="Send"/></form>
What option do you choose to send form data to a form-handler?
Câu 55: Choose 1 answer Multiple Choice
- A. button
- B. submit
- C. sendButton
- D. actionButton
A <div> block is an inline-level element
Câu 56: Choose 1 answer Multiple Choice
- A. True
- B. False
What does the DOM represent?
Câu 57: Choose 1 answer Multiple Choice
- A. The logical structure of an HTML document
- B. A programming language
- C. Only used in CSS
- D. Unrelated to JavaScript
What are the elements to help organize the data and structure of a table?
Câu 58: Choose 1 answer Multiple Choice
- A. <caption>, <head>, <body>, <foot>
- B. <caption>, <thead>, <tbody>, <foot>
- C. <caption>, <thead>, <tbody>, <tfoot>
- D. <caption>, <thead>, <body>, <foot>
Which code will properly insert headings along each row?
Câu 59: Choose 1 answer Multiple Choice
- A. <table><tr><th>Name</th><th>Age</th><th>Team</th></tr><tr><td>Colleen</td><td>26</td><td>Browns</td></tr></table>
- B. <table><tr><th>Name</th><td>Colleen</td></tr><tr><th>Age</th><td>26</td></tr><tr><th>Team</th><td>Browns</td></tr></table>
- C. <table><tr><td>Name</td><td>Age</td><td>Team</td></tr><tr><th>Colleen</th><th>26</th><th>Browns</th></tr></table>
A basic functionality of browsers is to translate HTML documents into viewable webpages.
Câu 60: Choose 1 answer Multiple Choice
- A. True
- B. False
Which tag represents a line break (new line)?
- A. <ln>
- B. <br>
- C. <break>
- D. <line>
Đính kèm
-
WED201c SP26 FE RE_001.webp29.3 KB · Lượt xem: 3 -
WED201c SP26 FE RE_002.webp28.2 KB · Lượt xem: 3 -
WED201c SP26 FE RE_003.webp28.2 KB · Lượt xem: 1 -
WED201c SP26 FE RE_004.webp34.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_005.webp30.6 KB · Lượt xem: 1 -
WED201c SP26 FE RE_006.webp32.2 KB · Lượt xem: 1 -
WED201c SP26 FE RE_007.webp35.4 KB · Lượt xem: 1 -
WED201c SP26 FE RE_008.webp46.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_009.webp65.2 KB · Lượt xem: 1 -
WED201c SP26 FE RE_010.webp30.6 KB · Lượt xem: 1 -
WED201c SP26 FE RE_011.webp34.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_012.webp41.3 KB · Lượt xem: 1 -
WED201c SP26 FE RE_013.webp55.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_014.webp29.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_015.webp30.6 KB · Lượt xem: 1 -
WED201c SP26 FE RE_016.webp44.1 KB · Lượt xem: 1 -
WED201c SP26 FE RE_017.webp31.4 KB · Lượt xem: 1 -
WED201c SP26 FE RE_018.webp84 KB · Lượt xem: 1 -
WED201c SP26 FE RE_019.webp99 KB · Lượt xem: 1 -
WED201c SP26 FE RE_020.webp33.8 KB · Lượt xem: 1 -
WED201c SP26 FE RE_021.webp32.3 KB · Lượt xem: 1 -
WED201c SP26 FE RE_022.webp31.2 KB · Lượt xem: 1 -
WED201c SP26 FE RE_023.webp22.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_024.webp63.8 KB · Lượt xem: 1 -
WED201c SP26 FE RE_025.webp43.3 KB · Lượt xem: 1 -
WED201c SP26 FE RE_026.webp39.8 KB · Lượt xem: 1 -
WED201c SP26 FE RE_027.webp86.4 KB · Lượt xem: 1 -
WED201c SP26 FE RE_028.webp35.9 KB · Lượt xem: 1 -
WED201c SP26 FE RE_029.webp50.6 KB · Lượt xem: 1 -
WED201c SP26 FE RE_030.webp62.5 KB · Lượt xem: 1 -
WED201c SP26 FE RE_031.webp60.5 KB · Lượt xem: 0 -
WED201c SP26 FE RE_032.webp25 KB · Lượt xem: 0 -
WED201c SP26 FE RE_033.webp65.9 KB · Lượt xem: 0 -
WED201c SP26 FE RE_034.webp54.7 KB · Lượt xem: 0 -
WED201c SP26 FE RE_035.webp72 KB · Lượt xem: 0 -
WED201c SP26 FE RE_036.webp50.3 KB · Lượt xem: 0 -
WED201c SP26 FE RE_037.webp61.6 KB · Lượt xem: 0 -
WED201c SP26 FE RE_038.webp57.4 KB · Lượt xem: 0 -
WED201c SP26 FE RE_039.webp63.7 KB · Lượt xem: 0 -
WED201c SP26 FE RE_040.webp72.1 KB · Lượt xem: 0 -
WED201c SP26 FE RE_041.webp50 KB · Lượt xem: 0 -
WED201c SP26 FE RE_042.webp26.6 KB · Lượt xem: 0 -
WED201c SP26 FE RE_043.webp49.5 KB · Lượt xem: 0 -
WED201c SP26 FE RE_044.webp50.5 KB · Lượt xem: 0 -
WED201c SP26 FE RE_045.webp68.2 KB · Lượt xem: 0 -
WED201c SP26 FE RE_046.webp31.3 KB · Lượt xem: 0 -
WED201c SP26 FE RE_047.webp26.7 KB · Lượt xem: 0 -
WED201c SP26 FE RE_048.webp33.9 KB · Lượt xem: 0 -
WED201c SP26 FE RE_049.webp42.8 KB · Lượt xem: 0 -
WED201c SP26 FE RE_050.webp53.5 KB · Lượt xem: 0 -
WED201c SP26 FE RE_051.webp35 KB · Lượt xem: 0 -
WED201c SP26 FE RE_052.webp33.8 KB · Lượt xem: 0 -
WED201c SP26 FE RE_053.webp29 KB · Lượt xem: 0 -
WED201c SP26 FE RE_054.webp47 KB · Lượt xem: 0 -
WED201c SP26 FE RE_055.webp21.1 KB · Lượt xem: 0 -
WED201c SP26 FE RE_056.webp40.1 KB · Lượt xem: 0 -
WED201c SP26 FE RE_057.webp52.6 KB · Lượt xem: 0 -
WED201c SP26 FE RE_058.webp94.5 KB · Lượt xem: 0 -
WED201c SP26 FE RE_059.webp27.3 KB · Lượt xem: 0 -
WED201c SP26 FE RE_060.webp26.5 KB · Lượt xem: 3