Ninja
100+ Ninja Interview Questions and Answers

Asked in TCS

Q. You have completed many courses on Coursera and NPTEL. How do you apply what you learned?
Courses in Coursera and NPTEL provide knowledge and skills in various fields.
Courses in Coursera and NPTEL offer a wide range of topics to learn from.
They provide access to high-quality education from top universities and institutions.
The courses help in developing new skills and enhancing existing ones.
They can be useful for career advancement and personal growth.
For example, a course in data science can help in analyzing and interpreting data for business decisions.
Similarl...read more

Asked in TCS

Q. Is it a software project? Which software or language did you use?
Yes, it is a software project. We used multiple languages including Python, Java, and C++.
The project involved developing a web application using Python and Django framework.
We also used Java for developing the backend of the application.
C++ was used for developing some of the algorithms used in the project.
Other technologies used include HTML, CSS, and JavaScript.
We followed agile methodology for development and used Git for version control.
Ninja Interview Questions and Answers for Freshers

Asked in TCS

Q. You have done a course in Neural Networks right? What are neural networks?
Neural networks are a type of machine learning algorithm inspired by the structure and function of the human brain.
Neural networks consist of layers of interconnected nodes that process information.
They are trained on a dataset to learn patterns and make predictions.
They can be used for tasks such as image recognition, natural language processing, and predictive analytics.
Examples include convolutional neural networks for image classification and recurrent neural networks for...read more

Asked in TCS

Q. Given the series: 0, 0, 2, 1, 4, 2, 6, 3, 8, 4, 10, 5, 12, 6, 14, 7, 16, 8, write a program to find the nth term in this series.
Program to find the nth term in a given series.
The series follows a pattern of even and odd numbers multiplied by the position of the term.
Use a loop to generate the series and return the nth term.
For n=5, the output should be 4.

Asked in TCS

Q. Why are you shifting to the software side, especially coming from a non-IT background?
Shifting to software side can open up new career opportunities and provide job security in a growing industry.
Software industry is growing rapidly and has a high demand for skilled professionals
Learning software skills can enhance your resume and make you more marketable
Software jobs often offer higher salaries and better job security compared to other industries
There are many resources available for learning software skills, such as online courses and coding bootcamps
Example...read more

Asked in TCS

Q. If an application designed by you does not run on a PC, is it your fault or the PC's fault?
It could be either my fault or the PC's fault depending on the circumstances.
If the application was designed to run on a specific operating system or hardware configuration and the PC does not meet those requirements, it would be the PC's fault.
If the application has bugs or errors in the code, it would be my fault.
If the PC has outdated software or hardware that cannot support the application, it would be the PC's fault.
If the application requires certain settings or configu...read more
Ninja Jobs



Asked in TCS

Q. What is your favorite programming language, and which languages are you comfortable using?
My favorite programming language is Python, and I am also comfortable using Java, C++, and JavaScript.
Favorite language: Python
Comfortable using: Java, C++, JavaScript

Asked in TCS

Q. What is Abstraction? Explain with an example.
Abstraction is the process of hiding complex details and showing only essential features.
Abstraction helps in reducing complexity and increasing efficiency.
It allows us to focus on the important aspects of an object or system.
For example, a car can be abstracted as a mode of transportation with certain features like speed, fuel efficiency, and safety.
Abstraction can be achieved through encapsulation and inheritance in object-oriented programming.
Share interview questions and help millions of jobseekers 🌟

Asked in TCS

Q. Write a function that takes an array called scores and 2 pointer parameters min and max and determines the minimum and maximum values and returns them to the calling function.
A function to find minimum and maximum values in an array using pointer parameters.
Declare two variables to hold minimum and maximum values
Loop through the array and compare each element with the current minimum and maximum values
Update the minimum and maximum values accordingly
Return the minimum and maximum values

Asked in TCS

Q. Given a string, reduce its size using mathematical logic.
Use mathematical logic to reduce the size of a given string.
Consider using compression algorithms like Huffman coding or Lempel-Ziv-Welch.
Look for patterns or repetitions in the string that can be represented more efficiently.
Consider using mathematical formulas or equations to represent the string.

Asked in TCS

Q. Describe cloud computing in detail and what are its models?
Cloud computing is the delivery of computing services over the internet.
Cloud computing allows users to access data and applications from anywhere with an internet connection.
There are three main models of cloud computing: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).
IaaS provides virtualized computing resources, such as servers and storage, over the internet.
PaaS provides a platform for developers to build and deploy appl...read more

Asked in TCS

Q. What is the difference between lists and tuples?
Lists are mutable while tuples are immutable in Python.
Lists use square brackets [] while tuples use parentheses ().
Elements in a list can be added, removed, or modified while elements in a tuple cannot be modified.
Lists are used for collections of data that need to be modified while tuples are used for collections of data that should not be modified.
Example of a list: my_list = [1, 2, 3]
Example of a tuple: my_tuple = (1, 2, 3)

Asked in TCS

Q. What are some fundamental questions to assess your communication skills?
Some fundamental questions to assess communication skills include asking about past experiences, conflict resolution, active listening, and clarity in conveying information.
Can you provide an example of a time when you effectively communicated with a team to achieve a common goal?
How do you handle conflicts or disagreements in a professional setting?
Describe a situation where you had to actively listen to someone's concerns and how you responded.
How do you ensure that your me...read more

Asked in Infosys

Q. What are the concepts of Object-Oriented Programming (OOP)?
OOP is a programming paradigm based on the concept of objects, which can contain data in the form of fields and code in the form of procedures.
Encapsulation: Objects can encapsulate data and behavior within a single unit.
Inheritance: Objects can inherit attributes and methods from parent classes.
Polymorphism: Objects can take on multiple forms and behave differently based on their specific type.

Asked in TCS

Q. What is Sdlc? And difference between waterfall and agile
SDLC stands for Software Development Life Cycle. Waterfall and Agile are two different approaches to SDLC.
SDLC is a process followed by software development teams to design, develop, and test high-quality software.
Waterfall is a linear approach where each phase of the SDLC must be completed before moving on to the next phase.
Agile is an iterative approach where the development team works in short sprints to deliver working software quickly and continuously improve it.
Waterfal...read more

Asked in TCS

Q. Write code to capitalize the first and last letter of each word into uppercase.
Code to capitalize first and last letter of each word into uppercase.
Split the string into words using split() method
Loop through each word and capitalize the first and last letter using slice() and toUpperCase() methods
Join the modified words back into a string using join() method

Asked in Zoho

Q. What is the purpose of 'public static void main' in Java?
public static void main is the entry point of a Java program.
It is a method that is called when the program starts.
It must be declared as public, static, and void.
It takes an array of strings as an argument.
It is where the program's execution begins.
Example: public static void main(String[] args) { }

Asked in TCS

Q. What is an optimized program to generate prime numbers?
The Sieve of Eratosthenes is an optimized algorithm to generate prime numbers.
Use the Sieve of Eratosthenes algorithm to efficiently generate prime numbers.
Start by creating a list of numbers from 2 to n, where n is the maximum number you want to check for primes.
Iterate through the list and mark multiples of each number as non-prime.
The remaining unmarked numbers are prime.
Example: For n=10, the prime numbers generated are 2, 3, 5, 7.

Asked in TCS

Q. What are some of the most frequently used TATA products?
Some popular products of TATA include Tata Salt, Tata Tea, Tata Motors vehicles, Tata Steel, and Tata Consultancy Services.
Tata Salt
Tata Tea
Tata Motors vehicles
Tata Steel
Tata Consultancy Services

Asked in TCS

Q. What sorting algorithm would you use to find the gist of reviews on an e-commerce website?
The sorting algorithm for finding the gist of reviews on an e-commerce website can be based on sentiment analysis and keyword extraction.
Use sentiment analysis to categorize reviews as positive, negative, or neutral.
Extract keywords from reviews to identify common themes or topics.
Sort reviews based on relevance to the product or service being reviewed.
Consider using algorithms like TF-IDF or LDA for topic modeling.

Asked in TCS

Q. How would you troubleshoot a hardware issue with laptop speakers?
To solve a hardware issue in speakers of a laptop, I would first check the sound settings and update the drivers. If that doesn't work, I would open up the laptop and check the connections and replace the speakers if necessary.
Check sound settings and update drivers
Open up laptop and check connections
Replace speakers if necessary

Asked in TCS

Q. If a laptop doesn't turn on, what are the primary troubleshooting steps you would take?
I would check the power source, battery, and hardware components.
Check if the laptop is properly plugged in and the power source is working.
Remove the battery and try turning on the laptop with just the power cord.
Check if any hardware components are loose or damaged, such as the RAM or hard drive.
Try resetting the laptop by holding down the power button for 10-15 seconds.
If none of these steps work, seek professional help or contact the manufacturer for support.

Asked in TCS

Q. Explain the project you made and how would you market it.
I created a mobile app that helps users track their daily water intake and reminds them to stay hydrated.
The app allows users to set daily water intake goals based on their weight and activity level.
Users can log their water consumption throughout the day and receive notifications to drink more water if they are falling behind.
The app also provides visual representations of their daily water intake to help users stay motivated.
To sell the app in the market, I would highlight ...read more

Asked in TCS

Q. 1. what is open loop and close loop system. 2. Air conditioning system is which type of system. 3.what is object. 4.If data member is in class is protected can we acess to derived class.
Answers to technical questions related to open loop and closed loop systems, air conditioning, object, and data member access in derived classes.
Open loop system is a system where the output is not controlled by the input, while closed loop system is a system where the output is controlled by the input.
Air conditioning system is a closed loop system as it maintains a constant temperature by adjusting the input based on the output.
An object is an instance of a class that has i...read more

Asked in TCS

Q. How do you delete a file in Python?
Use the os module to delete a file in Python.
Import the os module
Use os.remove() function to delete the file
Provide the file path as argument to os.remove() function

Asked in ServiceNow

Q. What is the use of the static keyword?
The static keyword in programming is used to declare variables, methods, or classes that belong to the class itself rather than instances of the class.
Static variables are shared among all instances of a class and can be accessed without creating an object of the class.
Static methods can be called without creating an instance of the class.
Static classes cannot be instantiated and are used to group related methods and variables together.

Asked in TCS

Q. what is an array and pointers?
An array is a collection of similar data types stored in contiguous memory locations. A pointer is a variable that stores the memory address of another variable.
Arrays are accessed using index numbers, while pointers are accessed using the * and & operators.
Arrays can be passed to functions as arguments, while pointers can be used to pass the address of a variable to a function.
Arrays can be initialized with values at the time of declaration, while pointers need to be assigne...read more

Asked in TCS

Q. In which language are you most proficient, and rate yourself on a scale of five?
I am most proficient in Python, rating myself a 4.5 for its versatility in data analysis, web development, and automation tasks.
Extensive experience with libraries like Pandas and NumPy for data manipulation.
Developed web applications using Flask and Django frameworks.
Automated repetitive tasks using Python scripts, improving efficiency.
Participated in open-source projects, contributing to community-driven software.

Asked in TCS

Q. Write an SQL query to print the salaries of all employees whose names start with 'A'.
Query to print the salary of employees whose names start with 'A'.
Use the SELECT statement to retrieve the 'salary' column from the 'employees' table.
Use the WHERE clause with the LIKE operator to filter employees whose names start with 'A'.
The query would look like: SELECT salary FROM employees WHERE name LIKE 'A%';

Asked in TCS

Q. language of preference? ( c, c++, java, python)
I am proficient in C++, Java, and Python, but my language of preference is Python.
Proficient in C++, Java, and Python
Prefer Python for its readability and versatility
Examples: C++ for performance-critical tasks, Java for Android development, Python for data analysis
Interview Experiences of Popular Companies




Top Interview Questions for Ninja Related Skills



Reviews
Interviews
Salaries
Users

