Our experts have gathered these Front-end Development MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of Front-end Development by answering these 60+ multiple-choice questions.
Get started now by scrolling down!
A. Function scope
B. Block scope
C. Inline scope
D. Global scope
A. To indicate that this text is the main heading on the page
B. To make the text bold
C. To ensure that search engines treat the keywords as being important for this page
D. To demonstrate to screen readers that this text is important
A. When you cannot think of useful alt text
B. When you don't think it would be interesting to someone who cannot see it
C. When the image has come from a CMS
D. When the image is purely decorative
A. Title
B. Class
C. Style
D. Id
A. Top
B. Opacity
C. Width
D. Height
A. Log
B. Apple
C. Stone
D. Turnip
A. It sets one variable equal to another in both value and type
B. It tests for equality of type only
C. It tests for equality of value only
D. It tests for equality of value and type
A. Let fruit = 'plum'
B. Var fruit = 'plum'
C. Const fruit = 'plum'
D. Fruit = 'plum'
A. To identify the difference parts of a figure
B. To explain what needs to be entered into a form field
C. As a caption for images
D. As a heading for tables
A. The page will not display
B. An error message will be displayed
C. The browser will not load the stylesheet
D. The browser will ignore the unknown CSS
A. Selector
B. Combinator
C. Declarator
D. Markup
A. #BLM
B. #BLM
C.
D.
A. Range
B. Address
C. Date
D. Password
A. All users
B. Users who can see the content on screen
C. No users
D. Screen reader users
A. Margin
B. Border
C. Padding
D. Paragraph
A. Https
B. Org
C. Uniswap.org
D. App.uniswap
A.
B.
C.
D.
A. It employs code that can be viewed only on a desktop computer
B. It is obsolete and is not recommended for use in marking web content
C. It employs code that will require users to update their browsers
D. It employs incorrect syntax that will cause the browser to crash
A. Font sizes are expressed relative to the font size of the containing div element
B. Font sizes are expressed relative to the font size of the parent elements
C. Font sizes are relative to the base font size of the operating system.
D. Font sizes are relative to the root em unit used in the HTML element.
A.
B.
C.
D.
A. Sharing JavaScript code with other people
B. Making JavaScript-reliant sites accessible to users who do not have JavaScript turned on
C. Bundling individual JavaScript files for use in your website
D. Source control
A. One
B. Three
C. Four
D. Two
A. Display: block; clear: both;}
B. Inserting content that cannot be seen by screen readers
C. Fixing an Internet Explorer 11 bug
D. Clearing floats in float-based layouts
E. Creating a new block formatting context
A. String[] galaxies = new Array("Milky Way", "Whirlpool", "Andromeda");
B. Let galaxies = {Milky Way, Whirlpool, Andromeda};
C. Galaxies = ["Milky Way", "Whirlpool", "Andromeda"];
D. Var galaxies = {"Milky Way", "Whirlpool", "Andromeda"};
A. Items display in a row, lined up at the start, and do not stretch to fill the container
B. Items display in a column, lined up at the start, and do not stretch to fill the container
C. Items stay in a column until you add some flex properties.
D. Items display in a row, lined up at the start, and stretch to fill the container
A. Flex: 1 0 0;
B. Flex: initial;
C. Flex: 1 1 auto;
D. Flex: 1 0 auto;
A. The webapge is using a DOCTYPE, which renders it incapable of displayed video in addition to other web content.
B. Your browser does not support HTML5 video.
C. The video is from a source that cannot be displayed in your location for legal reasons.
D. The page is loaded via HTTPS, but the video is being served insecurely as HTTP and the browser is blocking it.
A. Skrt skrt skrt
B. Skrt skrt
C. Skrt skrt skrt skrt
D. Nothing
A. < img src="image.jpg">
B. < a href="images/image.jpg">
C. < img src="images/image.jpg">
D. < img href="image.jpg">
A. ParseInt(
B. Parse_int('6');
C. parseInt("6");
D. parseint("6");
A. Let product => (x,y) {x * y;}
B. Let product = (x,y) => x*y;
C. Let product => x*y;
D. Let product = (x,y) -> x*y;
A. Performance
B. UX design
C. Accessibility
D. SEO
A. It will tell the browser that this link is a site belonging to the current domain.
B. It will do nothing a because this is a deprecated attribute that browsers do not support.
C. It will tell the browser that a connection will be made to another origin and to start getting ready as soon as possible.
D. It will tell the browser that a resource is needed, and that it should start getting fetched as soon as possible.
A. Images
B. HTML
C. CSS
D. JavaScript
A. the "Can I Use" website
B. The Web Platform Tests Suite
C. The CSS specification
D. MDN property pages
A. Object-fit: contain
B. Object-fit: stretch
C. Object-fit: all
D. Object-fit: cover
A. It eliminates some JavaScript silent errors by changing them to throw errors.
B. It prohibits some syntax likely to be defined in future versions of ECMAScript.
C. It forces the writing of valid HTML and CSS.
D. It fixes mistakes that make it difficult for JavaScript engines to perform optimizations.
A. Ul, li, a
B. P, b, h3
C. Div, p, em
D. Div, main, h1
A. Sticky positioning
B. Absolute positioning
C. Relative positioning
D. Fixed positioning
A. .box { overflow: scroll; }
B. .box { overflow: scroll-x; }
C. .box { overflow: auto; }
D. .box { overflow: none; }
A. Every()
B. Map()
C. ForEach()
D. Filter()
A. Tr:nth-child(2) { background-color: #ccc; }
B. Tr:nth-child(2n+1) { background-color: #ccc; }
C. Tr:nth-child(2+1) { background-color: #ccc; }
D. Tr:nth-child(2n) { background-color: #ccc; }
A.
B.
C.
D.
A. The CSS is being loaded asynchronously in order to prevent render blocking.
B. This will stop the CSS being loaded for old browsers that do not support the techniques in use.
C. This is part of a stylesheet-switching script to load different themes for the site.
D. This will stop the CCS being loaded on slow data connections
A. Flex: 0 0 100;
B. Flex: 1 0 0;
C. Flex: 0 0 auto;
D. Flex: 1 1 auto;
A. Only using code that is supported by the newest browsers, and serving the site without JavaScript to old browsers
B. Removing unused code from the JavaScript files
C. Splitting code into various bundles so that decisions can be made on loading priority
D. Allowing the browser to ignore code it believes will perform badly
A. A method of auditing performance that gives your site a score, which is then used for Google ranking
B. A next-generation image format offering a smaller file size than equivalent PNG or JPEG images
C. A new font format that allows a single font to display at different styles and weights
D. A next-generation PDF format that offers a smaller file size and better accessibility than standard PDF documents
A. The visitor's browser does not have full support for CSS Grid Layout.
B. Items have been positioned in such a way that they are in a different order to the source.
C. The browser has a keyboard navigation bug.
D. You need to add the tabindex attribute to elements.
A. When the browser displays the first bit of content from the DOM
B. When the user can consistently interact with all of the page elements
C. When HTML has loaded, but not necessarily JavaScript, CSS, or images
D. When the user can see the webpage on the screen