Infosys
600+ Herald Logic Interview Questions and Answers
Q201. Write a program to check whether a number is amstrong
Program to check if a number is Armstrong
Take input number from user
Find the number of digits in the number
Calculate the sum of each digit raised to the power of the number of digits
Compare the sum with the original number
If they are equal, the number is Armstrong
Q202. What is inheritance with to sample code
Inheritance is a mechanism in OOP where a class acquires properties and behaviors of another class.
Inheritance allows code reusability and promotes code organization.
The class that is being inherited from is called the parent or base class.
The class that inherits from the parent class is called the child or derived class.
The child class can access all the public and protected members of the parent class.
Example: class Car is a child class of class Vehicle, and inherits proper...read more
Q203. What do you know about cloud computing
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.
It offers scalability, flexibility, and cost-effectiveness compared to traditional on-premises computing.
Examples of cloud computing services include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.
Q204. Difference between private key and unique key
Private key is used for encryption and decryption while unique key is used for data integrity and uniqueness.
Private key is used in asymmetric encryption while unique key is used in relational databases.
Private key is kept secret while unique key can be shared.
Private key is used to sign digital certificates while unique key is used to enforce data constraints.
Examples of private key algorithms include RSA and ECC while examples of unique key include primary key and foreign k...read more
Q205. What is international roaming and how it works?
International roaming is a service that allows you to use your mobile phone while traveling abroad.
It enables you to make and receive calls, send and receive messages, and use data services while outside your home country.
Your mobile phone connects to a foreign network, and the charges for using the service are added to your bill.
The cost of international roaming varies depending on your carrier and the country you are visiting.
Some carriers offer international roaming packag...read more
Q206. Programming languages that you are comfortable in
I am comfortable in multiple programming languages including Java, Python, and C++.
Proficient in Java with experience in developing web applications using Spring framework
Skilled in Python for data analysis and machine learning projects
Familiar with C++ for developing high-performance applications
Also comfortable in scripting languages like Bash and Perl
Q207. Write query on joining 2 tables and display top 5 employee
Query to join 2 tables and display top 5 employees
Use JOIN keyword to combine tables based on a common column
Use ORDER BY clause to sort the employees
Use LIMIT clause to display only the top 5 employees
Q208. 2. what is cloud. Explain in detail about it.
Cloud is a network of remote servers that store, manage, and process data.
Cloud computing allows users to access data and applications from anywhere with an internet connection.
It offers scalability, flexibility, and cost-effectiveness compared to traditional on-premise solutions.
Examples of cloud services include Amazon Web Services, Microsoft Azure, and Google Cloud Platform.
Q209. What are Primary Keys and Foreign Keys?
Primary keys uniquely identify a record in a table, while foreign keys establish a link between two tables.
Primary keys are used to ensure data integrity and prevent duplicate records.
Foreign keys are used to establish relationships between tables and enforce referential integrity.
A foreign key in one table is a primary key in another table.
Example: A customer table may have a primary key of customer_id, while an orders table may have a foreign key of customer_id to link the ...read more
Q210. Where do we use DBMS in our daily lives?
DBMS is used in various applications like banking, healthcare, education, e-commerce, etc.
In banking, DBMS is used to store customer information, transaction details, and account details.
In healthcare, DBMS is used to store patient records, medical history, and test results.
In education, DBMS is used to store student information, grades, and attendance records.
In e-commerce, DBMS is used to store product information, customer orders, and payment details.
DBMS is also used in a...read more
Q211. What are aggregate functions in SQL?
Aggregate functions in SQL perform calculations on a set of values and return a single value.
Aggregate functions include COUNT, SUM, AVG, MAX, and MIN.
They are used with the SELECT statement to summarize data.
COUNT returns the number of rows in a table or a group of rows.
SUM returns the sum of values in a column.
AVG returns the average value of a column.
MAX returns the maximum value in a column.
MIN returns the minimum value in a column.
Q212. What is class and object?
Class is a blueprint or template for creating objects. An object is an instance of a class.
A class defines the properties and behaviors of objects.
An object is created from a class and has its own unique set of values for the properties defined in the class.
Classes can inherit properties and behaviors from other classes.
Objects can interact with each other through methods and properties.
Example: A class 'Car' can have properties like 'make', 'model', 'year', and behaviors lik...read more
Q213. What is quality assurance?
Quality assurance is the process of ensuring that a product or service meets the desired level of quality.
It involves creating and implementing quality standards and procedures.
It includes testing and inspecting products or services to ensure they meet the standards.
It also involves identifying and addressing any issues or defects in the product or service.
Quality assurance is important in industries such as manufacturing, software development, and healthcare.
Examples of qual...read more
Q214. What do you mean by oops concepts?
Oops concepts refer to the principles of Object-Oriented Programming (OOP) such as inheritance, encapsulation, polymorphism, and abstraction.
Inheritance: allows a class to inherit properties and methods from another class
Encapsulation: hiding the implementation details of a class from other objects
Polymorphism: the ability of objects to take on multiple forms or behaviors
Abstraction: focusing on the essential features of an object and ignoring the non-essential ones
Examples: ...read more
Q215. 2. Difference between Primary key and Candidate key
Primary key uniquely identifies a record in a table, while candidate key can also uniquely identify a record but is not chosen as primary key.
Primary key is a subset of candidate key
Primary key cannot have null values, while candidate key can
A table can have only one primary key, but multiple candidate keys
Example: In a table of employees, employee ID can be primary key while email ID can be a candidate key
Q216. Explain with example about access specifiers.
Access specifiers determine the level of access to class members.
Access specifiers are public, private, and protected.
Public members can be accessed from anywhere.
Private members can only be accessed within the class.
Protected members can be accessed within the class and its subclasses.
Example: class Car { private int speed; public void setSpeed(int s) { speed = s; } }
Q217. 1 coding questions Print prime number between 1-100
Print prime numbers between 1-100
Iterate through numbers 1-100
Check if each number is prime
Print prime numbers
Q218. Whay is different between c and java
C is a procedural programming language while Java is an object-oriented programming language.
C is a procedural programming language, focusing on functions and procedures.
Java is an object-oriented programming language, focusing on classes and objects.
C requires manual memory management, while Java has automatic garbage collection.
C is platform-dependent, while Java is platform-independent due to its bytecode compilation.
C supports pointers, while Java does not.
C has a simpler...read more
Q219. Spring vs Spring Boot differential for microservices architecture with rest apis
Spring Boot is a framework that simplifies the development of microservices with REST APIs compared to Spring.
Spring Boot provides auto-configuration and embedded servers for easy deployment.
Spring Boot reduces the need for boilerplate code and configuration compared to Spring.
Spring Boot allows for faster development and deployment of microservices.
Spring Boot is more opinionated and follows best practices out of the box.
Spring Boot is ideal for building standalone Spring ap...read more
Q220. Tell me about normal forms in sql
Normal forms in SQL are rules used to design relational databases to minimize redundancy and improve data integrity.
First Normal Form (1NF) - Eliminate repeating groups and ensure each column contains atomic values.
Second Normal Form (2NF) - Meet 1NF requirements and all non-key attributes are fully functional dependent on the primary key.
Third Normal Form (3NF) - Meet 2NF requirements and eliminate transitive dependencies between non-key attributes.
Boyce-Codd Normal Form (BC...read more
Q221. How do you define artificial intelligence
Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems.
AI involves machines performing tasks that typically require human intelligence, such as visual perception, speech recognition, decision-making, and language translation.
It encompasses various technologies like machine learning, natural language processing, computer vision, and robotics.
Examples of AI applications include virtual assistants like Siri and Alexa, s...read more
Q222. Pointer and unions Linear ds vs non linear ds Palindrome logic malloc vs calloc
Questions on pointers, unions, linear and non-linear data structures, palindrome logic, and malloc vs calloc.
Pointers are variables that store the memory address of another variable.
Unions are similar to structures but can only hold one value at a time.
Linear data structures have a sequential order, like arrays and linked lists.
Non-linear data structures do not have a sequential order, like trees and graphs.
Palindrome logic involves checking if a word or phrase reads the same...read more
Q223. Rate your C++ and tell me about your python coding skills
I rate my C++ skills as advanced and my Python skills as proficient.
I have experience in developing complex algorithms and data structures using C++.
I am comfortable with object-oriented programming concepts in C++.
In Python, I have worked on various projects including web scraping, data analysis, and automation.
I am familiar with popular Python libraries such as NumPy, Pandas, and Scikit-learn.
I have also used Python for scripting and building small applications.
Q224. What is sorting in array merge sort as quick sort?
Merge sort and quick sort are both sorting algorithms used to sort arrays.
Merge sort divides the array into two halves, recursively sorts them, and then merges them.
Quick sort selects a pivot element, partitions the array around the pivot, and recursively sorts the sub-arrays.
Both algorithms have a time complexity of O(n log n) in the average case.
Merge sort is stable, while quick sort is not.
Merge sort requires additional space for merging, while quick sort is an in-place so...read more
Q225. What is machine Learning?
Machine learning is a subset of artificial intelligence that enables machines to learn from data and improve their performance.
Machine learning involves training algorithms to make predictions or decisions based on data
It can be supervised, unsupervised, or semi-supervised
Examples include image recognition, natural language processing, and recommendation systems
Q226. What is software development cycle
Software development cycle is a process of designing, developing, testing, and deploying software.
It involves planning and analysis of requirements
Designing the software architecture and user interface
Coding and implementation of the software
Testing and debugging to ensure quality
Deployment and maintenance of the software
Iterative process that may involve multiple cycles
Q227. What are data types in C and C++
Data types in C and C++ are used to define variables and functions.
Data types specify the type of data that a variable can hold.
C and C++ have basic data types like int, float, char, etc.
They also have derived data types like arrays, pointers, structures, etc.
Data types are important for memory allocation and type checking.
Example: int num = 10; char letter = 'a'; float decimal = 3.14;
Q228. what is cpu? can you explain in simple words
CPU stands for Central Processing Unit, it is the brain of the computer responsible for executing instructions and processing data.
CPU is the main component of a computer that performs calculations and executes instructions.
It is responsible for processing data and controlling the overall operation of the computer.
Examples of CPUs include Intel Core i7, AMD Ryzen, and Apple M1 chips.
Q229. How can we fetch top rows in dataset?
To fetch top rows in a dataset, we can use the LIMIT clause in SQL.
Use the SELECT statement to specify the columns to retrieve.
Use the FROM statement to specify the table to retrieve data from.
Use the LIMIT clause to specify the number of rows to retrieve.
The syntax for LIMIT is: SELECT column_name(s) FROM table_name LIMIT number_of_rows;
For example, to retrieve the top 10 rows from a table called 'customers', the query would be: SELECT * FROM customers LIMIT 10;
Q230. Tell me the logic of reverse the number?
Reverse the number means to get the digits in the opposite order.
Extract the digits of the number using modulo operator
Multiply the reversed number by 10 and add the next digit
Repeat until all digits are processed
Q231. How many types of sortings are there?
There are various types of sorting algorithms used in computer science to arrange data in a specific order.
Some common types of sorting algorithms include bubble sort, insertion sort, selection sort, merge sort, quicksort, and heapsort.
Each sorting algorithm has its own advantages and disadvantages in terms of time complexity, space complexity, and stability.
For example, bubble sort repeatedly compares adjacent elements and swaps them if they are in the wrong order.
On the oth...read more
Q232. What is sdlc and stlc.
SDLC stands for Software Development Life Cycle, which is a process used by software development teams to design, develop, and test high-quality software products. STLC stands for Software Testing Life Cycle, which is a subset of SDLC focused on testing activities.
SDLC involves planning, designing, coding, testing, and deployment stages.
STLC involves test planning, test design, test execution, and test closure stages.
SDLC is a broader process that includes STLC as one of its ...read more
Q233. What is the Window function and why do we use
Window function is a mathematical function used in signal processing to analyze and modify signals.
Window function is used to reduce the effect of spectral leakage in Fourier analysis
It is also used to smooth data and reduce noise
Examples of window functions include Hamming, Hanning, and Blackman
Q234. What is authentication and authorization?
Authentication is the process of verifying the identity of a user, while authorization is the process of determining what resources a user can access.
Authentication confirms the identity of a user through credentials like passwords, biometrics, or security tokens.
Authorization determines the level of access a user has to resources based on their authenticated identity.
Examples of authentication include logging in with a username and password, using a fingerprint scanner, or e...read more
Q235. Write a program to print Fabonacci series
Program to print Fibonacci series
Declare variables for first two numbers of series
Use loop to generate next numbers in series
Print each number in the series
Q236. What is trigger ?
A trigger is a special type of stored procedure that automatically executes in response to certain events or changes in a database.
Triggers are used to enforce business rules or to perform complex calculations.
They can be used to audit changes to data in a database.
Triggers can be defined to execute before or after an INSERT, UPDATE, or DELETE statement.
They can also be used to validate data before it is inserted into a table.
Examples of triggers include sending an email noti...read more
Q237. Explain project , reverse of number and revers a string program
Explaining project, reverse of number and reverse a string program.
Project explanation should include its objective, scope, deliverables, timeline, and resources.
Reverse of a number program involves taking an input number and reversing its digits.
Reverse a string program involves taking an input string and reversing its characters.
Q238. What are Oops concepts in Java
Oops concepts in Java are the principles of Object Oriented Programming such as Inheritance, Polymorphism, Encapsulation, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Allows objects to be treated as instances of their parent class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Abstraction: Hides the implementation details and only shows the necessary features of an object.
Q239. Diff between c++ and Java DBMS SDLC Pointer
C++ is a compiled language with pointers, while Java is interpreted with garbage collection. DBMS is a software system for managing databases. SDLC is a process for developing software.
C++ is faster than Java due to compilation
Java has automatic garbage collection, while C++ requires manual memory management
DBMS is used to store, retrieve, and manage data in a database
SDLC includes planning, designing, building, testing, and maintaining software
Pointers in C++ allow direct me...read more
Q240. What is reinforcement?
Reinforcement is a process of increasing the likelihood of a behavior by adding a stimulus or consequence.
Reinforcement can be positive (adding a desirable stimulus) or negative (removing an aversive stimulus).
It can also be continuous (every instance of the behavior is reinforced) or intermittent (only some instances are reinforced).
Examples of reinforcement include giving a dog a treat for sitting on command, or removing a loud noise when a child stops crying.
Q241. Why python is your favourite language
Python is my favourite language because of its simplicity, versatility and vast community support.
Python has a simple and easy-to-learn syntax
It can be used for a wide range of applications, from web development to data analysis and machine learning
Python has a large and active community, which means there are plenty of resources and libraries available
Python is cross-platform, which means it can run on different operating systems without any modifications
Python is highly rea...read more
Q242. What does finally block do?
Finally block is used in exception handling to execute code regardless of whether an exception is thrown or not.
Finally block is always executed after try and catch blocks.
It is used to release resources like file handles, database connections, etc.
It is also used to perform cleanup operations like closing streams, deleting temporary files, etc.
Finally block can be used without catch block but not vice versa.
Example: try { //code that may throw exception } catch(Exception e) ...read more
Q243. What are the technologies you know?
I have knowledge in various technologies related to system engineering.
Operating systems: Windows, Linux, macOS
Virtualization: VMware, Hyper-V
Networking: TCP/IP, DNS, DHCP
Storage: SAN, NAS
Cloud Computing: AWS, Azure
Scripting: PowerShell, Bash
Monitoring: Nagios, Zabbix
Automation: Ansible, Puppet
Database: SQL, MySQL, Oracle
Security: Firewalls, VPNs, IDS/IPS
Q244. What is SDLC and explain each stage?
SDLC stands for Software Development Life Cycle, which is a process used by software development teams to design, develop, and test high-quality software.
1. Planning: Define the project scope, requirements, and create a project plan.
2. Analysis: Gather and analyze requirements from stakeholders.
3. Design: Create a detailed design of the software based on requirements.
4. Implementation: Develop the software based on the design.
5. Testing: Test the software to ensure it meets t...read more
Q245. How do you connect database to your code
To connect a database to code, use a database driver or ORM framework.
Choose a suitable database driver or ORM framework based on the programming language and database being used.
Install the necessary dependencies and configure the database connection settings.
Establish a connection to the database using the provided credentials.
Execute SQL queries or use ORM methods to interact with the database.
Handle errors and exceptions related to database connectivity and query executio...read more
Q246. Do you know about OOPS concepts?
Yes, Object-Oriented Programming (OOP) concepts are fundamental principles in software development.
OOP concepts include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Inheritance allows a class to inherit properties and behavior from another class.
Polymorphism enables objects to be treated as instances of their parent class.
Abstraction involves hiding the complex implementa...read more
Q247. what are data types , variables , keywords
Data types are classifications of data that determine the type of values that can be stored, variables are containers for storing data, and keywords are reserved words with special meanings in a programming language.
Data types classify the type of data that a variable can hold, such as integers, strings, or booleans.
Variables are used to store and manipulate data in a program, and are declared with a specific data type.
Keywords are reserved words in a programming language tha...read more
Q248. what is the oops principle in java?
The OOPs principle in Java stands for Object-Oriented Programming principles, which include concepts like inheritance, encapsulation, polymorphism, and abstraction.
OOPs principles help in designing and implementing modular, reusable, and maintainable code.
Inheritance allows a class to inherit properties and behavior from another class.
Encapsulation involves bundling data and methods that operate on the data into a single unit.
Polymorphism allows objects to be treated as insta...read more
Q249. Lazy loading, definition and example with a scenario of usage.
Lazy loading is a design pattern where resources are loaded only when needed.
Lazy loading helps improve performance by loading resources on demand.
Example: Images on a webpage are loaded only when they are about to be displayed, reducing initial load time.
Scenario: A website with a large number of images uses lazy loading to improve user experience by loading images as the user scrolls down the page.
Q250. Are you aware of emerging technologies?
Yes, I am aware of emerging technologies in the field of system engineering.
I stay updated on new developments in cloud computing, cybersecurity, and automation.
Familiar with technologies like DevOps, containerization, and artificial intelligence.
Attending conferences, webinars, and reading industry publications to keep up with the latest trends.
Q251. what is virtual dom in react js?
Virtual DOM is a lightweight copy of the actual DOM, used for efficient updates in React JS.
Virtual DOM is a concept in React JS that allows for efficient updates to the actual DOM.
It is a lightweight copy of the actual DOM that React uses to keep track of changes.
When a change is made to the virtual DOM, React compares it to the previous version and only updates the necessary changes to the actual DOM.
This results in faster and more efficient updates to the UI.
Example: When ...read more
Q252. Operating systems you are familiar with
I am familiar with Windows, Linux, and macOS operating systems.
Proficient in Windows operating systems, including Windows 7, 8, and 10
Experience with various Linux distributions, such as Ubuntu, CentOS, and Red Hat
Familiarity with macOS operating system and its features
Q253. What is C language? project details
C is a high-level programming language used for system programming, embedded systems, and game development.
C was developed by Dennis Ritchie at Bell Labs in 1972.
It is a compiled language and is known for its efficiency and low-level memory manipulation capabilities.
C is used in operating systems, device drivers, and firmware.
Popular software written in C includes the Linux kernel, MySQL, and Adobe Photoshop.
C is also commonly used in game development, with popular game engin...read more
Q254. Explain some basic commands of UNIX
Basic UNIX commands include ls, cd, pwd, mkdir, rm, cp, mv, cat, grep, and chmod.
ls - list directory contents
cd - change directory
pwd - print working directory
mkdir - make directory
rm - remove files or directories
cp - copy files
mv - move files
cat - concatenate and display files
grep - search text
chmod - change file permissions
Q255. Difference between inner join and left join
Inner join returns only matching rows from both tables while left join returns all rows from left table and matching rows from right table.
Inner join only returns rows where the join condition is true
Left join returns all rows from the left table and matching rows from the right table
Inner join is used to retrieve data from two or more tables with matching data
Left join is used to retrieve data from two or more tables with non-matching data
Example: SELECT * FROM table1 INNER ...read more
Q256. Letest version of HTML and Css
Latest version of HTML is HTML5 and latest version of CSS is CSS3.
HTML5 introduced new elements like <header>, <footer>, <nav>, <article>, <section>, <aside>, <figure>, <figcaption>.
CSS3 introduced features like border-radius, box-shadow, text-shadow, gradients, transitions, animations.
Q257. What is Encapsulation?
Encapsulation is the process of hiding implementation details and exposing only necessary information to the user.
Encapsulation is a fundamental concept in object-oriented programming.
It helps in achieving data abstraction and information hiding.
It allows for better control over the data and prevents unauthorized access.
Encapsulation is implemented using access modifiers such as public, private, and protected.
For example, a class may have private variables and public methods ...read more
Q258. 3.why Infosys?
Infosys is a leading global technology services and consulting company with a strong reputation for innovation and client satisfaction.
Infosys has a strong track record of delivering successful projects and solutions to clients
The company has a culture of continuous learning and development, providing opportunities for growth
Infosys is known for its focus on innovation and cutting-edge technologies
The company has a global presence and offers diverse career opportunities
Infosy...read more
Q259. what u know about data science
Data science is the field of extracting insights and knowledge from data using various statistical and computational techniques.
Data science involves collecting, cleaning, and analyzing large datasets
It uses statistical and machine learning techniques to extract insights and make predictions
Data visualization is an important aspect of data science to communicate findings
Examples of data science applications include fraud detection, recommendation systems, and predictive maint...read more
Q260. what are different phases of SDLC
SDLC has 6 phases: planning, analysis, design, implementation, testing, and maintenance.
Planning: define project scope, objectives, and requirements
Analysis: gather and analyze user requirements
Design: create a detailed design of the system
Implementation: develop and code the system
Testing: verify that the system meets requirements
Maintenance: make changes and updates to the system as needed
Q261. Difference between interface and Abstraction.
Interface defines the contract between two entities while Abstraction hides the implementation details.
Interface is a blueprint of a class that defines the methods and properties that a class must implement.
Abstraction is a way of hiding the implementation details of a class and exposing only the necessary details to the user.
Interface is used for achieving multiple inheritance in Java.
Abstraction is used for achieving loose coupling and modularity in software design.
Interfac...read more
Q262. Write database code from your project
Database code for a project
Use SQL queries to create tables, insert data, and retrieve information
Ensure proper indexing and normalization for efficient data storage and retrieval
Implement security measures like user authentication and access control
Optimize queries and database performance through query tuning and indexing
Handle database backups and recovery procedures
Q263. Write code which creates a pattern
Code to create a pattern using arrays of strings
Use nested loops to iterate through rows and columns
Define the pattern using characters or symbols
Print or store the pattern as desired
Q264. Difference between concrete class and abstract class
Concrete class is a class that can be instantiated, while abstract class cannot be instantiated and serves as a blueprint for other classes.
Concrete class can have both concrete and abstract methods, while abstract class can only have abstract methods.
Concrete class can be directly used to create objects, while abstract class cannot be directly used to create objects.
Concrete class provides implementation for all its methods, while abstract class provides partial or no implem...read more
Q265. What is interceptor? Why is it used?
An interceptor is a software component used to intercept and modify requests and responses in a system.
Interceptors are commonly used in web development to add authentication, logging, or error handling to HTTP requests.
They can be used to modify the request headers, body, or URL before it is sent to the server.
Similarly, they can modify the response headers or body before it is received by the client.
Interceptors are often used in frameworks like Angular or Spring to impleme...read more
Q266. What is Java virtual machine
Java virtual machine (JVM) is a software that executes Java bytecode.
JVM is responsible for interpreting the compiled Java code and executing it on the host machine.
It provides a platform-independent environment for Java programs to run on different operating systems.
JVM consists of three main components: class loader, runtime data area, and execution engine.
JVM also provides features like memory management, garbage collection, and security.
Examples of JVM-based languages inc...read more
Q267. What is static method
A static method is a method that belongs to a class rather than an instance of the class.
Static methods can be called without creating an instance of the class.
They cannot access non-static variables or methods of the class.
They are often used for utility functions or for creating factory methods.
Example: Math.max() is a static method that returns the maximum of two numbers.
Q268. Difference between pass by value pass by references
Pass by value copies the value of a variable, while pass by reference passes the memory address of the variable.
Pass by value creates a new copy of the variable, while pass by reference uses the original variable.
Pass by value is used for simple data types like integers and floats, while pass by reference is used for complex data types like arrays and objects.
Pass by value is faster but less flexible, while pass by reference is slower but more flexible.
Pass by value can lead ...read more
Q269. main pillars of oops ,constructors,difference b/w c/c++/java.
Main pillars of OOPs are encapsulation, inheritance, polymorphism, and abstraction. Constructors are special methods used to initialize objects.
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 fe...read more
Q270. Write queries to update, alter and create tables.
Queries to update, alter, and create tables in SQL.
Use UPDATE statement to modify existing data in a table.
Use ALTER TABLE statement to add, modify, or drop columns in a table.
Use CREATE TABLE statement to create a new table in the database.
Q271. brief of sdlc what is oops concept
SDLC is a process of developing software while OOPs is a programming paradigm based on objects.
SDLC stands for Software Development Life Cycle and includes phases like planning, designing, coding, testing, and maintenance.
OOPs stands for Object-Oriented Programming and focuses on creating objects that interact with each other to solve a problem.
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation is the process of hiding data and metho...read more
Q272. What is OOPS?
OOPS stands for Object-Oriented Programming System. It is a programming paradigm based on the concept of objects.
OOPS is a way of organizing and designing code around objects
It emphasizes encapsulation, inheritance, and polymorphism
Objects have properties and methods that can be accessed and manipulated
Examples of OOPS languages include Java, C++, and Python
Q273. What is normalization
Normalization is the process of organizing data in a database to eliminate redundancy and improve data integrity.
Normalization helps in reducing data redundancy by breaking down a database into multiple tables.
It ensures that each piece of data is stored only once, reducing storage space.
Normalization also improves data integrity by preventing anomalies like update, insert, and delete anomalies.
There are different levels of normalization, such as first normal form (1NF), seco...read more
Q274. Describe Oops concept with real world examples?
Oops concept is a programming paradigm that focuses on objects and classes to organize code and improve reusability.
Oops concept stands for Object-Oriented Programming System
It includes concepts like inheritance, polymorphism, encapsulation, and abstraction
Real world examples include a car (object) with properties like color, model, and methods like start, stop, accelerate
Another example is a bank account (object) with properties like balance, account number, and methods like...read more
Q275. recent complex activity performed in project
Designed and implemented a complex network infrastructure for a multinational company
Analyzed the company's requirements and constraints
Designed a scalable and secure network architecture
Implemented the network infrastructure using Cisco routers and switches
Configured VLANs, OSPF, BGP, and VPNs
Performed extensive testing and troubleshooting
Documented the network topology and configuration
Q276. What do you know about oops concepts?
OOPs concepts refer 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 to present the same interface for different data types.
Abstraction: Hiding the complex implementation details and showing only the necessary features.
Q277. Difference between list and topple?
A list is an ordered collection of elements, while a topple is an unordered collection of key-value pairs.
A list maintains the order of elements, while a topple does not.
In a list, elements are accessed using their index, while in a topple, values are accessed using their keys.
Lists allow duplicate elements, while topples do not.
Lists are represented using square brackets [], while topples are represented using curly braces {}.
Q278. What is hash map and hash table
Hash map and hash table are data structures that store key-value pairs for efficient retrieval.
Hash map and hash table use a hash function to map keys to indices in an array.
Hash map and hash table have constant time complexity for insertion, deletion, and retrieval.
Hash map and hash table differ in their collision resolution strategies, with hash map using chaining and hash table using open addressing.
Examples of hash map and hash table include Python's dict, Java's HashMap,...read more
Q279. How will find a given number is prime
A number is prime if it is only divisible by 1 and itself.
Check if the number is less than 2, if yes then it is not prime
Check if the number is divisible by any number from 2 to the square root of the number
If the number is not divisible by any number from 2 to the square root of the number, then it is prime
Q280. What is pass in python, explain oops
Pass in Python is a null operation that does nothing. OOPs is a programming paradigm based on the concept of objects.
Pass is a keyword in Python that is used as a placeholder for an empty block of code.
It is used when a statement is required syntactically but you do not want any command or code to execute.
OOPs is a programming paradigm that focuses on the use of objects to design applications.
It is based on the concepts of encapsulation, inheritance, and polymorphism.
Encapsul...read more
Q281. Tell me about class and objects
Classes are blueprints for creating objects in object-oriented programming. Objects are instances of classes with their own unique attributes and behaviors.
Classes define the properties and behaviors that objects of that class will have.
Objects are instances of classes that can store data and perform actions.
Classes can inherit properties and behaviors from other classes through inheritance.
Objects can interact with each other by sending messages and calling methods.
Example: ...read more
Q282. What is Dailect in Hibernate?
Dialect in Hibernate is a configuration setting that defines the type of database used.
Dialect is responsible for generating SQL statements specific to the database.
It handles the differences in SQL syntax and data types between different databases.
Examples of dialects include MySQLDialect, OracleDialect, and PostgreSQLDialect.
Q283. What is Data Structures
Data structures are ways of organizing and storing data in a computer so that it can be accessed and used efficiently.
Data structures are used to manage large amounts of data efficiently
They can be implemented using arrays, linked lists, trees, graphs, and other methods
Examples include stacks, queues, hash tables, and binary search trees
Q284. Which are the trending technologies?
Artificial Intelligence, Cloud Computing, Internet of Things (IoT), Blockchain, and Cybersecurity are trending technologies.
Artificial Intelligence (AI) is being used in various industries for automation and decision-making.
Cloud Computing is becoming popular due to its scalability, flexibility, and cost-effectiveness.
Internet of Things (IoT) is being used to connect devices and enable data exchange.
Blockchain is being used for secure and transparent transactions.
Cybersecurit...read more
Q285. Which Programming language do you know
I am proficient in programming languages such as Java, Python, C++, and SQL.
Java
Python
C++
SQL
Q286. Write a program to find the factorial of given number
Program to find factorial of a given number
Create a function that takes an integer input
Initialize a variable to store the factorial value
Use a loop to multiply the factorial value by each number from 1 to the input number
Return the factorial value
Q287. difference between java and other programming languages
Java is a high-level, object-oriented programming language known for its platform independence and robustness.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
Java is object-oriented, allowing for modular and reusable code
Java has automatic memory management through garbage collection
Java has a large standard library with built-in functions for common tasks
Java is statically typed, catching errors at compile time rather than runt...read more
Q288. Why C++?
C++ is a powerful and versatile programming language widely used in system engineering.
C++ offers high performance and low-level control, making it suitable for system-level programming.
It supports object-oriented programming, allowing for modular and reusable code.
C++ has a large standard library and a vast ecosystem of third-party libraries and frameworks.
It provides features like templates, exception handling, and memory management.
C++ is used in various domains such as op...read more
Q289. What is recursion and it's example?
Recursion is a process in which a function calls itself as a subroutine.
Recursion is used to solve problems that can be broken down into smaller, simpler problems.
It involves a base case and a recursive case.
Example: Factorial function, Fibonacci sequence, Binary search, Tower of Hanoi.
Q290. What is oops. Why it is used
OOPs stands for Object-Oriented Programming. It is used to create modular and reusable code.
OOPs is a programming paradigm that focuses on objects and their interactions.
It allows for encapsulation, inheritance, and polymorphism.
Encapsulation helps to hide the implementation details of an object from the outside world.
Inheritance allows for the creation of new classes based on existing ones.
Polymorphism allows for the use of a single interface to represent multiple types of o...read more
Q291. What are the OOP principles in Java ?
OOP principles in Java include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit (class).
Inheritance: Allows a class to inherit properties and behavior from another class.
Polymorphism: Ability to present the same interface for different data types.
Abstraction: Hiding the implementation details and showing only the necessary features of an object.
Q292. What is implication of oops concept?
OOPs concept helps in organizing code into reusable and maintainable components.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allowing 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.
Q293. Difference between two stroke and four stroke engine
Two stroke engines have a power stroke every revolution, while four stroke engines have a power stroke every other revolution.
Two stroke engines have a simpler design and are lighter than four stroke engines.
Four stroke engines are more fuel efficient and produce less emissions than two stroke engines.
Examples of two stroke engines include chainsaws and dirt bikes, while examples of four stroke engines include cars and motorcycles.
Two stroke engines require a mixture of oil a...read more
Q294. SELF INTRODUCTION OOPS CONCEPTS IMPLEMENT ABSTRACTION IN PYTHON
I am a System Engineer with knowledge of OOPs concepts and implementation of abstraction in Python.
OOPs concepts include encapsulation, inheritance, and polymorphism.
Abstraction in Python can be implemented using abstract classes and interfaces.
Abstract classes cannot be instantiated and must be subclassed to be used.
Interfaces define a set of methods that a class must implement.
Example of abstraction in Python: abstract base class 'ABC' from the 'abc' module.
Example of inter...read more
Q295. What is space & time complexity?
Space and time complexity refer to the amount of resources required by an algorithm to solve a problem.
Space complexity refers to the amount of memory required by an algorithm to solve a problem.
Time complexity refers to the amount of time required by an algorithm to solve a problem.
Both space and time complexity are usually expressed in terms of Big O notation.
The lower the space and time complexity of an algorithm, the more efficient it is.
For example, a linear search algor...read more
Q296. Tell me about OOPs concept.
OOPs concept stands for Object-Oriented Programming which is a programming paradigm based on the concept of objects.
OOPs focuses on creating objects that have properties and methods
Encapsulation, Inheritance, and Polymorphism are the three main pillars of OOPs
OOPs allows for modular and reusable code
Examples of OOPs languages include Java, C++, and Python
Q297. How to perform backups and restores
Backups and restores are performed by creating copies of data and restoring them in case of data loss.
Identify the data to be backed up and the frequency of backups
Choose a backup method such as full, incremental or differential
Select a backup location such as cloud, external hard drive or tape
Test the backup and restore process regularly to ensure data integrity
In case of data loss, restore the data from the backup location
Q298. What is null value pointer?
A null value pointer is a pointer that does not point to any memory location.
A null value pointer is often used to indicate that a pointer is not currently pointing to a valid memory location.
Attempting to dereference a null value pointer will result in a segmentation fault or access violation.
Null value pointers can be assigned to pointers of any data type.
Example: int *ptr = NULL; // ptr is a null value pointer
Q299. What is RDBMS explain it
RDBMS stands for Relational Database Management System. It is a software system used to manage relational databases.
RDBMS is used to store and manage data in a structured manner
It uses tables to store data and relationships between them
It supports SQL (Structured Query Language) for querying and manipulating data
Examples of RDBMS include MySQL, Oracle, SQL Server, and PostgreSQL
Q300. What are data types in c language
Data types in C language define the type of data that a variable can store.
Basic data types include int, float, char, double, etc.
Derived data types include arrays, pointers, structures, unions, etc.
Example: int num = 10; char letter = 'A'; float value = 3.14;
Top HR Questions asked in Herald Logic
Interview Process at Herald Logic
Top System Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month