Question:- What are some of the properties of transitions in CSS3?
Answer:- Transitions in CSS3 are easy to use, and they provide users with rapid and efficient animation effects. The four main properties present in the transitions are: • transition-delay • transition-duration • transition-property • transition-timing-function
Question:- What is the use of pseudo-classes in CSS?
Answer:- Pseudo-classes are used as a popular technique in CSS to change the style of an element when this element changes its state. There are numerous examples of when you use a pseudo-class: • For the style change when the mouse moves over the element • For out-of-focus animations • For providing styles for external links
Question:- What is the use of media queries in CSS3?
Answer:- Media queries are used to define styles in CSS, which are responsive based on a variety of shapes and sizes of the viewing window. They are used to adjust the following entities: • Height • Width • Viewport • Resolution • Orientation
Question:- Why is float used in CSS?
Answer:- Float is a popular property in CSS to control the layout and position of an element on a web page. Any element can be placed on the web page as per requirement. Consider the following example: div { float: right; } Here, the contents of div will be placed on the right side of the screen.
Question:- Why is float used in CSS?
Answer:- Float is a popular property in CSS to control the layout and position of an element on a web page. Any element can be placed on the web page as per requirement. Consider the following example: div { float: right; } Here, the contents of div will be placed on the right side of the screen.
Question:- What is the meaning of long polling in Web Development?
Answer:- Long polling is a development pattern that is used to emulate a data push operation from a server to a client machine. When long polling is operational, the client sends in a request to the server, and the data is pushed. The connection will timeout only when the data is sent to the client or after the timeout criteria are met.
Question:- What are some of the Web Development technologies that you know?
Answer:- This question is very common in a Web Development interview. The answer is based on your learning, experience, and proficiency in this field. However, a good Web Developer will have profound working skills in any of the following technologies: • HTML • CSS • JavaScript • SQL • Python • PHP
Question:- What is the difference between cookies and local storage?
Answer:- Cookies • Cookie data is accessible for both the client and the server • Cookies have an expiry time, and data gets deleted post expiration Local Storage • Data is stored only on the local browser in the client-side machine • There is no expiry in local storage unless the data is manually deleted
Question:- What is the difference between XHTML and HTML?
Answer:- XHTML • Tags should be in lowercase • Tags should be closed once opened • Attributes must be enclosed in double quotes HTML • It is not case sensitive • Open-ended tags can be used • Attributes can be used without quotation marks
Question:- What are the various data types present in JavaScript?
Answer:- JavaScript supports the following data types: • Boolean • Number • Object • Undefined • Null • String • Function
Question:- What are the types of popup boxes present in JavaScript?
Answer:- There are three types of dialog boxes, which are used in JavaScript: • Alert: Presents users with a message and an Ok button • Confirm: Gives the users a window with Ok and Cancel buttons • Prompt: Shows the user input, alongside Ok and Cancel buttons
Question:- What is the difference between < window.onload> and < onDocumentReady>?
Answer:- The < window.onload> event is not called until a page is completely loaded with the entire styling from CSS and images. The event does add a bit of delay when rendering a web page. With the < onDocumentReady> event, it will wait only till the DOM is initialized and will begin the event action. This ensures to reduce any delays in actions.
Question:- How is type conversion handled in JavaScript?
Answer:- JavaScript supports automatic type conversion. Since it is weakly typed, you can pass a function as an argument into another function easily. This ensures that there are no errors or data type-associated warnings as values get converted to the required data type automatically.
Question:- What is the meaning of the scope of a variable in JavaScript?
Answer:- Scope refers to the accessibility of functions and underlying variables in the running environment. There are two scopes supported in JavaScript: • Local scope: Here, values and functions declared inside the same function can only be accessed within that function and not outside it. • Global scope: If a variable is declared as global, it can be accessed from anywhere in the application.
