Internshala
10+ Tasklance Interview Questions and Answers
Given a linked list having two pointers in each node. The first one points to the next node of the list, however, the other pointer is random and can point to any node of...read more
A thief wants to loot houses. He knows the amount of money in each house. He cannot loot two consecutive houses. Find the maximum amount of money he can loot.
Input Format :
The first line of input c...read more
Q3. What is the Execution Order in SQL Queries?
SQL queries are executed in a specific order to ensure accurate results.
SQL queries are executed in the following order: FROM, WHERE, GROUP BY, HAVING, SELECT, ORDER BY.
The FROM clause specifies the tables involved in the query.
The WHERE clause filters the rows based on specified conditions.
The GROUP BY clause groups the rows based on specified columns.
The HAVING clause filters the grouped rows based on specified conditions.
The SELECT clause selects the columns to be displaye...read more
Q4. Which machine learning models did use see and why?
I have experience with various machine learning models such as linear regression, decision trees, random forests, and neural networks.
Linear regression is used for predicting continuous outcomes.
Decision trees are used for classification and regression tasks.
Random forests are an ensemble method that combines multiple decision trees for improved accuracy.
Neural networks are used for complex pattern recognition and prediction tasks.
Q5. Introduce Yourself,Write a code to find repeative characters in a String
I am a software engineering student with a passion for coding. Here is a code to find repetitive characters in a string.
Iterate through the characters in the string and store their occurrences in a HashMap.
Check the HashMap for characters with occurrences greater than 1 to find repetitive characters.
Return the repetitive characters as an array of strings.
Design a website like amazon.
Q7. What is the difference between an activity and fragement in an Android application?
Activity is a single screen with a user interface, while Fragment is a portion of the user interface in an activity.
Activity is a standalone component that can be launched by an application, while Fragment is a reusable component that can be added to an activity.
An activity can contain multiple fragments, but a fragment cannot contain multiple activities.
Fragments are used to create a flexible and dynamic UI, while activities are used to manage the lifecycle and navigation of...read more
Q8. What is Left Join?
Left Join is a type of join operation in SQL that returns all rows from the left table and the matched rows from the right table.
Left Join combines rows from two tables based on a related column between them.
It includes all rows from the left table, even if there are no matches in the right table.
If there are no matches, NULL values are included for columns from the right table.
Example: SELECT * FROM table1 LEFT JOIN table2 ON table1.id = table2.id;
Q9. The office is located in Gurgaon, will you be able to travel and reach at 9:30 from Monday to Friday?
Yes, I will be able to travel and reach the office in Gurgaon at 9:30 from Monday to Friday.
I am located in a nearby area and can easily commute to Gurgaon.
I have a reliable mode of transportation that allows me to reach the office on time.
I am flexible with my schedule and can adjust my timings accordingly.
I understand the importance of punctuality and will make sure to be at the office by 9:30.
I am committed to this internship opportunity and will prioritize my travel arran...read more
Q10. The 25 Horse Problem.
The 25 Horse Problem is a logic puzzle that involves determining the fastest 3 horses out of 25 using minimal races.
Divide the 25 horses into groups of 5 and race them to determine the fastest horse in each group.
Then race the fastest horses from each group to determine the top 3 fastest horses overall.
This approach minimizes the number of races needed to find the top 3 horses.
Q11. Write 2 Push Notifications for Placement Guarantee Courses for the Internshala App
Get guaranteed placements with our Placement Guarantee Courses on Internshala App!
Enroll in our Placement Guarantee Courses and secure your dream job
Boost your chances of getting hired with our Placement Guarantee Courses
Join our Placement Guarantee Courses and land your dream internship
Guaranteed placements with our specialized Placement Guarantee Courses
Q12. Components and flux or not What is library
Components and Flux are important concepts in React for building scalable and maintainable applications. A library is a collection of pre-written code that can be reused in different projects.
Components are reusable building blocks in React that encapsulate functionality and can be composed to create complex UIs
Flux is a pattern for managing data flow in React applications, ensuring unidirectional data flow and predictable state changes
Libraries like React Router and Redux pr...read more
Q13. How does a linked list function
A linked list is a data structure where each element points to the next element in the sequence.
Each element in a linked list, called a node, contains data and a reference to the next node in the sequence.
Linked lists can be singly linked (each node points to the next node) or doubly linked (each node points to both the next and previous nodes).
To traverse a linked list, you start at the head node and follow the references to the next nodes until you reach the end (where the ...read more
Q14. What is pointers in c
Pointers in C are variables that store memory addresses of other variables.
Pointers are used to access and manipulate memory directly.
They are denoted by an asterisk (*) before the variable name.
Example: int *ptr; // declares a pointer to an integer variable
Q15. Tell me about arrays
Arrays are a data structure that stores a collection of elements of the same data type in contiguous memory locations.
Arrays have a fixed size determined at the time of declaration.
Elements in an array are accessed using an index starting from 0.
Arrays can store primitive data types or objects.
Example: String[] names = {"Alice", "Bob", "Charlie"};
Q16. What is str in c
str in C is a data type used to represent strings as arrays of characters.
str in C is typically declared as an array of characters, terminated by a null character '\0'.
Functions like strcpy(), strcmp(), and strlen() are commonly used with str in C.
Example: char str[10] = "hello"; // Declaration of a string in C
Top HR Questions asked in Tasklance
Interview Process at Tasklance
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month