TCS
200+ Nohitatu Technologies Interview Questions and Answers
Q101. What are various languages in sql
Various languages in SQL include SQL, PL/SQL, T-SQL, and others.
SQL (Structured Query Language) is the standard language for relational database management systems.
PL/SQL (Procedural Language/SQL) is Oracle Corporation's procedural extension for SQL.
T-SQL (Transact-SQL) is Microsoft's proprietary extension to SQL.
Other languages include MySQL, PostgreSQL, SQLite, etc.
Q102. What is OOPS and their concepts
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS focuses on creating objects that contain both data and functions to manipulate the data.
The four main concepts of OOPS are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation refers to the bundling of data and methods that operate on the data into a single unit.
Inheritance allows a class to inherit properties and behavior from another class...read more
Q103. Example of abstract class ?
Abstract class is a class that cannot be instantiated and may contain abstract methods.
Cannot be instantiated directly
May contain abstract methods that must be implemented by subclasses
Used to define a common interface for a group of related classes
Q104. Why python and it's importance
Python is a popular high-level programming language known for its simplicity, readability, and versatility.
Python is easy to learn and use, making it a great language for beginners.
It has a large and active community, with many libraries and frameworks available for various applications.
Python is used in a wide range of industries, including web development, data science, artificial intelligence, and automation.
It is platform-independent, meaning it can run on multiple operat...read more
Q105. How you deal deadlines?
I prioritize tasks, break them down into smaller steps, set realistic goals, and communicate effectively with team members to meet deadlines.
Prioritize tasks based on urgency and importance
Break down tasks into smaller steps to make them more manageable
Set realistic goals and timelines for each task
Communicate effectively with team members to coordinate efforts and meet deadlines
Q106. Differentiate between Overloading and overriding
Overloading is when multiple methods have the same name but different parameters, while overriding is when a subclass provides a specific implementation of a method in its superclass.
Overloading involves multiple methods with the same name but different parameters
Overriding involves a subclass providing a specific implementation of a method in its superclass
Overloading is determined at compile time, while overriding is determined at runtime
Q107. Type conversion in python.
Type conversion refers to the process of converting one data type to another in Python.
Python has built-in functions like int(), float(), str(), bool() for type conversion.
Type conversion can be implicit or explicit.
Implicit type conversion is done automatically by Python, while explicit type conversion is done using the built-in functions.
Examples of type conversion include converting a string to an integer using int(), or converting a float to a string using str().
Q108. Explain the concepts of OOPS with example
OOPS stands for Object-Oriented Programming Concepts. It includes concepts like inheritance, polymorphism, encapsulation, and abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: Animal class can be inherited by Dog class.
Polymorphism: Allows objects to be treated as instances of their parent class. Example: A shape class can have different subclasses like Circle, Square, etc.
Encapsulation: Bundling data and methods that oper...read more
Q109. Explain your project, make a smart speaker system.
The smart speaker system project involved designing and building a voice-activated speaker that can perform various tasks.
The system was built using a Raspberry Pi and a microphone array.
We used Python programming language to develop the software for the speaker.
The speaker was able to play music, answer questions, and control smart home devices.
We integrated the speaker with Amazon Alexa and Google Assistant for voice recognition and natural language processing.
The project a...read more
Q110. Difference between truncate and delete command
Truncate is a DDL command that removes all records from a table, while delete is a DML command that removes specific records.
Truncate is faster than delete as it does not log individual row deletions.
Truncate resets the identity seed of the table, while delete does not.
Truncate cannot be rolled back, while delete can be rolled back using a transaction.
Truncate does not fire triggers, while delete does.
Example: TRUNCATE TABLE TableName; DELETE FROM TableName WHERE Condition;
Q111. software development lifecycle?
Software development lifecycle is a process of designing, developing, testing, and deploying software.
It includes phases like planning, analysis, design, implementation, testing, and maintenance.
Each phase has its own set of activities and deliverables.
The goal is to ensure that the software meets the requirements and is of high quality.
Popular models include Waterfall, Agile, and DevOps.
Tools like version control, bug tracking, and continuous integration are used to support ...read more
Q112. Whybwe do knurling in shafts etc.
Knurling is done in shafts to provide a better grip for components like pulleys, gears, or knobs.
Improves grip for components like pulleys, gears, or knobs
Increases friction between shaft and component
Enhances aesthetics and provides a better feel for users
Q113. What is a pointer in C language
A pointer is a variable that stores the memory address of another variable in C language.
Pointers are used to manipulate memory and create dynamic data structures.
They can be used to pass values by reference to functions.
Pointer arithmetic can be performed to access elements of arrays.
Null pointers are used to indicate that a pointer does not point to a valid memory address.
Q114. what is inheritance?
Inheritance is a mechanism in object-oriented programming where a new class is created by inheriting properties of an existing class.
Inheritance allows for code reuse and promotes the concept of hierarchical relationships between classes.
The existing class is called the superclass or parent class, while the new class is called the subclass or child class.
The subclass inherits all the properties and methods of the superclass, and can also add its own unique properties and meth...read more
Q115. Do you know Java language?
Yes, I know Java language.
I have completed a Java programming course in college.
I have also worked on a few Java projects during my internships.
I am familiar with object-oriented programming concepts in Java.
Q116. DIFFERENCES BETWEEN LIST AND TUPLE
List and tuple are both used to store collections of data, but they have some key differences.
Lists are mutable, meaning their contents can be changed, while tuples are immutable
Lists are defined using square brackets [], while tuples use parentheses ()
Lists are typically used for collections of similar items, while tuples are used for collections of different items
Lists have more built-in methods and functions than tuples
Example: list = [1, 2, 3], tuple = (1, 'two', 3.0)
Q117. Discuss about latest tcs innovations products
TCS has recently launched products like Ignio, Algo Retail, and Quartz Blockchain.
Ignio is an AI-driven automation platform for IT operations.
Algo Retail is a data-driven solution for retail businesses.
Quartz Blockchain is a secure and scalable blockchain solution.
Q118. what is DML and DDL in SQL?
DML stands for Data Manipulation Language and is used to manipulate data in a database. DDL stands for Data Definition Language and is used to define the structure of the database.
DML is used for operations such as INSERT, UPDATE, DELETE to manipulate data in tables.
DDL is used for operations such as CREATE, ALTER, DROP to define the structure of tables and databases.
Examples: INSERT INTO table_name, CREATE TABLE table_name.
Q119. What are the types of errors?
There are three types of errors: syntax errors, runtime errors, and logical errors.
Syntax errors occur when the code is not written correctly and cannot be compiled or interpreted.
Runtime errors occur when the code is syntactically correct but produces unexpected results during execution.
Logical errors occur when the code is syntactically correct and produces expected results, but the results are not what was intended.
Examples of syntax errors include missing semicolons or pa...read more
Q120. Pseudo code for prime number.
Pseudo code for prime number is a simple algorithm to determine if a given number is prime or not.
Start by checking if the number is less than 2, if so it is not prime
Then iterate from 2 to the square root of the number and check if it is divisible by any number in that range
If it is not divisible by any number, then it is a prime number
Q121. Difference between c and python?
C is a compiled language with low-level memory manipulation while Python is an interpreted language with high-level abstractions.
C is faster and more efficient for low-level programming.
Python is easier to learn and has a simpler syntax.
C requires manual memory management while Python has automatic garbage collection.
C is used for system programming, embedded systems, and game development.
Python is used for web development, data analysis, and artificial intelligence.
C code is...read more
Q122. What is stack and Queue?
Stack and Queue are data structures used to store and retrieve data in a specific order.
Stack is a Last-In-First-Out (LIFO) data structure where the last element added is the first one to be removed.
Queue is a First-In-First-Out (FIFO) data structure where the first element added is the first one to be removed.
Stack is used in undo-redo functionality, while Queue is used in scheduling tasks.
Both can be implemented using arrays or linked lists.
Q123. Disadvantages of Python over Java.
Python has slower execution speed and weaker type checking compared to Java.
Python is an interpreted language, while Java is a compiled language.
Python has a slower execution speed than Java due to its interpreted nature.
Java has stronger type checking than Python, which can lead to fewer errors.
Python's dynamic typing can lead to errors that are only caught at runtime.
Java has better support for multithreading and concurrency than Python.
Python's standard library is not as c...read more
Q124. What is SDLC? What is DBMS?
SDLC stands for Software Development Life Cycle, which is a process used by software development teams to design, develop, and test high-quality software. DBMS stands for Database Management System, which is a software system that allows users to define, create, maintain, and control access to databases.
SDLC involves several phases such as planning, analysis, design, implementation, testing, and maintenance.
DBMS helps in managing data efficiently by providing functionalities ...read more
Q125. what is object oriented language
Object-oriented language is a programming language that uses objects to represent data and methods to manipulate that data.
Object-oriented programming focuses on objects that contain data and methods to manipulate that data.
It allows for encapsulation, inheritance, and polymorphism.
Examples of object-oriented languages include Java, C++, and Python.
Q126. types of inheritance?
Types of inheritance include single, multiple, multilevel, hierarchical, and hybrid inheritance.
Single inheritance involves a class inheriting from a single base class.
Multiple inheritance involves a class inheriting from multiple base classes.
Multilevel inheritance involves a class inheriting from a derived class, which in turn inherits from another class.
Hierarchical inheritance involves multiple classes inheriting from a single base class.
Hybrid inheritance is a combinatio...read more
Q127. What do you know about TCS
TCS (Tata Consultancy Services) is an Indian multinational IT services and consulting company.
TCS is one of the largest IT services companies in the world.
It is a part of the Tata Group, a conglomerate in India.
TCS offers services in areas such as IT consulting, software development, and business process outsourcing.
The company is known for its strong focus on innovation and digital technologies.
TCS has a global presence with offices in multiple countries.
It is listed on the ...read more
Q128. Write code to take string and reverse.
Code to reverse a string input.
Use a loop to iterate through the characters of the string.
Swap the characters from start to end to reverse the string.
Store the reversed characters in a new string or overwrite the original string.
Q129. Name any key achievements of TCS.
Some key achievements of TCS include being the largest Indian company by market capitalization, consistently ranked as one of the top IT services firms globally, and pioneering the concept of global delivery model.
Largest Indian company by market capitalization
Consistently ranked as one of the top IT services firms globally
Pioneered the concept of global delivery model
Q130. What is class and object?
A class is a blueprint for creating objects, while an object is an instance of a class.
A class defines the properties and behaviors of objects.
An object is a specific instance of a class.
Classes can have attributes (variables) and methods (functions).
Objects can interact with each other by calling methods on each other.
Example: Class 'Car' can have attributes like 'color' and 'model', while an object 'myCar' can be an instance of the 'Car' class with specific values for color...read more
Q131. Guess if the given code is OOPs concept or not
The given code is related to OOPs concept
Classes and objects are used
Encapsulation, inheritance, and polymorphism are implemented
Code follows the principles of OOPs like abstraction and encapsulation
Q132. What is Constructor?
A constructor is a special method in a class that is used to initialize objects of that class.
Constructors have the same name as the class they belong to.
They are called automatically when an object of the class is created.
Constructors can have parameters to initialize the object with specific values.
They can be overloaded to have multiple constructors with different parameters.
Constructors can also call other constructors using the 'this' keyword.
Example: class Car { Car() {...read more
Q133. Difference between clustering and grouping
Clustering is grouping similar data points together based on their characteristics, while grouping is organizing data into categories based on predefined criteria.
Clustering is unsupervised learning, while grouping is typically done based on predefined rules or criteria.
Clustering aims to find natural groupings in data, while grouping is more about organizing data for easier analysis.
Example: Clustering can be used in customer segmentation to group customers with similar purc...read more
Q134. What is lambda
Lambda is a function that can be passed as an argument or stored as a variable.
Lambda is an anonymous function in Python.
It is used for creating small, one-time use functions.
Lambda functions can take any number of arguments, but can only have one expression.
Example: lambda x: x*2 will double the input value of x.
Q135. How to add without using “+”
Use bitwise operators to perform addition
Use bitwise XOR (^) to add two numbers without carrying
Use bitwise AND (&) and left shift (<<) to handle carrying
Repeat the process until there is no carrying left
Q136. Swap numbers with out 3rd variable
Swapping numbers without using a third variable
Use addition and subtraction to swap the values
Use XOR operation to swap the values
Use multiplication and division to swap the values
Q137. Swapping two numbers traditionally
Swapping two numbers traditionally involves using a temporary variable to store one of the numbers.
Create a temporary variable to store one of the numbers
Assign the value of the first number to the temporary variable
Assign the value of the second number to the first number
Assign the value of the temporary variable to the second number
Q138. Fibonacci series program just algorithm
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Declare variables for first, second, and next numbers
Initialize first and second numbers as 0 and 1 respectively
Loop through the desired number of terms and print the next number as the sum of the previous two
Repeat until desired number of terms is reached
Q139. Write a c program for sum of 5 number
A C program to find the sum of 5 numbers.
Declare an array of 5 integers
Use a loop to take input from user and store in array
Use another loop to add all the elements of array
Print the sum
Q140. WHAT IS PYTHON
Python is a high-level, interpreted programming language known for its simplicity, readability, and versatility.
Python is used for web development, data analysis, artificial intelligence, and more.
It has a large standard library and supports multiple programming paradigms.
Python code is often shorter and easier to read than other languages.
It uses indentation to indicate code blocks instead of curly braces or keywords.
Python is open-source and has a large and active community...read more
Q141. what made you choose TCS
I chose TCS because of its reputation for providing excellent training and career growth opportunities.
Reputation for providing excellent training programs
Opportunities for career growth and advancement
Global presence and diverse projects
Positive reviews from current and former employees
Q142. Some built-in functions in C?
Some built-in functions in C are printf(), scanf(), strlen(), strcpy(), etc.
printf() - used to print output on the console
scanf() - used to take input from the user
strlen() - used to find the length of a string
strcpy() - used to copy one string to another
rand() - used to generate random numbers
Q143. What is SDLC in softwares?
SDLC stands for Software Development Life Cycle, which is a process used by software developers to design, develop, and test software applications.
SDLC is a structured process that consists of several phases including planning, analysis, design, implementation, testing, and maintenance.
Each phase of the SDLC has its own set of activities and deliverables that must be completed before moving on to the next phase.
Examples of SDLC models include Waterfall, Agile, and DevOps, eac...read more
Q144. How to reverse a string?
To reverse a string, iterate through the string and swap the characters from both ends until the middle is reached.
Create a character array of the given string
Set two pointers, one at the beginning and one at the end of the array
Swap the characters at both pointers and move them towards the middle until they meet
Convert the character array back to a string
Q145. What is new Keyword?
The new keyword is used in object-oriented programming to create an instance of a class.
The new keyword is followed by the name of the class and parentheses.
It allocates memory for the object and calls the constructor to initialize its state.
The new keyword returns a reference to the newly created object.
It is used to create multiple instances of a class.
Example: MyClass obj = new MyClass();
Q146. Draw a binary tree ?
A binary tree is a tree data structure in which each node has at most two children, referred to as the left and right child.
A binary tree consists of nodes, each with a maximum of two children.
The topmost node is called the root node.
Nodes without any children are called leaf nodes.
The left child of a node is always less than the parent node, while the right child is always greater.
Binary trees are commonly used in computer science for searching and sorting algorithms.
Q147. What languages do you know?
I am proficient in Java, Python, and SQL.
Java
Python
SQL
Q148. Explain Virtualization in memory
Virtualization in memory allows multiple virtual machines to share physical memory resources.
Virtualization in memory creates a layer of abstraction between the physical memory and the virtual machines.
It allows for efficient use of memory resources by sharing them among multiple virtual machines.
Virtualization in memory can be implemented through techniques such as memory ballooning and memory overcommitment.
Examples of virtualization in memory technologies include VMware ES...read more
Q149. 3. Why python, What is tuple
Python is a versatile language with a large community and extensive libraries. A tuple is an immutable sequence of elements.
Python is easy to learn and has a simple syntax
Python has a large community and extensive libraries
Python is versatile and can be used for web development, data analysis, machine learning, and more
A tuple is an immutable sequence of elements, similar to a list but cannot be modified once created
Tuples are often used to group related data together, such a...read more
Q150. Tuple and list differences
Tuple is immutable and ordered while list is mutable and ordered.
Tuple uses () while list uses []
Tuple is faster than list for accessing elements
Tuple can be used as keys in dictionaries while list cannot
Tuple is used for heterogeneous data while list is used for homogeneous data
Q151. write a code for reverse a string
Code to reverse a string using array of characters
Create an array of characters to store the input string
Use a loop to iterate through the input string and store each character in the array
Reverse the array of characters to get the reversed string
Q152. Ddl and DML and their importance
DDL stands for Data Definition Language and is used to define the structure of a database. DML stands for Data Manipulation Language and is used to manipulate data within a database.
DDL is used to create, modify, and delete database objects such as tables, indexes, and views.
DML is used to insert, update, delete, and retrieve data from a database.
DDL commands include CREATE, ALTER, DROP, TRUNCATE, etc.
DML commands include INSERT, UPDATE, DELETE, SELECT, etc.
DDL is important f...read more
Q153. Implement a Stack using Linked list
Implement a Stack using Linked list
Create a Node class with data and next pointer
Implement push() to add elements to the top of the stack
Implement pop() to remove and return the top element
Implement peek() to return the top element without removing it
Q154. Describe main() in java?
main() is the entry point of a Java program where execution begins.
main() method must be declared as public, static, and void.
It must accept an array of strings as an argument.
It is the starting point of execution for a Java program.
Example: public static void main(String[] args) { }
Q155. Write the code to print factorial
Factorial is the product of all positive integers up to a given number.
Use a loop to multiply all positive integers up to the given number
Handle edge cases like 0 and negative numbers
Example: For input 5, factorial = 5*4*3*2*1 = 120
Q156. What is Normalization
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization involves breaking down a database into smaller, more manageable tables
Each table should have a primary key that uniquely identifies each record
Data is organized into tables based on their logical relationships
Normalization helps to eliminate data redundancy and inconsistencies
There are different levels of normalization, with each level building on the pr...read more
Q157. Left view of a binary tree
A left view of a binary tree shows the leftmost node at each level.
The left view can be obtained through a depth-first search algorithm.
The leftmost node at each level can be stored in an array.
The time complexity of obtaining the left view is O(n).
Q158. Memory storage in python
Python uses dynamic memory allocation to store data in memory.
Python automatically manages memory allocation and deallocation.
Memory is allocated as needed and released when no longer in use.
Python has built-in data structures like lists, tuples, and dictionaries that use memory.
Python also has modules like NumPy and Pandas for efficient memory management.
Garbage collection is used to free up memory that is no longer needed.
Q159. OOPS concept in Python?
Python supports OOPS concepts like inheritance, encapsulation, polymorphism, and abstraction.
Inheritance allows creating a new class that inherits properties from an existing class.
Encapsulation is achieved by using private and protected access modifiers.
Polymorphism is achieved through method overloading and overriding.
Abstraction is achieved by using abstract classes and interfaces.
Example: class Car inherits from class Vehicle, private variables can be accessed using gette...read more
Q160. Application of map ?
Maps are used to represent geographical locations and provide directions.
Maps can be used for navigation and finding directions.
They can also be used to display geographical data and information.
Maps can be interactive and allow users to zoom in and out, and view different layers of information.
They can be used in various industries such as transportation, tourism, and real estate.
Examples of popular map applications include Google Maps, Apple Maps, and Waze.
Q161. Give examples of each data types in C
Examples of data types in C include int, float, char, and double.
int: used for storing integer values (e.g. age = 25)
float: used for storing floating-point numbers (e.g. height = 5.8)
char: used for storing single characters (e.g. grade = 'A')
double: used for storing double-precision floating-point numbers (e.g. salary = 50000.50)
Q162. Favourite subjects in Engineering
My favorite subjects in Engineering are Computer Science and Electrical Engineering.
Computer Science
Electrical Engineering
Q163. PROGRAM TO REVERSE THE STRING
Program to reverse a string
Create an empty string to store the reversed string
Loop through the original string from end to start
Append each character to the empty string
Return the reversed string
Q164. Why tcs and about tcs
TCS is a global IT services, consulting, and business solutions company known for its innovative approach and commitment to excellence.
TCS is one of the largest IT services companies in the world.
It offers a wide range of services including consulting, application development, and business process outsourcing.
TCS is known for its strong focus on innovation and technology-driven solutions.
The company has a global presence with offices in multiple countries.
TCS has a reputation...read more
Q165. What is joins in mysql
Joins in MySQL are used to combine rows from two or more tables based on a related column between them.
Joins are used to retrieve data from multiple tables based on a related column between them
Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.column = table2.column
Q166. Any prior knowledge in programming?
Yes, I have prior knowledge in programming.
I have experience in programming languages such as Java, C++, and Python.
I have completed coding projects in school or personal projects.
I have taken programming courses or attended coding bootcamps.
I am familiar with data structures, algorithms, and software development principles.
Q167. What Is DBMS. WITH example
DBMS stands for Database Management System. It is a software that manages databases and allows users to interact with the data stored within them.
DBMS helps in creating, updating, and managing databases efficiently.
It provides a structured way to store, retrieve, and manipulate data.
Examples of DBMS include MySQL, Oracle, and Microsoft SQL Server.
Q168. What is PEP8 in python
PEP8 is a style guide for Python code to ensure consistency and readability.
PEP8 provides guidelines on formatting, naming conventions, and code structure.
It recommends using 4 spaces for indentation, limiting line length to 79 characters, and using lowercase with underscores for variable names.
PEP8 also suggests using spaces around operators and after commas.
Following PEP8 helps make code more readable and maintainable.
Q169. Significants of cloud
Cloud computing enables on-demand access to shared computing resources over the internet.
Cost-effective
Scalability
Flexibility
Reliability
Data backup and recovery
Collaboration
Remote access
Examples: AWS, Azure, Google Cloud
Q170. What is Pointers in C
Pointers in C are variables that store memory addresses of other variables. They are used to access and manipulate data indirectly.
Pointers are declared using the * symbol.
They can be used to pass variables by reference to functions.
Pointers can be used to dynamically allocate memory using functions like malloc().
Q171. Tell about sdlc lifecycle
SDLC (Software Development Life Cycle) is a process used by software development teams to design, develop, and test high-quality software.
SDLC consists of several phases including planning, analysis, design, implementation, testing, and maintenance.
Each phase has its own set of activities and deliverables to ensure the successful completion of the project.
Examples of SDLC models include Waterfall, Agile, and DevOps.
SDLC helps in improving the quality of software, reducing dev...read more
Q172. Explain public static void main.
The public static void main is the entry point of a Java program.
public: Access modifier indicating that the method is accessible from outside the class.
static: Indicates that the method belongs to the class itself, not an instance of the class.
void: Indicates that the method does not return any value.
main: The name of the method that serves as the entry point for the program.
String[] args: An array of strings that can be passed as arguments when the program is executed.
Q173. Difference between C++ and Java
C++ is a statically typed language with a focus on performance and low-level memory manipulation, while Java is a platform-independent language with automatic memory management.
C++ is a statically typed language, while Java is a dynamically typed language
C++ allows for manual memory management, while Java has automatic memory management through garbage collection
C++ supports multiple inheritance, while Java supports only single inheritance through interfaces
C++ has pointers, ...read more
Q174. Explain Oops Concept in java.
Oops concept in Java refers to Object-Oriented Programming principles like Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability of a method to do different things based on the object it is acting upon.
Abstraction: Hiding the implementation details and showing only the necessary feature...read more
Q175. What is polymorphism?
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It can be achieved through method overloading or method overriding.
Example: A parent class Animal can have child classes like Dog, Cat, and Cow. Each child class can have its own implementation of the method 'makeSound', but they can all be called using the same method name.
Polymorphism helps in achieving code reusabili...read more
Q176. Explain Round Robin Algorithm
Round Robin is a CPU scheduling algorithm that assigns a fixed time slice to each process in a circular queue.
Each process is given a time slice or quantum to execute.
After the time slice is over, the process is preempted and added to the end of the queue.
The next process in the queue is then given a time slice to execute.
This continues until all processes have executed.
The time slice is usually small, typically between 10-100 milliseconds.
Round Robin is a preemptive algorith...read more
Q177. Difference between sql and mysql
SQL is a language used to manage relational databases while MySQL is a relational database management system.
SQL is a language used to manage and manipulate data in relational databases.
MySQL is a relational database management system that uses SQL as its query language.
SQL is a standard language used by many relational database management systems, while MySQL is a specific implementation of a relational database management system.
MySQL is open source and free to use, while s...read more
Q178. What are oops concepts
Object-oriented programming concepts that focus on data encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: bundling data and methods that operate on the data into a single unit
Inheritance: ability of a class to inherit properties and behavior from another class
Polymorphism: ability to present the same interface for different data types
Abstraction: hiding the complex implementation details and showing only the necessary features
Q179. Explain the code of bubble sort
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order.
Compare adjacent elements and swap if necessary
Repeat until no more swaps are needed
Time complexity of O(n^2)
Example: ['apple', 'banana', 'cherry', 'date']
Q180. Method overriding vs overloading
Method overriding is redefining a method in a subclass with the same name and signature as in the parent class, while method overloading is defining multiple methods with the same name but different parameters in the same class.
Method overriding is used to provide a specific implementation of a method that is already provided by its superclass.
Method overloading is used to define multiple methods with the same name but different parameters in the same class.
Method overriding ...read more
Q181. What is c programming
C programming is a high-level programming language used for system programming and developing complex applications.
C is a compiled language
It is used for developing operating systems, device drivers, and embedded systems
C is a procedural language with a static type system
It has a rich library of built-in functions
Examples of C programs include Unix, Linux, and Windows operating systems
Q182. WAP to generate Fibonacci sequence
A program to generate Fibonacci sequence.
Declare two variables to store the first two numbers of the sequence
Use a loop to generate the next numbers in the sequence by adding the previous two
Print or store the sequence as required
Q183. What is a transistor
A transistor is a semiconductor device that amplifies or switches electronic signals and electrical power.
Transistors are fundamental building blocks of modern electronic devices.
They are used in various applications such as amplifiers, switches, and oscillators.
Transistors can be categorized into different types such as bipolar junction transistors (BJTs) and field-effect transistors (FETs).
They have three terminals: emitter, base, and collector (for BJTs) or source, gate, a...read more
Q184. WAP to mimic a calculator
A calculator program that mimics the functionality of a calculator.
Create a user interface to display the calculator
Implement functions for basic arithmetic operations like addition, subtraction, multiplication, and division
Handle user input and perform the corresponding calculations
Display the result to the user
Q185. What is capacitor?
A capacitor is an electronic component that stores and releases electrical energy in a circuit.
Capacitors consist of two conductive plates separated by an insulating material called a dielectric.
They are used to filter out noise, stabilize voltage, and store energy in electronic circuits.
Capacitors are measured in farads (F) and come in various types such as electrolytic, ceramic, and tantalum.
Examples of capacitor applications include smoothing power supplies, tuning radio f...read more
Q186. Shift comfortable with
I am comfortable with any shift timings as per the company's requirement.
I am flexible with my schedule and can adjust accordingly
I understand that shift timings may vary depending on the project or team requirements
I am willing to work overtime or on weekends if needed
I have experience working in different shifts during my previous job
Q187. What is pointer
A pointer is a variable that stores the memory address of another variable.
Pointers are used to manipulate memory and perform dynamic memory allocation.
They are commonly used in programming languages like C and C++.
Example: int *ptr; // declares a pointer variable of type int
Example: ptr = # // assigns the address of num to ptr
Q188. Switch statement in Python.
Switch statement in Python is not directly supported, but can be implemented using dictionaries.
Python does not have a switch statement like other languages, but can be emulated using dictionaries.
Use a dictionary to map cases to functions or values to achieve similar functionality.
Example: cases = { 'case1': function1, 'case2': function2, 'default': default_function } result = cases.get(case, cases['default'])
Q189. Fibonacci series program
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
The first two numbers of the series are always 0 and 1
The next number is the sum of the previous two numbers
The series continues until the desired number of terms is reached
Example: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181
Q190. Swap 2 nos in an array
To swap 2 numbers in an array, store one number in a temporary variable, then replace it with the other number.
Create a temporary variable to store one of the numbers
Replace the first number with the second number
Replace the second number with the temporary variable
Q191. what is oops in java
Object-oriented programming paradigm in Java
OOPs stands for Object-Oriented Programming
It focuses on creating objects that interact with each other to solve a problem
Key principles include Inheritance, Encapsulation, Polymorphism, and Abstraction
Example: Class Car { String color; void start() { //code here } }
Q192. What is jvm ?
JVM stands for Java Virtual Machine, which is a virtual machine that enables a computer to run Java programs.
JVM is responsible for converting Java bytecode into machine code that can be executed by the computer's processor.
It provides a platform-independent execution environment for Java programs.
JVM manages memory, handles garbage collection, and provides security features for Java applications.
Examples of JVM implementations include Oracle HotSpot, OpenJ9, and GraalVM.
Q193. Difference between python and Java
Python is a high-level, interpreted programming language known for its simplicity and readability. Java is a statically typed, object-oriented language.
Python is dynamically typed, while Java is statically typed
Python uses indentation for code blocks, Java uses curly braces
Python is commonly used for web development, data analysis, and artificial intelligence, while Java is often used for enterprise applications and Android development
Q194. Explain Inheritance with example
Inheritance is a concept in object-oriented programming where a class inherits attributes and methods from another class.
Inheritance allows a class to reuse code from another class
The class that is inherited from is called the parent class or superclass
The class that inherits is called the child class or subclass
Example: A 'Vehicle' class can be a parent class with attributes like 'color' and 'speed'. A 'Car' class can inherit from 'Vehicle' and add its own attributes like 'b...read more
Q195. Code to generate Fibonacci numbers
The Fibonacci sequence is a series of numbers where each number is the sum of the two preceding ones.
Start with two variables initialized to 0 and 1
Loop through desired number of iterations, adding the previous two numbers to get the next number
Store each number in an array
Q196. Ok with Flexible shift timing
Yes, I am okay with flexible shift timing as I understand the importance of adapting to the needs of the job.
I am willing to work different shifts to accommodate the needs of the team and the organization.
I understand that flexibility in shift timing is often necessary in the IT industry to ensure round-the-clock support.
I am adaptable and can easily adjust my schedule to meet the demands of the job.
Q197. List vs Tuple Difference
List and Tuple are both data structures in Python, but they have some key differences.
List is mutable, meaning its elements can be changed, added, or removed. Tuple is immutable, meaning its elements cannot be changed once assigned.
List uses square brackets [] to enclose its elements, while Tuple uses parentheses ().
List is typically used for collections of similar items, while Tuple is used for collections of different items.
List has more built-in methods and functions compa...read more
Q198. College Project Description
Developed a web-based inventory management system for a retail company.
Used HTML, CSS, and JavaScript for the front-end development.
Implemented PHP and MySQL for the back-end functionality.
Designed a user-friendly interface for easy navigation and data entry.
Incorporated features like real-time stock updates, sales tracking, and reporting.
Conducted testing and debugging to ensure system reliability and accuracy.
Q199. Advantages of Python
Python is a versatile, high-level programming language with a simple syntax and powerful libraries.
Easy to learn and use
Large standard library with many modules for various tasks
Cross-platform compatibility
Supports multiple programming paradigms
Used in various fields such as web development, data science, machine learning, and more
Q200. Pseudocode for Palindrome
Palindrome pseudocode checks if a word is the same when read forwards and backwards.
Convert the word to lowercase to avoid case sensitivity.
Loop through the word and compare the first and last characters.
If they are not the same, the word is not a palindrome.
If the loop completes without finding any mismatch, the word is a palindrome.
More about working at TCS
Top HR Questions asked in Nohitatu Technologies
Interview Process at Nohitatu Technologies
Top Assistant System Engineer Trainee Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month