Fatskills
Practice. Master. Repeat.
Study Guide: Most Useful UI Developer Interview Questions and Answers 2 (Technical)
Source: https://www.fatskills.com/user-interface-design-user-experience-design/chapter/most-useful-ui-developer-interview-questions-and-answers-2-technical

Most Useful UI Developer Interview Questions and Answers 2 (Technical)

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~8 min read

Question 1. How do you optimize a website’s assets?
File concatenation, file compression, CDN Hosting, offloading assets, re-organizing and refining code, etc. Have a few ready.

Question 2. What are the three ways to reduce page load time?
Reduce image sizes, remove unnecessary widgets, and HTTP compression, put CSS at the top and script references at the bottom or in external files, reduce lookups, minimize redirects, caching, etc.

Question 3. What kind of things must you be wary of when the design or developing multilingual sites?
setting the default language, using Unicode encoding, using the ‘lang’ attribute, being aware of standard font sizes and text direction, and language word length (may affect layout).

Question 4. What is HTML?
HTML stands for HyperText Markup Language. It is the dominant markup language for creating websites and anything that can be viewed in a web browser. If you want to get some extra bonus points, you can learn the HISTORY OF HTML and throw in some obscure facts.

Question 5. What is the difference between HTML elements and tags?
HTML elements communicate to the browser how to render text. When surrounded by angular brackets <> they form HTML tags. For the most part, tags come in pairs and surround the text.

Question 6. What is “Semantic HTML"?
Semantic HTML is a coding style where the tags embody what the text is meant to convey. In Semantic HTML, tags like for bold, and for italic should not be used, the reason being they just represent formatting and provide no indication of meaning or structure. The semantically correct thing to do is use these tags will have the same bold and italic effects while demonstrating meaning and structure (emphasis in this case).
MindMajix Youtube Channel

Question 7. What does DOCTYPE mean?
The term DOCTYPE tells the browser which type of HTML is used on a webpage. In turn, the browsers use DOCTYPE to determine how to render a page. Failing to use DOCTYPE or using the wrong DOCTYPE may load your page in Quirks Mode.

Question 8. What’s the difference between standards mode and quirks mode?
Quirks Mode is a default compatibility mode and may be different from browser to browser, which may result in a lack of consistency in appearance from browser to browser.

Question 9. What are the limitations when serving XHTML pages?
Perhaps the biggest issue is the poor browser support XHTML currently enjoys. Internet Explorer and a number of other user agents cannot parse XHTML as XML. Thus, it is not the extensible language it was promised to be.

Question 10. How do you make comments without text being picked up by the browser?
Comments are used to explain and clarify code or to prevent code from being recognized by the browser. Comments start with “*” and end with ” –>“.

Question 11. What is the difference between linking to an image, a website, and an email address?
To link an image, use tags. You need to specify the image in quotes using the source attribute, src in the opening tag. For hyperlinking, the anchor tag, is used and the link is specified in the href attribute. Text to be hyperlinked should be placed between the anchor tags. Little known fact: href stands for “HYPERTEXT REFERENCE.” When linking to an email, the href specification will be “mailto:[email protected].”

Question 12. My hyperlink or image is not displaying correctly, what is wrong with it?
It could be any number of things, but the most common mistakes are leaving out a tag bracket or quote missing for href, src, or alt text may be the issue. You should also verify the link itself.

Question 13. What is the syntax difference between a bulleted list and a numbered list?
Bulleted lists use the < ul > tag, which stands for “unordered,” whereas < ol > is used to create an ordered list.
Explore Frequently Asked Full Stack Developer Interview Questions
Frontend Developers Interview Questions

Question 14. How absolute, relative, static, and fixed positions are different from each other?
Static: It is a default position, even if we do not specify any position or value for elements, the system automatically sets the default values, and they are unchangeable. The system follows first come first out strategy. That means whatever comes first that will be displayed first.
Syntax: position:static
Relative: If you want to change the position of the elements, you can use relative. When you are changing elements' positions to a relative, it changes the position of the elements by using the below attributes. Attributes are as follows
Alignment: In this attribute, you can give the values like top, bottom, right or left according to that element position changes.
Size: Mention in the pixels.
Let us consider one example below.





 

Two

 

One

 


Output
One
Two
Absolute: User can change the element position, and generally absolute will place relative to the parent. If a parent is not available to the page itself then default it placed as a relative position.
Syntax:
position:absolute
Fixed: It will place the relative element to the browser window or viewport. When scrolling happens viewport doesn’t change. So the position is fixed for the element.
Syntax:
position:fixed

Question 15. What is meant by a responsive website?
Any website that means to be responsive, when it fits any system screen resolution device types, looks good at any size, and is understandable to the user.

Question 16. Explain the difference between inline, inline-block, and block?
Block: It will always starts in the new line and fills the right and left horizontal space on the web page. It can add margins and padding to the page.
Examples of the Block are

 

 

 

,

tags.
Let us consider an example here:
.block-example
{
background-color:green;
Padding:20px;
}
2. Inline- Element: These elements do not start in the new line. They appear in the same line. In this, you cannot add space to top and bottom paddings to the page, but you can add space to the left and right on an inline element. Examples of inline elements are span, strong, img tags.
Let us consider an example here:
.block-example
{
background-color:green;
Padding:20px;
}
strong
{
background-color:white;
padding-left: 20px;
padding-right: 20px;
}
span
{
background-color:white;
padding-left: 20px;
padding-right: 20px;
}
3. Inline-block: In these elements are similar to inline elements, but padding and margins added on all four sides.
Let us consider an illustration over here.
.nav
{
background-color:#F0B27A;
Padding:20px;
list-style-type: none;
text-align: center;
}
.nav li
{
display: inline-block;
font-size: 20px;
padding-left:20px;
padding-right:20px;
}

Question 17. Does HTML need a compiler?
No, HTML need not have any compiler, because it is a front-end language, whereas Java, C, C+ need a compiler to convert the code into machine understandable language.

Question 18. What is the difference between a document and a window?
The window is the first thing that loads into the browser. It has properties like inner width, inner height, length, name.
The Document gets loaded inside the window object. It is similar to HTML, PHP, and other documents which are loaded into the browser and have properties like title, URL, cookies, etc.

Question 19. What is web accessibility?
Web accessibility means providing access to the website for differently-abled and disabled persons. So that disabled persons can understand, navigate, and interact with the web easily

Question 20. What is JavaScript hoisting?
This was a frequently asked UI Developer Interview question. To access the variables in javascript the first thing you need to do is declaring the variables. If variables are defined at the bottom of the script but JavaScript throws the variables before it is undefined. In JavaScript, only assigned variables are hoisted.

Question 21. Create an array in javascript with a list of 5 cities, assign that array to the variable, city?
var City= [New york, ‘Texas’, ‘Chicago’, ‘Hyderabad’, ‘Montreal’];

Question 22. How do you select all elements with the class of “Apple” in Jquery?
To select all elements with the class of “Apple’ in Jquery is

Question 23. Declare a new variable in Php equal to the number 6?
A variable in Php equal to the number 6 is $number = 6;

Question 24. How do you check if a variable has been set in Php?
To check the variable in PHP use: isset($var);

Question 25. How do you access a Get requests URL parameter with Php?
To access a Get Request URL parameter with the Php is $_GET[“turkey”]

Question 26. What is the difference between HTML and XHTML?
Html is a hypertext markup language where XHTML is an extensible hypertext markup language. Both languages are used to create web pages. XHTML is XML based while HTML is SGML based. Compare to HTML XHTML is strict and does not allow the users to get away with the lapses in coding and structures.
File extensions of HTML: .html, .htm
File extensions of XHTML: .xhtml, .xht, .xml, .html, .htm.

Question 27. What is the difference between local storage, session storage, and cookies?
Local storage: It allows to store of the data without expiry limits.
Cookies: It allows to the storage of the data within the client-server.
Session Storage: It stores the data when the window was opened.

Question 28. What can you do to increase page performance?
To increase the page performance, the following are a few steps.
Reduce image size.
Clear the cache.
Reduce the external HTTP requests.
Load the JavaScript asynchronously
Code your site for mobile.
Explore UI Developer Sample Resumes Download & Edit, Get Noticed by Top Employers!

Question 29. Describe the new elements to HTML?
To change some of the features in HTML new elements used, are semantic tags and multimedia and graphics tags. Semantic tags are a figure, header, footer, mark, and multimedia, and graphics tags are audio, canvas.

Question 30. Write about how floats work?
It pushes the element to the right or left. Float property has four values, and they are inherited, left, right, and none.

 

Related guide: Most Useful UI Developer Interview Questions and Answers (Technical)



ADVERTISEMENT