Add office photos
Engaged Employer

Ksolves India Limited

2.9
based on 116 Reviews
Filter interviews by

Ciklum Interview Questions and Answers

Updated 8 Mar 2024
Popular Designations

Q1. find a number that not present in array in O(N) time complexity array contain only 0 to n numbers

Ans.

Use bitwise XOR operation to find the missing number in O(N) time complexity.

  • Iterate through the array and XOR all the elements with their indices and the array length.

  • The missing number will be the result of XORing all the elements with their indices and the array length.

Add your answer

Q2. how to reverse a string without using extra space

Ans.

Use two pointers to swap characters in place

  • Initialize two pointers, one at the beginning of the string and one at the end

  • Swap characters at the two pointers and move them towards each other until they meet or cross

  • Repeat the process until the entire string is reversed

Add your answer

Q3. how to connect mongodb with database

Ans.

To connect MongoDB with a database, you need to use the MongoDB URI and a MongoDB client library.

  • Use the MongoDB URI to specify the connection details such as host, port, username, password, and database name

  • Install a MongoDB client library like Mongoose for Node.js or pymongo for Python

  • Use the client library to establish a connection to the MongoDB database and perform CRUD operations

Add your answer

Q4. write a program a string is Anagram or not

Ans.

Program to check if a string is an Anagram or not

  • Create a function that takes in two strings as input

  • Sort the characters in both strings and compare if they are equal

  • Return true if they are anagrams, false otherwise

View 1 answer
Discover Ciklum interview dos and don'ts from real experiences

Q5. what is event listener

Ans.

An event listener is a function that waits for a specific event to occur and then triggers a response.

  • Event listeners are commonly used in web development to handle user interactions like clicks, keypresses, etc.

  • They are attached to specific elements and listen for events to occur on those elements.

  • Once the event occurs, the listener executes a callback function to respond to the event.

  • Example: Adding a click event listener to a button element to perform an action when the bu...read more

Add your answer

Q6. what is polymorphism

Ans.

Polymorphism is the ability of a function or method to behave differently based on the object it is acting upon.

  • Polymorphism allows objects of different classes to be treated as objects of a common superclass.

  • There are two types of polymorphism: compile-time (method overloading) and runtime (method overriding).

  • Example: Inheritance in object-oriented programming languages like Java allows for polymorphism.

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

Interview Process at Ciklum

based on 4 interviews in the last 1 year
1 Interview rounds
Aptitude Test Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

3.7
 • 33 Interview Questions
3.0
 • 25 Interview Questions
3.7
 • 22 Interview Questions
3.5
 • 14 Interview Questions
4.0
 • 14 Interview Questions
3.9
 • 12 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