Add office photos
Engaged Employer

KJ System

3.6
based on 57 Reviews
Filter interviews by

Afcons Infrastructure Interview Questions and Answers

Updated 23 Dec 2024

Q1. what is the CSS style and Html difference

Ans.

CSS is used to style HTML elements, while HTML is used to structure content on a webpage.

  • HTML provides the structure and content of a webpage, while CSS provides the visual styling.

  • HTML uses tags to define elements, while CSS uses selectors to target those elements.

  • CSS can be used to change the color, font, size, and layout of HTML elements.

  • HTML is used to create the skeleton of a webpage, while CSS is used to make it look visually appealing.

Add your answer

Q2. what is arrays

Ans.

Arrays are a collection of elements of the same data type, stored in contiguous memory locations.

  • Arrays can store multiple values of the same type.

  • Elements in an array are accessed using their index.

  • Arrays have a fixed size, which is determined at the time of declaration.

  • Arrays can be used to store and manipulate data efficiently.

  • Example: string[] names = {"John", "Jane", "Mike"};

View 1 answer

Q3. what is constructor

Ans.

A constructor is a special method that is used to initialize objects in a class.

  • Constructors have the same name as the class they belong to.

  • They are called automatically when an object is created.

  • Constructors can have parameters to initialize object properties.

  • They can be overloaded to have multiple versions with different parameters.

  • Example: class Car { Car() { // constructor code } }

View 1 answer

Q4. What is a Style sheet in CSS

Ans.

A style sheet is a document containing CSS rules that define how HTML elements should be displayed on a web page.

  • Style sheets can be written in a separate file or embedded within an HTML document.

  • CSS rules consist of a selector and a declaration block containing one or more property-value pairs.

  • Selectors can target specific HTML elements, classes, IDs, or attributes.

  • CSS can be used to control layout, typography, colors, and other visual aspects of a web page.

Add your answer
Discover Afcons Infrastructure interview dos and don'ts from real experiences
Asked in
SDE Interview

Q5. how to find middel element of linked list

Ans.

To find the middle element of a linked list, use the slow and fast pointer technique.

  • Initialize two pointers, slow and fast, at the head of the linked list.

  • Move the slow pointer by one step and the fast pointer by two steps until the fast pointer reaches the end of the list.

  • The position of the slow pointer will be the middle element of the linked list.

Add your answer

Q6. oops concepts in java

Ans.

OOP concepts in Java include inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance allows a class to inherit properties and behavior from another class.

  • Encapsulation involves bundling data and methods that operate on the data into a single unit.

  • Polymorphism allows objects to be treated as instances of their parent class.

  • Abstraction hides the implementation details and only shows the necessary features to the outside world.

Add your answer

Q7. Types of inheritance

Ans.

Types of inheritance in object-oriented programming

  • Single inheritance: a subclass inherits from only one superclass

  • Multiple inheritance: a subclass inherits from multiple superclasses

  • Multilevel inheritance: a subclass inherits from a superclass, which in turn inherits from another superclass

  • Hierarchical inheritance: multiple subclasses inherit from a single superclass

Add your answer

Q8. what is HTML and css

Ans.

HTML and CSS are the building blocks of web development.

  • HTML stands for Hypertext Markup Language and is used to create the structure and content of web pages.

  • CSS stands for Cascading Style Sheets and is used to style and layout web pages.

  • HTML and CSS work together to create visually appealing and functional websites.

  • HTML uses tags to define elements such as headings, paragraphs, and images.

  • CSS uses selectors to target HTML elements and apply styles such as color, font, and l...read more

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Afcons Infrastructure

based on 3 interviews in the last 1 year
Interview experience
4.3
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions from Similar Companies

3.9
 • 1.4k Interview Questions
3.6
 • 377 Interview Questions
3.8
 • 265 Interview Questions
3.8
 • 209 Interview Questions
4.0
 • 192 Interview Questions
3.6
 • 165 Interview Questions
View all
Top KJ System Interview Questions And Answers
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