Add office photos
Employer?
Claim Account for FREE

Zedex Info Pvt Ltd

3.8
based on 10 Reviews
Filter interviews by

Sovereign Consulting Services Interview Questions and Answers

Updated 11 Aug 2024

Q1. How to centre 3 div vertically and horizontally using css

Ans.

To center 3 divs vertically and horizontally, use flexbox and align-items/justify-content properties.

  • Wrap the 3 divs in a parent container

  • Set the parent container's display property to flex

  • Set the parent container's align-items and justify-content properties to center

Add your answer

Q2. Input type used during form submission but not visible to the user

Ans.

Hidden input type is used during form submission

  • is used to include data in form submission without displaying it to the user

  • Commonly used for passing values like session tokens or tracking information

Add your answer

Q3. Difference between block and inline- block

Ans.

Block elements take up the full width available, while inline-block elements only take up as much width as necessary.

  • Block elements start on a new line and stack vertically

  • Inline-block elements can sit next to each other and wrap to a new line when necessary

  • Block elements have a default width of 100%

  • Inline-block elements have a default width of the content inside them

  • Examples of block elements include

    ,

    -

    ,

    ,

      ,
        ,

      1. Examples of inline-block elements include , ,

Add your answer

Q4. How to get URL params using javascript

Ans.

Use window.location.search or URLSearchParams to get URL params in JavaScript

  • Use window.location.search to get the query string portion of the URL

  • Use URLSearchParams to parse and extract individual parameters from the query string

  • Example: const params = new URLSearchParams(window.location.search); const paramValue = params.get('paramName');

Add your answer
Discover Sovereign Consulting Services interview dos and don'ts from real experiences

Q5. How to add background image

Ans.

To add a background image, use CSS background-image property.

  • Create a CSS class or ID for the element you want to add the background image to.

  • Use the background-image property to specify the URL of the image.

  • Set the background-size property to cover or contain the element.

  • Example: .container { background-image: url('image.jpg'); background-size: cover; }

Add your answer

Q6. Difference between flex and grid

Ans.

Flex is one-dimensional layout while Grid is two-dimensional layout.

  • Flex is used for creating flexible and responsive layouts.

  • Grid is used for creating complex and structured layouts.

  • Flex is best suited for small-scale layouts while Grid is best suited for large-scale layouts.

  • Flex is easier to learn and implement while Grid requires more advanced knowledge.

  • Flex is supported by older browsers while Grid has limited support in older browsers.

Add your answer

Q7. Difference between position and relative

Ans.

Position sets an element's position relative to its parent, while relative sets an element's position relative to its normal position.

  • Position: sets an element's position relative to its parent container

  • Relative: sets an element's position relative to its normal position

  • Positioned elements are taken out of the normal flow of the document

  • Relative elements are still in the normal flow of the document

  • Positioned elements can be moved outside of their parent container

  • Relative elem...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Front end Developer Interview Questions from Similar Companies

3.7
 • 19 Interview Questions
3.9
 • 15 Interview Questions
3.0
 • 14 Interview Questions
3.6
 • 14 Interview Questions
3.7
 • 12 Interview Questions
3.8
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter