×

Top 15 SVG Interview Questions for 2024

1) What is SVG?

SVG stands for Scalable Vector Graphics, It is XML based format used to draw dimentional vector images. It is a W3C standard. SVG supports all image formats.

2) What are the advantages of SVG?

Advantages of SVG are:
  • Supports any Text Editor to create and edit SVG images
  • SVG images are Highly Scalable
  • Open Standard
  • Printing quality is good at any resolution
  • Here, images are searchable and indexable

3) What are the common Shapes used in SVG?

Shapes used in SVG are:
  • rectangle
  • circle
  • ellipse
  • line
  • polygon
  • polyline
  • path

4) What is anti-aliasing in SVG?

It allows the images to soften the sharp edges. By increasing the number of pixels, the amount of anti-aliasing is increased. 2x and 4x multi-sampling needs 2 and 4 sample per pixel respectively.

5) What is Gradient?

It refers to smooth transition of one color to another color. Two types of Gradients are:
  • Linear Gradients
  • Radial Gradients

6) What are the types of attributes used in Gradients?

Types of attributes are:
gradientUnits: It is used to define the coordinate system for the various length values within the gradient

x1: x-axis co-ordinate of the gradient vector

y1: y-axis co-ordinate of the gradient vector

x2: x-axis co-ordinate of the gradient vector

y2: y-axis co-ordinate of the gradient vector

spreadMethod: spreading the gradient within graphics element

xlink: href: refer to another gradient

7) Which tag is used to draw a circle in SVG?

"circle" tag is used.

8) Which tag is used to draw an ellipse in SVG?

"ellipse" tag is used.

9) Which command of path element creates a line?

"L" command.

10) Which command of path element closes the path?

"Z" command.

11) How will you embed an SVG image in HTML page?

There are three ways to embed an SVG image are:
  • By using iframe
  • By using embed tag
  • By using object tag

12) Which stoke property is used to create dashed lines?

"stroke-dasharray" property.

13) What are the types of commonly used filters?

Commonly used filters are:
feColorMatrix feDisplacementMap feMorphology feDistantLight
feComponentTransfer feFlood feOffset - filter for drop shadows fePointLight
feComposite feGaussianBlur feSpecularLighting feSpotLight
feConvolveMatrix feImage feTile
feDiffuseLighting feMerge feTurbulence

14) Can we write JavaScript functions in SVG?

Yes, we can write javascript functions in SVG because SVG supports JavaScript functions.

15) Which element of SVG is used to create links?

<a> element is used.

Related Topics

Top 15 KnockoutJS Interview Questions for 2024

1) What is KnockoutJS? It is a JavaScript library which is based on MVVM pattern that helps developers in building rich and responsive websites. 2) Who is the author of KnockoutJS? Steve Sanderson is...

2 minutes read.

Top 15 PhantomJS Interview Question for 2024

1) What is PhantomJS? PhantomJS is a lightweight headless scripted browser built on WebKit. It is used for automation web page interaction. 2) Why it is called as headless browser? PhantomJS called as...

4 minutes read.

Top 15 Struts Interview Questions for 2024

1) What are the Features of Struts 2? Features of Struts 2 are: Configurable MVC components POJO based actions AJAX support Integration support Various Result Types Various Tag support Theme and...

3 minutes read.

Top 30 Go Programming Language Interview Questions for 2024

1) What is Go Programming language? Go programming language is an open source programming language. It is developed at Google in 2007. It is designed for system programming language. 2) Who designed...

4 minutes read.

Top 30 Fortran Interview Questions for 2024

1) What is Fortran? Fortran is general purpose, high-level programming language which is used for numeric and scientific computing. 2) What are the features of Fortran programming language? Features of Fortran language are: ...

4 minutes read.

Top 15 Xamarin Interview Questions for 2024

1) What is Xamarin? Xamarin is a .NET framework. It allows to create an application that run on multiple platforms. Xamarin Tutorial uses C# language and .NET framework to deliver native...

2 minutes read.

Top 30 FuelPHP Framework Interview Questions for 2024

1) What is FuelPHPFramework? FuelPHP Framework is an open source web application and written in PHP scripting language. It is based on the HMVC (Hierarchical Model View Controller) design pattern. It was released...

6 minutes read.

Top 30 Core Java Interview Questions for 2024

1. What is the difference between HashMap and Hashtable in Java? Ans. S.No. HashMap Hashtable 1. ...

6 minutes read.

Top 30 Web Service Interview Questions for 2024

1) What is a Web Service? Web service is a client server application or component. It is used for communication. It is way to communicate between two devices over network. In another word...

5 minutes read.

SSRS Interview Questions

1. What is SSRS? The Microsoft SQL Server Reporting Service (SSRS) is a server-based reporting platform. It allows you to produce structured reports. The reports are generally represented in the form of data, graph,...

5 minutes read.

Top 15 RESTful Web Services Interview Question for 2024

1) What is REST? REST is web standards based architecture and stands for REpresentational State Transfer. It uses HTTP Protocol for data communication. Here, everything is a resource. 2) What are the HTTP methods used...

2 minutes read.

Top 15 JCL (Job Control Language) Interview Questions for 2024

1) What is JCL? JCL refers to Job Control Language. It is a command language which describes job (unit of work) for the Multiple Virtual Storage (MVS) operating system. It is...

3 minutes read.

Top 13 SAS Interview Questions for 2024

1. What is SAS and its functions? SAS (Statistical Analysis System) is statistical software designed by SAS Institute in 1960 for data inspection and report writing. SAS runs on Windows, UNIX...

5 minutes read.

Top 15 Servlet Interview Questions for 2024

1) What is Servlet? It is a technology used to create web applications. It is a web component which is used to create dynamic web pages. It consists of many interfaces and classess...

2 minutes read.

Top 30 TypeScript Interview Questions for 2024

1) What is TypeScript? TypeScript is an object-oriented and compiled language. TypeScript is also known as a set of tools. TypeScript is used for application-scale development. 2) What are the features of TypeScript? Features of...

4 minutes read.

Top 22 MariaDB Interview Question for 2024

1) What is MariaDB? It is a community based database devoloped by MySQL Devolopers. It provides same features as MySQL also, can be said that it is a replacement of MySQL. 2)...

3 minutes read.

Top 15 Framework7 Interview Questions for 2024

1) What is Framework7? Framework7 is an open source mobile HTML framework. It is used todevelop hybrid mobile apps for iOS and Android devices. 2) Why, framework7 is popular? There are various reasons...

8 minutes read.

Top 26 CouchDB interview questions for 2024

1) What is CouchDB? CouchDB is a document typed database server which can be accessed through RESTful JSON API. It is a schema free and Ad-hoc database with a flat address...

4 minutes read.

Top 10 GWT Interview Questions for 2024

1) What is Google Web Toolkit (GWT)? GWT (Google Web Toolkit) is a development toolkit. It is used to develop Ajax web applications using Java. GWT compiler translates Java sour ce...

2 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.