0% found this document useful (0 votes)
24 views

Possible TR Questions

Help to interview

Uploaded by

vv630208
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Possible TR Questions

Help to interview

Uploaded by

vv630208
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

JAVA Questions:

1. What's the difference between the JDK, JRE, and JVM?


2. How does the 'public static void main(String[] args)' method work?
3. What is bytecode in Java?
4. Differentiate between overloading and overriding
5. What is the Java ClassLoader?
6. Can we override static methods in Java?
7. How does the 'finally' block differ from the 'finalize' method in Java?
8. What is the difference between an abstract class and an interface?
9. Explain the concept of Java packages
10. What are Java annotations?
11. How does multi-threading work in Java?
12. Use throw to raise an exception
13. Use throws to declare exceptions
14. What is the significance of the transient keyword?
15. How do you ensure thread safety in Java?
16. Explain the Singleton pattern
17. What are Java Streams?
18. What are the primary differences between ArrayList and LinkedList?
19. How do HashSet, LinkedHashSet, and TreeSet differ?
20. Differentiate between HashMap and ConcurrentHashMap
21. Describe the contract between hashCode() and equals() methods
22. What is Java reflection?
23. How do you create a custom exception in Java?
24. What is the difference between a checked and unchecked exception?
25. What are generics? Why are they used?
26. Explain the concept of Java Lambda Expressions
27. What is the diamond problem in inheritance?
28. Describe the difference between fail-fast and fail-safe iterators
29. What is type erasure in Java generics?
30. Describe the differences between StringBuilder and StringBuffer
31. What is the volatile keyword in Java?
32. Explain the Java memory model
33. What is the purpose of the default keyword in interfaces?
34. How does switch differ in Java 7 and Java 8?
35. Explain the concept of Autoboxing and Unboxing
36. Describe the @FunctionalInterface annotation
37. How can you achieve immutability in Java?
38. What is the decorator pattern?
39. Explain the Java I/O streams
40. How does the garbage collector work in Java?
41. What are the benefits of using Java NIO?
42. Explain the Observer pattern
43. What is the purpose of Java's Optional?
44. Explain Java's try-with-resources
45. Explain the difference between C++ and Java
46. What is polymorphism? Provide an example
47. How can you avoid memory leaks in Java?
48. Explain the purpose of Java's synchronized block
49. Explain the concept of modules in Java
50. Can you write me a Java program to swap two numbers using the third variable?
51. What's an abstract class? How are abstract classes similar or different in Java from C++?
52. Can you write a Java program to swap two numbers without using the third variable for
me?
53. What's object cloning?
54. Can you write me a Java program to find whether a number is prime?
55. Will you write a Java program to find the duplicate characters in a string?
56. What are the differences between HashMap and HashTable in Java?
57. How's inheritance in C++ different from Java?
58. Can you write me a Selenium code to switch to the previous tab?
59. Can you overload or override static methods in Java?
60. What's the difference between implementing and extending classes in Java?
61. What's a variable?
62. How can we declare a variable?
63. What's the use of casting in Java?
64. List some good practices for creating methods in a Java class.
65. Enumerate the syntaxes that can create a main() method for application development in
Java.
66. What are the different types of Java comments?
67. What's a switch statement in Java?
68. How many types of Java loops are there?
69. Describe the different types of Java looping constructs and how you can use them.
70. How do you define a nested class in Java?
71. Can you explain the purpose of a constructor in Java class?
72. What's an exception and how do you handle them in Java?
73. What's the difference between a thread and a process?
74. When do you use an anonymous inner class?
75. What's the purpose of anonymous inner classes?
76. What are the different types of iterators in Java?
77. How do you create an iterator in Java?
78. What's the difference between Hashtable, TreeMap and TreeSet in Java?
79. How can you optimize code to help improve performance in Java applications?
80. Which method do you use to control system resources in multithreaded environments in
Java programming language?
81. Explain how to handle errors using try-catch blocks in your code.
82. What is the purpose of Java class?
83. Write a program to sort a sequence of numbers in ascending order.
84. Using Java 8 date-time library in CLASSPATH (package private) file, write a program that
shows how you can add time to any time with respect to midnight on Jan. 1, 2000.
85. Write a program that accepts comma-separated strings, sorts the strings in ascending
order, and outputs the concatenated string of sorted strings.
86. Write a program that accepts comma-separated strings, checks for duplicates and
returns a message with 1 if there's a duplicate.
87. Write a program that can count the number of occurrences of consecutive digits in a
sequence from 1 to 10.
88. Write a program to find out how many times two given characters appear in any text file.
89. How do we find the prime numbers in a sequence?
90. What's Big O notation?
91. Write a program that can process two sequences of strings and return sorted sequences.
92. Write a program to reverse the characters of a string.
93. Write a program to print all unique words, excluding the same words.
94. What is the difference between a default constructor and a parameterized constructor?
95. Can a constructor call method?
96. What happens if you don't provide a no-argument constructor in a class with other
constructors?
97. Can a constructor be static?
98. What is the final variable, final method and final class?
99. What is the difference between wait() and sleep() method?
100. What is the synchronization?
Python Questions:

1. Write a Python Code to Check if a Number is Odd or Even.


2. Write a Python code to find the maximum of two numbers.
3. Write a Python code to check prime numbers.
4. Write a Python factorial program without using if-else, for, and ternary operators.
5. Write a Python code to calculate the square root of a given number.
6. Write a Python code to calculate the area of a triangle.
7. Write a Python code to check the armstrong number.
8. Write a Python code to check prime numbers.
9. Write a Python code to display a multiplication table using for loop.
10. Write a Python code to swap two variables.
11. How do you debug a Python program?
12. What is <Yield> Keyword in Python?
13. How to convert a list into a string?
14. How to convert a list into a tuple?
15. How to convert a list into a set?
16. How to count the occurrences of a particular element in the list?
17. What is NumPy array?
18. How can you create Empty NumPy Array In Python?
19. What is a negative index in Python?
20. How do you Concatenate Strings in Python?
21. What kinds of applications can Python be used for?
22. What do you mean by Python literals?
23. Describe the Python Functions?
24. What is zip() capability in Python?
25. What is Python's parameter passing system?
26. In Python, how do you overload methods or constructors?
27. What is the difference between remove() function and del statement?
28. What is swapcase() function in Python?
29. How to remove whitespaces from a string in Python?
30. How to remove leading whitespaces from a string in the Python?
31. Why do we use join() function in Python?
32. Give an example of shuffle() method?
33. What is tuple in python?
34. Which are the file related libraries/modules in Python?
35. How to create a Unicode string in Python?
36. How is memory managed in Python?
37. What is the Python decorator?
38. What is the namespace in Python?
39. What are iterators in Python?
40. What is a generator in Python?
41. What is slicing in Python?
42. What is a dictionary in Python?
43. What is Pass in Python?
44. Explain docstring in Python?
45. What is a negative index in Python and why are they used?
46. What is pickling and unpickling in Python?
47. Which programming language is a good choice between Java and Python?
48. What is the usage of help() and dir() function in Python?
49. How to send an email in Python Language?
50. What is the difference between Python Arrays and lists?
51. What is self in Python?
52. What is PYTHONPATH?
53. What are modules in Python? Name a few regularly utilized worked in modules in
Python?
54. What is the difference between range & xrange?
55. What benefits do NumPy exhibits offer over (nested) Python records?
56. Mention what the Django templates consist of.
57. Explain the use of session in Django framework?
58. What is a ‘break, continue, and pass’ in Python?
59. What is PIP?
60. What is Polymorphism in Python?
61. What are Function Annotations in Python?
62. What are unit tests in Python?
63. Is Dictionary Lookup Faster than List Lookup? Why?
64. Can you clarify the distinctions between the ‘pop()’, ‘remove()’, and ‘del’ operations
when working with Python lists?
65. What is the ‘join()’ method in Python Strings? How does it function?
66. What Does Negative Indexing Mea
67. What is the difference between .py and .pyc files?
68. What does *args and **kwargs mean?
69. How do you create a class in Python?
70. What do you know about pandas?
C Language Questions:
1. Why is C known as a mother language?
2. What are the features of the C language?
3. What is the use of printf() and scanf() functions?
4. What is the difference between the local variable and global variable in C?
5. What is the use of a static variable in C?
6. What is the use of the function in C?
7. What is the difference between call by value and call by reference in C?
8. What is recursion in C?
9. What is an array in C?
10. Explain about types of arrays.
11. What is a pointer in C?
12. What is the usage of the pointer in C?
13. What is a NULL pointer in C?
14. What is a far pointer in C?
15. What is dangling pointer in C?
16. What is pointer to pointer in C?
17. What is static memory allocation?
18. What is dynamic memory allocation?
19. What functions are used for dynamic memory allocation in C language?
20. What is the difference between malloc() and calloc()?
21. What is the structure?
22. What is a union?
23. What is an auto keyword in C?
24. What is the purpose of sprintf() function?
25. Can we compile a program without main() function?
26. What is a token?
27. What is command line argument?
28. What is the difference between getch() and getche()?
29. What is the newline escape sequence?
30. What is the difference between near, far and huge pointers?
31. What is the maximum length of an identifier?
32. What is typecasting?
SQL Questions:

1. What is SQL?
2. What are SQL dialects? Give some examples.
3. What are the main applications of SQL?
4. What is an SQL statement? Give some examples.
5. What types of SQL commands (or SQL subsets) do you know?
6. Give some examples of common SQL commands of each type.
7. What is a database?
8. What is DBMS, and what types of DBMS do you know?
9. What is RDBMS? Give some examples of RDBMS.
10. What are tables and fields in SQL?
11. What is an SQL query, and what types of queries do you know?
12. What is a subquery?
13. What types of SQL subqueries do you know?
14. What is a constraint, and why use constraints?
15. What SQL constraints do you know?
16. What is a join?
17. What types of joins do you know?
18. What is a primary key?
19. What is a unique key?
20. What is a foreign key?
21. What is an index?
22. What types of indexes do you know?
23. What is a schema?
24. What is a SQL comment?
25. What is a SQL operator?
26. What types of SQL operators do you know?
27. What is an alias?
28. What is a clause?
29. What are some common statements used with the SELECT query?
30. How to create a table?
31. How to update a table?
32. How to delete a table from a database?
33. How to get the count of records in a table?
34. How to sort records in a table?
35. How to select all columns from a table?
36. How to select common records from two tables?
37. What is the DISTINCT statement and how do you use it?
38. What are entities? Give some examples.
39. What are relationships? Give some examples.
40. What is NULL value? How is it different from zero or a blank space?
41. What is a function in SQL, and why use functions?
42. What aggregate functions do you know?
43. What scalar functions do you know?
44. What are case manipulation functions? Give some examples.
45. What are character manipulation functions? Give some examples.
46. What is the difference between local and global variables?
47. What is the default data ordering with the ORDER BY statement, and how do you
change it?
48. What set operators do you know?
49. What operator is used in the query for pattern matching?
50. What is the difference between a primary key and a unique key?
51. What is the order of appearance of the common statements in the SELECT query?
52. In which order the interpreter executes the common statements in the SELECT
query?
53. What is a view, and why use it?
54. Can we create a view based on another view?
55. Can we still use a view if the original table is deleted?
56. What types of SQL relationships do you know?
57. What are the possible values of a BOOLEAN data field?
58. What is normalization in SQL, and why use it?
59. What is denormalization in SQL, and why use it?
60. What is the difference between renaming a column and giving an alias to it?
61. What is the difference between nested and correlated subqueries?
62. What is the difference between clustered and non-clustered indexes?
63. What is the CASE() function?
64. What is the difference between the DELETE and TRUNCATE statements?
65. What is the difference between the DROP and TRUNCATE statements?
66. What is the difference between the HAVING and WHERE statements?
67. How do you add a record to a table?
68. How to delete a record from a table?
69. How to add a column to a table?
70. How to rename a column of a table?
71. How to delete a column from a table?
72. How to select all even or all odd records in a table?
73. How to prevent duplicate records when making a query?
74. How to insert many rows in a table?
75. How to find the nth highest value in a column of a table?
76. How to find the values in a text column of a table that start with a certain letter?
77. How to find the last id in a table?
78. Explain about ACID properties.
79. What is the difference between the WHERE and HAVING clauses?
80. What is SQL Injection?

You might also like