Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

nashi informatics solutions


{ City } chennai
< Country > india
* Profession *
User No # 125947
Total Questions Posted # 479
Total Answers Posted # 668

Total Answers Posted for My Questions # 836
Total Views for My Questions # 366576

Users Marked my Answers as Correct # 0
Users Marked my Answers as Wrong # 0
Answers / { nashi informatics solutions }

Question { 859 }

What is a programming language?


Answer

o A programming language is a formal language comprised of instructions used to produce various kinds of output, primarily used to control the behavior of a computer.

Is This Answer Correct ?    0 Yes 0 No

Question { 832 }

What is the difference between compiled and interpreted languages?


Answer

o Compiled languages (e.g., C, C++) are translated into machine code by a compiler before execution.
o Interpreted languages (e.g., Python, JavaScript) are executed line-by-line by an interpreter without pre-compilation.

Is This Answer Correct ?    0 Yes 0 No


Question { 876 }

What are data structures?


Answer

o Data structures are ways of organizing and storing data to enable efficient access and modification. Examples include arrays, linked lists, stacks, queues, hash tables, and trees.

Is This Answer Correct ?    0 Yes 0 No

Question { 841 }

What are the main principles of OOP?


Answer

o Encapsulation: Wrapping data and methods that operate on the data into a single unit (class).
o Inheritance: Acquiring properties and behaviors from a parent class.
o Polymorphism: Performing a single function in multiple ways.
o Abstraction: Hiding the implementation details and exposing only the necessary features.

Is This Answer Correct ?    0 Yes 0 No

Question { 1037 }

What is Big-O notation?


Answer

o Big-O notation describes the performance or complexity of an algorithm in terms of the size of the input. Common examples:
 O(1)O(1): Constant time
 O(n)O(n): Linear time
 O(log⁡n)O(log n): Logarithmic time
 O(n2)O(n^2): Quadratic time

Is This Answer Correct ?    0 Yes 0 No

Question { 816 }

Explain recursion with an example.


Answer

o Recursion is a technique where a function calls itself to solve smaller sub-problems.
8. def factorial(n):
9. if n == 1:
10. return 1
11. else:
12. return n * factorial(n - 1)
13. print(factorial(5)) # Output: 120

Is This Answer Correct ?    0 Yes 0 No

Question { 938 }

What is the difference between SQL and NoSQL databases


Answer

o SQL (Structured Query Language): Relational databases (e.g., MySQL, PostgreSQL) use structured tables.
o NoSQL: Non-relational databases (e.g., MongoDB, Cassandra) store data in flexible, schema-less formats like JSON.

Is This Answer Correct ?    0 Yes 0 No

Question { 648 }

would you design a URL shortening service?


Answer

• Components:
o Frontend to accept long URLs and display short ones.
o Database to store mapping of short URLs to long URLs.
o Backend service to generate short URLs (e.g., using hashing).
o Caching for faster access to frequently accessed URLs.

Is This Answer Correct ?    0 Yes 0 No

Question { 1121 }

What is a primary key, and how is it different from a unique key?


Answer

• Primary Key:
o Ensures each row in a table is unique.
o Cannot contain NULL values.
o A table can have only one primary key.
• Unique Key:
o Ensures all values in a column are unique.
o Can contain a single NULL value.
o A table can have multiple unique keys.

Is This Answer Correct ?    0 Yes 0 No

Question { 1165 }

How do you retrieve the second highest salary from a table?


Answer

Using a subquery:
SELECT MAX(salary)
FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);
Using ROW_NUMBER():
SELECT salary
FROM (
SELECT salary, ROW_NUMBER() OVER (ORDER BY salary DESC) AS row_num
FROM employees
) ranked
WHERE row_num = 2;

Is This Answer Correct ?    0 Yes 0 No

Question { 1404 }

What is the difference between DELETE, TRUNCATE, and DROP?


Answer

• DELETE:
o Deletes specific rows from a table.
o Can have a WHERE clause.
o DML command (can be rolled back).
• TRUNCATE:
o Deletes all rows from a table.
o Faster than DELETE (does not log individual row deletions).
o DDL command (cannot be rolled back).
• DROP:
o Removes a table entirely (schema + data).
o DDL command.

Is This Answer Correct ?    0 Yes 0 No

Question { 1241 }

What are indexes, and what are the different types?


Answer

Indexes improve query performance by speeding up data retrieval.
Types of Indexes:
1. Clustered Index: Sorts and stores data physically in the table.
2. Non-clustered Index: Creates a separate structure to store pointers to the actual data.
3. Unique Index: Ensures all values in a column are unique.
4. Composite Index: Includes multiple columns in the index.

Is This Answer Correct ?    0 Yes 0 No

Question { 1137 }

Explain the concept of normalization.


Answer

Normalization is the process of organizing data to minimize redundancy and improve data integrity.
Normal Forms:
• 1NF: Eliminate repeating groups, ensure atomicity.
• 2NF: Ensure 1NF and remove partial dependencies.
• 3NF: Ensure 2NF and remove transitive dependencies.
• BCNF: Ensure every determinant is a candidate key.

Is This Answer Correct ?    0 Yes 0 No

Question { 1094 }

What is a CTE (Common Table Expression), and how is it different from a subquery?


Answer

• CTE: Temporary result set defined using WITH and reusable within the query. Improves readability for complex queries.
• Subquery: Nested query executed each time it is called. Example:
WITH SalesCTE AS (
SELECT employee_id, SUM(sales) AS total_sales
FROM sales
GROUP BY employee_id
)
SELECT * FROM SalesCTE WHERE total_sales > 5000;

Is This Answer Correct ?    0 Yes 0 No

Question { 1314 }

What are triggers, and when would you use them?


Answer

A trigger is a block of PL/SQL code automatically executed in response to certain events (e.g., INSERT, UPDATE, DELETE) on a table.
Example Trigger:
CREATE OR REPLACE TRIGGER EmployeeAudit
AFTER INSERT ON employees
FOR EACH ROW
BEGIN
INSERT INTO audit_log(employee_id, action, action_date)
VALUES (:NEW.id, 'INSERT', SYSDATE);
END;

Is This Answer Correct ?    0 Yes 0 No

Prev    1   ... 4   ... 7   ... 10   ... 13   ... 16   ... 19   ... 22   ... 25   ... 28   ... 31   ... 34   ... 37    41   [42]    43   Next