Filter interviews by
Top trending discussions
The function checks if a string is a substring of another string.
Use the built-in string methods like 'indexOf' or 'includes' to check for substring.
If the language supports regular expressions, you can also use them to find substrings.
Consider the case sensitivity of the strings when comparing.
Code to multiply two matrices of dimension M*N and N*K.
Create a result matrix of dimension M*K.
Iterate through each row of the first matrix.
For each row, iterate through each column of the second matrix.
For each element in the row of the first matrix, multiply it with the corresponding element in the column of the second matrix.
Sum up the products and store the result in the corresponding position of the result matrix.
...
SQL query to perform matrix multiplication using two tables with row, col, and value columns.
Use JOIN operation to combine the two tables based on matching row and col values.
Use GROUP BY clause to group the result by row and col values.
Use SUM function to calculate the dot product of corresponding row and col values.
Use INSERT INTO statement to insert the result into a new table.
Prototype in JavaScript is an object that is associated with every function and object by default.
Prototype is used to add properties and methods to an object.
It allows objects to inherit properties and methods from other objects.
Modifying the prototype of a function affects all instances of that function.
Prototypes can be used to create new objects based on existing objects.
The prototype chain allows for property and
Classes in JavaScript are written using the class keyword.
Use the class keyword followed by the class name to define a class.
Use the constructor method to initialize class properties.
Add methods to the class using the class prototype.
Use the new keyword to create an instance of the class.
The number of different ways to climb a ladder of N steps by taking 1 or 2 steps at a time.
This is a classic problem that can be solved using dynamic programming.
The number of ways to climb N steps is equal to the sum of the number of ways to climb N-1 steps and N-2 steps.
The base cases are when N is 0 or 1, where there is only 1 way to climb the ladder.
For example, for N=4, there are 5 different ways: [1, 1, 1, 1], [1
Print a square matrix in spiral order
Start by defining the boundaries of the matrix
Iterate through the matrix in a spiral pattern, printing each element
Adjust the boundaries after each iteration to move inward
Repeat until all elements are printed
Retrieve the second highest marks obtained by each student from a table with student name, subject, and marks.
Use the RANK() function to assign a rank to each row based on the marks in descending order.
Filter the result to only include rows with rank 2 for each student.
Group the result by student name to get the second highest marks for each student.
The .live() method attaches an event handler to the current and future elements, while .delegate() attaches an event handler to a parent element.
The .live() method is deprecated in newer versions of jQuery.
The .delegate() method is preferred over .live() for performance reasons.
Both methods are used to handle events for dynamically added elements.
Example: $(document).live('click', 'button', function() { ... });
Example:...
Chaining in jQuery allows multiple methods to be called on a single element in a single line of code.
Chaining simplifies code and improves readability.
Each method in the chain operates on the result of the previous method.
The chain ends with a method that does not return a jQuery object.
Example: $('div').addClass('highlight').fadeOut();
A callback function is a function that is passed as an argument to another function and is executed later.
Callback functions are commonly used in event-driven programming.
They allow asynchronous execution of code.
Callback functions can be used to handle responses from APIs or user interactions.
They can be anonymous functions or named functions.
Example: setTimeout(function() { console.log('Hello!'); }, 1000);
The .bind() function in jQuery is used to attach an event handler function to one or more elements.
It allows you to specify the event type and the function to be executed when the event occurs.
The .bind() function can be used to bind multiple events to the same element.
It can also be used to pass additional data to the event handler function.
The .bind() function is deprecated in jQuery version 3.0 and above. It is reco
The angle between the hour and minute hands of a clock can be calculated using a formula.
The hour hand moves 30 degrees per hour and 0.5 degrees per minute.
The minute hand moves 6 degrees per minute.
Calculate the angle between the two hands using the formula: |30H - 11M/2|, where H is the hour and M is the minute.
Yes, it is possible to create a slideshow without using JavaScript.
Use CSS animations and transitions to create the slideshow.
Use HTML and CSS to structure and style the slideshow.
Utilize keyframe animations to create the slide transitions.
Use radio buttons or checkboxes to control the slideshow navigation.
Apply the :target pseudo-class to create a simple slideshow without JavaScript.
The men can take turns riding the scooter, allowing them to reach point B faster.
The men can form a queue and take turns riding the scooter.
The person riding the scooter can drop it off at a certain point and the next person can pick it up.
The scooter can be passed along the line of men until everyone reaches point B.
Multithreading is the ability of a program to perform multiple tasks concurrently.
Multithreading allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include running multiple downloads simultaneously or updating a GUI while performing a background task
Synchronization is important to prevent race conditions and ensure thread safety
Multithreading in Java allows concurrent execution of multiple threads.
Java provides built-in support for multithreading through the java.lang.Thread class.
Threads can be created by extending the Thread class or implementing the Runnable interface.
The start() method is used to start a new thread, which calls the run() method.
Synchronization mechanisms like synchronized blocks and locks can be used to control access to ...
No, Java does not support multiple inheritance. However, interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes.
This is because multiple inheritance can lead to ambiguity and conflicts.
However, a class can implement multiple interfaces in Java.
An interface can extend multiple interfaces, allowing for inheritance of multiple interfaces.
This is known as interface inheritan
DO-WHILE loop executes the code block at least once, while WHILE loop executes only if the condition is true.
DO-WHILE loop checks the condition at the end of the loop
WHILE loop checks the condition at the beginning of the loop
DO-WHILE loop executes the code block at least once
WHILE loop may not execute the code block at all if the condition is false
I would rate myself as an 8 on a scale of 1-10.
I have a strong understanding of software development principles and practices.
I have experience working with multiple programming languages and frameworks.
I am skilled in problem-solving and debugging.
I have successfully delivered complex software projects in the past.
I continuously strive to learn and improve my skills.
Display data of two tables by joining them using a common column.
Use SQL JOIN statement to combine data from two tables based on a common column.
Choose the appropriate type of JOIN based on the relationship between the tables.
Specify the columns to be displayed in the SELECT statement.
Use aliases to differentiate between columns with the same name in both tables.
Apply any necessary filters or sorting to the result set.
Networking refers to the process of connecting devices and systems to share information and resources.
Networking involves the use of hardware and software to connect devices and systems.
It allows for the sharing of information and resources such as files, printers, and internet access.
Networking can be done through wired or wireless connections.
Examples of networking technologies include Ethernet, Wi-Fi, and Bluetooth.
...
A router is a networking device that forwards data packets between computer networks.
A router operates at the network layer of the OSI model.
It uses routing tables to determine the best path for data packets to reach their destination.
Routers can connect multiple networks together, such as LANs and WANs.
They provide network address translation (NAT) to allow multiple devices to share a single public IP address.
Routers ...
Subnetting is the process of dividing a network into smaller subnetworks, called subnets, to improve network efficiency and security.
Subnetting allows for better utilization of IP addresses by dividing a network into smaller segments.
It helps in improving network performance by reducing network congestion.
Subnetting enhances network security by isolating different departments or devices within a network.
It enables effi...
Protocols are a set of rules and guidelines that govern the communication between devices or systems.
Protocols define the format and order of messages exchanged between devices.
They ensure reliable and efficient communication by specifying error detection and correction mechanisms.
Examples of protocols include TCP/IP, HTTP, SMTP, and FTP.
Protocols can operate at different layers of the network stack, such as the applic
Static protocols are fixed and do not change, while dynamic protocols can adapt to changing network conditions.
Static protocols are typically used in simple networks with predictable traffic patterns.
Dynamic protocols are used in complex networks with varying traffic patterns.
Examples of static protocols include ARP and RARP.
Examples of dynamic protocols include OSPF and BGP.
TCS is a leading global IT services company with a strong reputation and diverse opportunities for growth.
TCS has a strong reputation in the IT industry for delivering high-quality services and solutions.
TCS offers diverse opportunities for growth and career development.
TCS has a global presence, providing exposure to different cultures and working environments.
TCS values innovation and encourages employees to think cr...
I expect to receive proper training and support to transition into the IT field successfully.
I expect to be provided with relevant training and resources to learn the necessary skills for the role.
I hope for guidance and mentorship from experienced IT professionals within the company.
I am eager to contribute my non-IT skills and knowledge to the team, bringing a fresh perspective.
I am committed to putting in the effort...
Multithreading is the ability of a program to perform multiple tasks concurrently.
Multithreading allows for better utilization of CPU resources
It can improve program performance and responsiveness
Examples include running multiple downloads simultaneously or updating a GUI while performing a background task
Synchronization is important to prevent race conditions and ensure thread safety
Java supports multithreading through the java.lang.Thread class and java.util.concurrent package.
Java threads are created by extending the Thread class or implementing the Runnable interface.
Threads can be started using the start() method.
Synchronization can be achieved using synchronized keyword or locks.
Java provides several classes and interfaces to support concurrent programming such as Executor, ExecutorService, F...
Java does not support multiple inheritance, but interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes, but it can implement multiple interfaces.
Interfaces can inherit from multiple interfaces using the 'extends' keyword.
For example, interface C can extend interfaces A and B: 'interface C extends A, B {}'
Do-While loop executes the code block once before checking the condition, while loop checks the condition first.
Do-While loop is used when the code block needs to be executed at least once.
While loop is used when the code block may not need to be executed at all.
Do-While loop is less efficient than While loop as it always executes the code block at least once.
Example of Do-While loop: do { //code block } while (conditi...
Join the tables on a common column and display the combined data.
Identify the common column in both tables
Use JOIN statement to combine the tables
Select the columns to display
Apply any necessary filters or sorting
Display the data in a table or list format
Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.
Primary key cannot have null values, while unique key can have one null value.
A table can have only one primary key, but multiple unique keys.
Primary key is used as a foreign key in other tables, while unique key is not.
Example: Employee ID can be a primary key, while email address can be a unique key.
I have a strong background in software development, excellent problem-solving skills, and a passion for learning new technologies.
Extensive experience in programming languages such as Java, Python, and C++
Proven track record of delivering high-quality software solutions on time and within budget
Strong analytical and problem-solving skills, with the ability to quickly adapt to new technologies and frameworks
Excellent co...
My hobbies include coding, reading, and playing video games. My strengths are problem-solving, attention to detail, and teamwork. My weaknesses are impatience and a tendency to overthink.
Hobbies: Coding, reading, playing video games
Strengths: Problem-solving, attention to detail, teamwork
Weaknesses: Impatience, tendency to overthink
I am a software developer with experience in Java and Python.
Graduated with a degree in Computer Science
Worked on multiple projects using Java and Python
Familiar with Agile methodology
Strong problem-solving skills
Constantly learning and improving
Multithreading is the ability of a CPU to execute multiple threads concurrently.
Multithreading improves performance by utilizing idle CPU time.
Threads share the same memory space, allowing for efficient communication.
Examples include web servers handling multiple requests and video games rendering graphics while processing user input.
The question is asking about how a specific implementation is done in Java.
Explain the implementation details of the specific feature or functionality in Java
Provide code examples if applicable
Discuss any relevant libraries or frameworks used in the implementation
While loop executes only if the condition is true, do-while loop executes at least once before checking the condition.
While loop checks the condition first, then executes the code block
Do-while loop executes the code block first, then checks the condition
While loop may not execute at all if the condition is false initially
Do-while loop always executes at least once before checking the condition
No, Java does not support multiple inheritance. However, interfaces can inherit multiple interfaces.
Java does not allow a class to inherit from multiple classes, which is known as multiple inheritance.
However, a class can implement multiple interfaces, which is known as multiple interface inheritance.
By implementing multiple interfaces, a class can inherit the abstract methods defined in those interfaces.
For example, c...
To display data of two tables, we can use JOIN operation in SQL.
Identify the common column(s) between the two tables.
Use JOIN operation to combine the data from both tables based on the common column(s).
Choose the appropriate type of JOIN operation (INNER, LEFT, RIGHT, FULL) based on the requirement.
Use SELECT statement to display the required columns from the combined table.
Example: SELECT t1.column1, t2.column2 FROM ...
Primary key uniquely identifies a record in a table, while unique key ensures uniqueness of a column.
Primary key is a column or set of columns that uniquely identifies each record in a table
Primary key cannot have null values
A table can have only one primary key
Unique key ensures that a column or set of columns have unique values
Unique key can have null values
A table can have multiple unique keys
I would rate myself as an 8 on a scale of 1-10.
I have a strong understanding of software development principles and practices.
I have experience working with multiple programming languages and frameworks.
I am skilled in problem-solving and debugging.
I have successfully delivered complex software projects in the past.
I continuously strive to learn and improve my skills.
Multithreading in Java refers to the concurrent execution of two or more parts of a program for maximum utilization of CPU.
Multithreading allows multiple threads to run concurrently within a single program.
It improves the performance of the program by utilizing the CPU more efficiently.
Java provides built-in support for multithreading through the java.lang.Thread class.
Multithreading can be used for tasks such as backg...
CPU scheduling policies include FCFS, SJF, Round Robin, Priority, and Multilevel Queue. The operating system does the scheduling.
FCFS (First Come First Serve)
SJF (Shortest Job First)
Round Robin
Priority
Multilevel Queue
Operating system does scheduling
Jvm is Java Virtual Machine. It manages threads on its own.
Jvm is a virtual machine that executes Java bytecode.
It provides a runtime environment for Java programs.
Jvm manages threads on its own using its own thread scheduler.
Jvm is platform-independent and provides a layer of abstraction between the Java code and the underlying operating system.
Examples of popular JVM implementations include Oracle's HotSpot and OpenJ
Tree traversal is a technique to visit all nodes of a tree in a specific order.
There are three types of tree traversals: inorder, preorder, and postorder.
Inorder traversal visits the left subtree, then the root, and then the right subtree.
Preorder traversal visits the root, then the left subtree, and then the right subtree.
Postorder traversal visits the left subtree, then the right subtree, and then the root.
For exampl...
ArrayList and Vector are both dynamic arrays, but Vector is synchronized and slower. Traversing a Vector is similar to an ArrayList.
ArrayList is not synchronized, while Vector is synchronized.
ArrayList is faster than Vector, but Vector is thread-safe.
To traverse a Vector, we can use a for loop or an iterator, similar to an ArrayList.
Example: Vector
TCS is a leading global IT services company with a strong reputation and diverse opportunities for growth.
TCS has a strong reputation in the IT industry
TCS offers diverse opportunities for growth and learning
TCS has a global presence and works with top clients
TCS has a strong focus on innovation and technology
TCS provides a supportive and inclusive work environment
Tata Salt is the product used in every house.
Tata Salt is a brand of salt produced by Tata Chemicals.
It is the market leader in India with a 27% market share.
Tata Salt has been fortified with iodine to help address iodine deficiency in India.
It is available in various sizes and packaging options to suit different needs.
Tata Salt has won several awards for its quality and innovation.
My hobby and passion is photography.
I love capturing moments and telling stories through my photographs.
I enjoy exploring different techniques and experimenting with composition.
Photography allows me to express my creativity and view the world from unique perspectives.
I have participated in several photography competitions and my work has been featured in local exhibitions.
Some of my favorite subjects to photograph are
A good leader possesses qualities such as strong communication skills, empathy, integrity, and the ability to inspire and motivate others.
Strong communication skills: A good leader is able to effectively convey their ideas and instructions to their team members.
Empathy: A good leader understands and considers the feelings and perspectives of their team members, fostering a positive and supportive work environment.
Integ...
Being stranded in a foreign country with no money or means to communicate
Lost my wallet with all my money and identification
Couldn't speak the local language to ask for help
Had to rely on the kindness of strangers for assistance
R, L, and C are basic electronic components used in circuits for resistance, inductance, and capacitance respectively.
Resistors (R) limit current flow and reduce voltage
Inductors (L) store energy in a magnetic field and resist changes in current
Capacitors (C) store energy in an electric field and pass AC signals while blocking DC signals
These components are used in various circuits such as filters, oscillators, and amp
Passive components do not require an external power source, while active components do.
Passive components include resistors, capacitors, and inductors.
Active components include transistors, diodes, and integrated circuits.
Passive components do not amplify signals, while active components do.
Passive components are used to control the flow of electricity, while active components are used to create and amplify signals.
A switch is a networking device that connects devices together on a local area network (LAN) and forwards data packets between them.
Switches operate at the data link layer of the OSI model.
They use MAC addresses to forward data to the correct destination.
Switches can improve network performance by reducing network congestion and collisions.
Examples of switches include Ethernet switches, LAN switches, and network switch
LAN, MAN, WAN, PAN are types of computer networks that differ in their geographical coverage and purpose.
LAN (Local Area Network) is a network that covers a small area like a home, office, or building.
MAN (Metropolitan Area Network) is a network that covers a larger area like a city or town.
WAN (Wide Area Network) is a network that covers a large geographical area like a country or the whole world.
PAN (Personal Area Ne...
Potential difference is the difference in electric potential between two points in an electric field.
Potential difference is measured in volts (V)
It is the work done per unit charge to move a charge from one point to another
It is the driving force that causes current to flow in a circuit
Potential difference can be calculated using Ohm's law: V = IR
A battery creates a potential difference between its terminals to power
A modem is a device that modulates and demodulates signals to enable communication between devices over a network.
Modulates digital signals into analog signals for transmission over telephone lines
Demodulates analog signals back into digital signals for use by the receiving device
Can be used for dial-up internet connections or to connect to a local area network (LAN)
Examples include cable modems, DSL modems, and wirele
I am a system engineer with experience in designing and implementing complex systems.
I have a degree in computer engineering
I have worked on projects involving network infrastructure design and implementation
I am proficient in programming languages such as Java and Python
I have experience with cloud computing platforms such as AWS and Azure
I am a quick learner and enjoy working in a team environment
My academics were affected by personal circumstances and health issues.
I faced some personal challenges during my academic years
I had to take a break from studies due to health issues
I have since worked hard to improve my skills and knowledge
I have gained practical experience through internships and projects
I have the necessary technical skills and experience to excel in this role.
I have a strong background in systems engineering and have successfully completed several complex projects.
I am a quick learner and am always eager to expand my knowledge and skills.
I am a team player and work well with others to achieve common goals.
I am highly organized and detail-oriented, ensuring that all tasks are completed accurately and ...
Yes, I am willing to work in night shifts if required.
I understand that as a system engineer, there may be times when working in night shifts is necessary to ensure the smooth functioning of the system.
I am flexible and adaptable to changing work schedules and can manage my time effectively to ensure that I am well-rested and alert during night shifts.
I have prior experience working in night shifts and understand the c...
based on 15 reviews
Rating in categories
Senior Travel Consultant
8
salaries
| ₹0 L/yr - ₹0 L/yr |
Finance Manager
6
salaries
| ₹0 L/yr - ₹0 L/yr |
Operations Manager
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Executive Accountant
5
salaries
| ₹0 L/yr - ₹0 L/yr |
Marketing Manager
4
salaries
| ₹0 L/yr - ₹0 L/yr |
Thomas Cook
Cox & Kings
Kuoni Travel
SOTC Travel Limited