Add office photos
Employer?
Claim Account for FREE

Alcon

3.7
based on 414 Reviews
Filter interviews by

Jobility Interview Questions and Answers

Updated 5 Feb 2024

Q1. write a program to show if a program is prime or not

Ans.

A program to determine if a number is prime or not.

  • A prime number is a number greater than 1 that has no positive divisors other than 1 and itself.

  • To check if a number is prime, iterate from 2 to the square root of the number and check if any of them divides the number evenly.

  • If any divisor is found, the number is not prime. Otherwise, it is prime.

Add your answer

Q2. what is mutable and immuatble data types give example

Ans.

Mutable data types can be modified after creation, while immutable data types cannot be modified.

  • Examples of mutable data types: lists, sets, dictionaries

  • Examples of immutable data types: strings, tuples, frozensets

Add your answer

Q3. what is the difference between dictionary list and tuple

Ans.

A dictionary is an unordered collection of key-value pairs, while a list is an ordered collection of elements.

  • Dictionaries are accessed by keys, while lists are accessed by indices.

  • Dictionaries are mutable, while tuples are immutable.

  • Dictionaries can have duplicate values, but not duplicate keys.

  • Lists can contain elements of different data types, while tuples can contain elements of the same or different data types.

Add your answer

Q4. write a program to add two numbers without using the "+" operator at all

Ans.

Program to add two numbers without using the '+' operator.

  • Use bitwise operators like XOR and AND to perform addition without '+' operator.

  • XOR the two numbers to get the sum without carry.

  • AND the two numbers and left shift the result to get the carry.

  • Repeat the process until carry becomes zero.

Add your answer
Discover Jobility interview dos and don'ts from real experiences

Q5. find the second largest number in an array

Ans.

Find the second largest number in an array.

  • Sort the array in descending order

  • Return the element at index 1

Add your answer

Q6. is a dictionary mutable

Ans.

Yes, a dictionary is mutable in Python.

  • A dictionary in Python can be modified by adding, updating, or deleting key-value pairs.

  • The values associated with keys in a dictionary can be changed.

  • Dictionaries are mutable objects, meaning they can be modified in-place.

  • The 'update()' method can be used to add or update multiple key-value pairs at once.

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

Interview Process at Jobility

based on 2 interviews
Interview experience
3.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Intern Interview Questions from Similar Companies

3.8
 • 25 Interview Questions
3.9
 • 19 Interview Questions
3.9
 • 16 Interview Questions
3.8
 • 13 Interview Questions
4.2
 • 11 Interview Questions
4.4
 • 11 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

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