Professional Documents
Culture Documents
Technical Qs Ans
Technical Qs Ans
Answer 1.
Encapsulation
• It helps to bind the data and function together to manipulate the data.
Abstraction
• It is an extension of encapsulation.
Polymorphism
Inheritance
Answer 2.
SDLC stands for Software Development Life Cycle. It refers to the phase of work involved in producing
software applications. It enables the production of high-quality but cost-effective software.
• Requirement Gathering
• Planning
• Development/Implementation
• Testing
• Deployment
• Maintenance
Answer 3.
Agile is a set of principles for software development that emphasizes flexibility, collaboration, and
customer value. Scrum is a specific framework within Agile that has a structured approach with
defined...read more
Agile and DevOps are two widely used practices in software development. Both aim to deliver quality
software promptly. While there are many similarities between DevOps and Agile, there also
exist...read more
The main difference between Agile and Waterfall methodologies lies in their fundamental
approaches to software or product development. Waterfall, being a traditional and sequential model,
follows a structured path, while...read more
Answer 4.
A constructor is a special member function of a class with the same name as the class name.
• The constructor name has the same name as the class name
• More than one constructor can be declared inside a class with different parameters.
Answer 5.
Both abstract class and interface in java helps in achieving abstraction. They are similar in nature yet
differ from each other when it comes to their usage. Let’s see what...read more
The tutorial article below covers data abstraction using abstract class in Java with examples and
explanations.
Interface in Java Explained
The below Java Tutorial Article explains the interface in Java with examples. Moreover it covers
multiple inheritance through interfaces using examples.
Ques 6. What is the difference between DELETE, DROP, and TRUNCATE in SQL.
Answer 6.
It removes one or more records from It removes all the rows from the It completely removes the table
the table existing table from the database
It is slower than the DROP and It is faster than both the DELETE It is faster than DELETE but slower
TRUNCATE commands as it deletes one and TRUNCATE commands as it than TRUNCATE as it firstly deletes
row at a time base on the specified deletes all the records at a time the rows and then the table from
conditions. without any condition. the database.
SQL TRUNCATE TABLE command is used to remove the record from the table. Confused, the SQL
DELETE statement also removes the record from the table. So, why use another command...read
more
How to use DROP command in SQL?
In SQL, the DROP command is used to delete a database, table, index, or view. To use the DROP
command, you must be very careful because it permanently deletes the...read more
Delete statement is very important statement in SQL.This article covers delete statement with
condition and without condition( with proper syntax and examples)
Answer 7.
C C++
Supports built-in data types. Supports built-in and user-defined data types.
Answer 8.
List Tuple
The list is mutable. Tuples are immutable.
Creating a list is a slower process as it needs two memory blocks to be Creating a tuple is faster than the
accessed. list.
Confused with what list and tuples in Python. Don’t worry the article will clear all your doubts. List
and Tuple in Python are the data structures that store and manipulate...read more
In this guide, you will learn all about Tuples in Python: creating tuples, accessing tuple items, looping
through a tuple, and other tuple operations with the help of examples.
In this guide, you will learn all about lists in Python: accessing lists, changing list elements, looping
through a list, and other list operations with examples.
Ques 9. What is Pass and Break statement in Python?
Answer 9.
Pass:
Break:
Answer 10.
Cloud computing is a virtual space that delivers hosted services over the Internet, including servers,
databases, networking, analytics, and intelligence, ensuring innovation, flexibility, and cost-
effectiveness. It uses capabilities like data analytics, machine learning, artificial intelligence, and
others according to the industry requirements.
Cloud computing is a virtual environment that delivers hosted services such as servers, databases,
networking, analytics, and intelligence over the internet, ensuring innovation, flexibility, and cost-
effectiveness. Cloud computing has transformed...read more
On-demand self-service, broad network access, and being highly elastic and scalable are some of the
fundamental characteristics of cloud computing. The characteristics of cloud computing explain why
cloud computing is...read more
Answer 11.
The sorting algorithm arranges the elements of a list or array in a specific order. There are different
sorting algorithms that can be used to perform the sorting operation.
• Heap Sort
• Quicksort Algorithm
• In the insertion sort algorithm, the 1st element is taken and is considered to be sorted. Then,
the second element is considered and is compared with the key elements taken and is
integrated until the array is not sorted.
Answer 12.
Classes Objects
Answer 13.
Structure Array
Collection of variables of different data type. Collection of variables of same data type.
Elements may not be stored in contiguous memory Elments are stored in contiguous memory
locations. locations.
‘Struct’ is used to declare the structure. There is no keyword to declare the arrays.
Searching an element takes more time than arrays. Searching an element takes less time.
Knowledge of data structures and algorithms defines the programmers and their coding skills. Hence,
it inevitably becomes essential to learn and implement the data structure for a software engineer.
The...read more
A data structure is an orderly arrangement of data in the computer memory so that it can be used
more efficiently. Data structures are a crucial part of computer science....read more
Implementing Array in Java
Arrays in Java help to maintain elements of same datatype under a single variable name. The below
article explains the implementation of array in java with examples.
Ques 14. What is the difference between UNION and JOIN in SQL?
Answer 14.
JOIN UNION
Combines multiple tables based on the matching fields Combines the result of multiple SELECT
(columns) statements
Number of the selected field may or may not be the same number of the selected field must be the same
Data type of column may or may not be the same Data type of column must be same
Combine the data in column and may or may not return Combine the data in row and must return
distinct columns distinct rows
Right Join in the sql returns all the rows from the right table and the matching entries from both
tables. In this article, we will discuss how to use right...read more
SQL JOINS are used to extract the record from two or more interrelated tables. In the previous
article, we briefly discussed SQL INNER JOIN. In this article, we will discuss...read more
INNER JOIN in SQL
SQL JOINS are used to combine more than two or more tables together to extract the useful data
from all the tables. In this article, we will discuss INNER JOIN...read more
Ques 15. What is the difference between Primary and Unique key?
Answer 15.
Used as a unique identifier for each record in It is also used as a unique identifier when the primary key is
the table. not present.
A table can have only one primary key. A table can have multiple unique keys.
In databases, keys are crucial for data organization and integrity. The primary key uniquely identifies
each record, while foreign keys establish table relationships. Candidate keys meet uniqueness and
minimality criteria,...read more
Humans identify everything using names. For example, you, I, and everyone have unique names as
our identity. There are several situations where two persons have similar first names. In those...read
more
FOREIGN KEY IN SQL
Foreign key concept is very important concept in SQL. This article explains creation, addition and
deletion of foreign key. This article explains foreign key in SQL. It also explains the...read more
Answer 16.
class Create_New_String_Reverse_String
char ch;
for(int i=0;i<n;i++) {
ch = str1.charAt(i);
Reverse_String = ch + Reverse_String;
Copy code
Output
There are different methods to reverse the string. In the above example, we have shown how to
reverse a string in Java. Check out the below articles to know different methods:
Answer 17.
#Define a function
def isPalindrome(string):
if (string == string[::-1]) :
else:
print(isPalindrome(string))
Copy code
Output
Answer 18.
#Generate the Fibonacci Number using Loop
F_0 = 0
F_1 = 1
for n in range(0, num): #Febonacci number is defined only for positive integer
if(n<=1):
F_n = n # this will only return the first two fibonacci numbers
else:
F_0 = F_1
F_1 = F_n
print(F_n)
Copy code
Ques 19. How to print the prime number in a given interval in Python?
Answer 19.
lower = 9
upper = 100
if num > 1:
if (num % i) == 0:
break
else:
print(num)
Copy code