0% found this document useful (0 votes)
2 views2 pages

Mock Java&Python

The document outlines a series of HR and programming interview questions for candidates. It includes general HR questions, programming challenges, and specific questions related to Java and Python. The content serves as a guide for interview preparation across various technical and behavioral aspects.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Mock Java&Python

The document outlines a series of HR and programming interview questions for candidates. It includes general HR questions, programming challenges, and specific questions related to Java and Python. The content serves as a guide for interview preparation across various technical and behavioral aspects.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd

HR Question

Can you introduce yourself? / Tell me about yourself.


Why should we hire you?
What are your strengths and weaknesses?
Why do you want this job?
What motivates you to work?
Where do you see yourself in 5 years?
Tell me about a challenge you faced and how you handled it.
 How do you handle criticism? And How do you handle pressure or failure?
Do you have any questions for us?

Programming Questions:

1. Check whether the given number is palindrome or not.

2. Reverse a string

3. Print this pattern

23

456

7 8 9 10

4. Count the number of digits in a given number

5. Print the first unique character in a string

6. Print Frequency of each character in a string

[Link] the nearest prime number for a given number

[Link]/Right Rotate the array k times

9. Find minimum and maximum element in a sorted array

10. Check if two strings are anagram of each other

Java and Python - Interview Questions

Java

1. What is Java?
2. What are the main features of Java?
3. Why java is platform independent?
4. Is java 100% or purely object oriented and justify your answer?
5. Difference between JDK, JRE, and JVM?
6. What is bytecode?
7. What is the default value of a local variable?
8. Is String a data type in java and justify your answer?
9. Can we declare multiple public classes in one java file?
10. Can you explain the statement “[Link]() and public static void main(String args[])”?
11. Is String mutable or immutable?
12. Can switch be used with String values?
13. How will you compare two strings?
14. What is final variable?
15. Difference between & and &&, | and || operators?
16. What does [Link](0) does and in which package it is available?
17. What are literals in Java?
18. What is type casting? Explain implicit and explicit casting.
19. What is ternary operator?
20. What is the instanceof operator used for?

Python

1 What is meant by static and dynamic typing?


2 What is the difference between interpreter and compiler? Explain which type python belongs to
3 Explain mutable and immutable data types in python
4 What is the difference between set and dictionary?
5 What is the difference between a list and tuple?
6 What is list comprehension? Give an example
7 What happens when you assign list2 = list1?
8 Explain slicing function in python
9 What is the dfiference between a list and a dictionary
10 What is the use of pass statement in python. Give an example
11 How is exception handled in Python?

12 What is a lambda function? Give an example


13 How are arguments passed to functions - by value or by reference in Python?
14 Can we pass a function as an argument in python? Give an example
15 Explain try except block in python with an example
16 What are the difference variable scopes in python
17 What is a DocString in python
18 what are itertools?
19 Explain three python collections functions
20 What is range and xrange function?

You might also like