Infosys technical interview pyqs for freshers with answers
12 September 2024

Infosys technical interview pyqs for freshers with answers. 100% selection, no doubt. Part 2

By deepblogs.net
Spread the knowledge

Table of Contents

Infosys technical interview pyqs for freshers with answers:

Here are Infosys technical interview pyqs for freshers with answers, you can practise them(Infosys technical interview pyqs for freshers with answers) for your interview for Infosys(Infosys technical interview pyqs for freshers with answers).

Q)Explain pointers in C++. (Infosys technical interview pyqs for freshers with answers)

Solution:

In C++, pointers are variables that store the memory address of another variable. They allow for direct memory manipulation and efficient array handling.

Key Points:

  • Declaration: type* pointerName; (e.g., int* ptr;)
  • Initialization: Use the address-of operator & to get the address of a variable (e.g., ptr = &var;).
  • Dereferencing: Use the asterisk * to access the value at the address stored in the pointer (e.g., int value = *ptr;).
  • NULL Pointer: A pointer that is explicitly set to nullptr (C++11 and later) or NULL to indicate it does not point to any valid memory location.

Q)What is meant by a null pointer? (Infosys technical interview pyqs for freshers with answers)

Solution:

A null pointer is a pointer that does not point to any valid memory location. It is typically used to indicate that the pointer is not currently assigned to any object or valid address.
  • Representation: In C++, a null pointer is represented by nullptr (C++11 and later) or NULL.
  • Purpose: Helps to avoid accidental access to invalid memory and serves as a sentinel value to signify that the pointer is uninitialized or intentionally empty.

Q)What is DBMS? (Infosys technical interview pyqs for freshers with answers)

Solution:

A Database Management System (DBMS) is software that manages, organizes, and controls access to a database. It provides an interface for users to interact with data, ensuring data integrity, security, and efficient retrieval and manipulation.

Key Functions:

  • Data Storage: Stores data in a structured format.
  • Data Retrieval: Allows querying and retrieval of data.
  • Data Management: Handles updates, deletions, and additions.
  • Data Security: Ensures authorized access and data protection.
  • Data Integrity: Maintains accuracy and consistency of data.

Q)What are the different advantages of DBMS. (Infosys technical interview pyqs for freshers with answers)

Solution:

Here are some key advantages of using a Database Management System (DBMS):

  1. Data Redundancy Control: Reduces data duplication by storing data centrally.
  2. Data Integrity: Enforces rules to maintain accuracy and consistency.
  3. Data Security: Provides access control mechanisms to protect data from unauthorized access.
  4. Efficient Data Retrieval: Uses indexing and query optimization to quickly retrieve data.
  5. Concurrent Access: Supports multiple users accessing and modifying data simultaneously without conflicts.
  6. Backup and Recovery: Offers tools for data backup and recovery to protect against data loss.
  7. Data Abstraction: Provides a user-friendly interface that hides complex data storage details.
  8. Reduced Data Management Costs: Centralizes data management, reducing administrative overhead.
  9. Flexibility and Scalability: Easily accommodates changes and scales with growing data needs.

Q)List the disadvantages of the Waterfall model? (Infosys technical interview pyqs for freshers with answers)

Solution:

The Waterfall model has several disadvantages:

  1. Inflexibility: Changes in requirements are difficult to implement once a phase is completed.
  2. Late Testing: Testing occurs late in the process, which may lead to discovering issues late.
  3. Assumes Static Requirements: Works well only if requirements are well-understood and stable from the beginning.
  4. Risk of Overlooking User Needs: Users may not see the product until later stages, potentially leading to misalignment with their needs.
  5. Sequential Process: Difficult to go back to a previous phase without starting over, which can be inefficient and costly.

Q)What do you mean by Agile model? (Infosys technical interview pyqs for freshers with answers)

Solution:

The Agile model is a flexible and iterative approach to software development that emphasizes collaboration, customer feedback, and rapid delivery of functional software.

Key Features:

  1. Iterative Development: Breaks the project into small, manageable iterations or sprints, each delivering a part of the functionality.
  2. Customer Collaboration: Involves regular feedback from customers and stakeholders to ensure the product meets their needs.
  3. Adaptability: Allows for changes in requirements even late in the development process.
  4. Continuous Improvement: Focuses on regular assessment and improvement of processes and deliverables.
  5. Cross-Functional Teams: Encourages collaboration among diverse team members, including developers, testers, and business analysts.

Q)Explain Object-Relational DBMS? (Infosys technical interview pyqs for freshers with answers)

Solution:

An Object-Relational Database Management System (ORDBMS) is a database management system that combines features of both relational databases and object-oriented databases. It allows for the storage and retrieval of complex data types, including objects and their relationships, while using SQL for querying and management.

Key Features:

  • Support for Complex Data Types: Can handle objects, arrays, and user-defined types alongside traditional relational data.
  • Object-Oriented Features: Supports object-oriented concepts such as inheritance and encapsulation within the database schema.
  • Enhanced Querying: Uses SQL extensions to query complex data structures and relationships.

Q)What is database Schema? (Infosys technical interview pyqs for freshers with answers)

Solution: A database schema is the structural design of a database. It defines how data is organized, including the tables, fields, data types, relationships, and constraints. Essentially, it serves as a blueprint for how the database is constructed and how data is stored and accessed.

Q)What do you mean by .DLL and .EXE file extension? (Infosys technical interview pyqs for freshers with answers)

Solution:

  • DLL (Dynamic Link Library):
    • Definition: A file containing code and data that multiple programs can use simultaneously.
    • Purpose: Provides reusable functions and routines, allowing code sharing and modularization across applications.
  • EXE (Executable):
    • Definition: A file that contains a program capable of being executed by the operating system.
    • Purpose: Runs a standalone application or program when executed.

Q)Explain what is a frame in HTML? (Infosys technical interview pyqs for freshers with answers)

Solution:

In HTML, a frame refers to a section of a web page that can display content independently of other sections. Frames are created using <iframe> elements, which allow embedding another HTML document within the current page.

  • Purpose: Enables the inclusion of external content, like other web pages or multimedia, within a page layout.
  • Usage: Often used for embedding ads, maps, or other web content within a webpage.

Q)What is an IC? What is its importance? (Infosys technical interview pyqs for freshers with answers)

Solution:

An IC (Integrated Circuit) is a semiconductor device that combines multiple electronic components (such as transistors, resistors, and capacitors) into a single compact package.

Importance:

  • Miniaturization: Reduces the size and weight of electronic devices by integrating numerous components into one chip.
  • Cost-Efficiency: Lowers production costs and improves reliability by manufacturing complex circuits on a single chip.
  • Performance: Enhances performance by reducing the distance between components, which improves signal speed and reduces power consumption.

Q)Write a program to check whether the input number is a perfect number or not. (Infosys technical interview pyqs for freshers with answers)

Solution:

import java.util.Scanner;

public class PerfectNumberChecker {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);

// Input from user
System.out.print(“Enter a number: “);
int number = scanner.nextInt();

// Check if the number is a perfect number
if (isPerfectNumber(number)) {
System.out.println(number + ” is a perfect number.”);
} else {
System.out.println(number + ” is not a perfect number.”);
}

scanner.close();
}

// Method to check if a number is perfect
public static boolean isPerfectNumber(int num) {
int sum = 0;

// Find all divisors and sum them
for (int i = 1; i <= num / 2; i++) {
if (num % i == 0) {
sum += i;
}
}

// A number is perfect if the sum of its divisors equals the number itself
return sum == num;
}
}

How the Program Works:

  1. Input: Reads a number from the user.
  2. Check: Uses the isPerfectNumber method to determine if the number is perfect.
    • The method calculates the sum of all proper divisors of the number.
    • It checks if the sum is equal to the original number.
  3. Output: Prints whether the number is perfect or not

Q)What do you know about DSN? (Infosys technical interview pyqs for freshers with answers)

Solution:

DSN (Data Source Name) is a data structure used to define a data source in a database connection. It provides a way to identify and configure connections to databases.

Key Points:

  • Purpose: Simplifies database connection management by storing connection details such as database type, server name, database name, and authentication information.
  • Usage: Commonly used in ODBC (Open Database Connectivity) and JDBC (Java Database Connectivity) to facilitate connecting to databases without hardcoding connection details in the application.

Q)Differentiate between white box and black box testing. (Infosys technical interview pyqs for freshers with answers)

Solution:

White Box Testing:

  • Definition: Tests the internal structure, design, and implementation of the software. Also known as clear box or glass box testing.
  • Focus: Examines code, logic, and the flow of the program.
  • Approach: Testers need knowledge of the code and algorithms used in the application.
  • Techniques: Includes unit testing, code coverage, and path testing.
  • Advantages: Identifies security vulnerabilities and logical errors; ensures all code paths are tested.
  • Disadvantages: Requires programming knowledge and access to source code; may miss issues related to the user interface and functionality.

Black Box Testing:

  • Definition: Tests the software’s functionality without knowledge of its internal workings. Also known as behavioral or functional testing.
  • Focus: Examines what the software does based on specified requirements and user expectations.
  • Approach: Testers do not need knowledge of the code or internal logic.
  • Techniques: Includes functional testing, boundary testing, and equivalence partitioning.
  • Advantages: Validates user requirements and functionality; tests software from an end-user perspective.
  • Disadvantages: May not cover all code paths; can miss implementation-specific issues.

Q)Explain different levels of programming languages. (Infosys technical interview pyqs for freshers with answers)

Solution:

Programming languages can be classified into different levels based on their abstraction from machine code. Here are the primary levels:

  1. Machine Language:
    • Definition: The lowest-level language, consisting of binary code (0s and 1s) that the computer’s CPU directly executes.
    • Characteristics: Hardware-specific and difficult for humans to read and write.
  2. Assembly Language:
    • Definition: A low-level language that uses symbolic names and opcodes to represent machine instructions.
    • Characteristics: Provides a slight abstraction over machine code, making it easier to read and write, but still closely tied to hardware.
  3. High-Level Language:
    • Definition: A more abstract language that is closer to human language and further from machine code. Examples include C++, Java, and Python.
    • Characteristics: Easier to write, read, and maintain; often includes features for managing data and controlling program flow without needing detailed hardware knowledge.
  4. Very High-Level Language (VHLL):
    • Definition: Languages that offer even higher abstraction, focusing on specific problem domains. Examples include SQL for database queries and HTML for web content.
    • Characteristics: Designed for specific tasks or applications, often with more user-friendly syntax and built-in functions.

Q)What is the difference between a Clustered-index and a non-clustered-index? (Infosys technical interview pyqs for freshers with answers)

Solution:

Clustered Index:

  • Definition: Defines the order in which data is physically stored in the table. The table rows are sorted based on the clustered index key.
  • Characteristics:
    • Single per Table: Each table can have only one clustered index because the data rows can be sorted in only one order.
    • Data Storage: The index determines the physical order of data rows on disk.
    • Efficiency: Optimizes range queries and sorting operations because data is stored in sorted order.

Non-Clustered Index:

  • Definition: Creates a separate structure from the data table, which contains a sorted list of references (pointers) to the actual data rows.
  • Characteristics:
    • Multiple per Table: A table can have multiple non-clustered indexes, allowing different ways to access data.
    • Data Storage: The index is stored separately from the data table, with pointers to the actual data rows.
    • Efficiency: Useful for speeding up queries that use columns not included in the clustered index, and supports faster lookups for specific values.

Q)Difference between C & embedded C. (Infosys technical interview pyqs for freshers with answers)

Solution:

C:

  • Definition: A general-purpose programming language used for a wide range of applications, including system and application software.
  • Usage: Commonly used in software development for operating systems, desktop applications, and high-level algorithms.
  • Standard Libraries: Includes extensive standard libraries and functions for general computing needs.
  • Platform Independence: Code is usually portable across different operating systems and hardware platforms, provided a compatible compiler is available.

Embedded C:

  • Definition: An extension of C specifically designed for programming embedded systems (hardware with dedicated functions).
  • Usage: Used in firmware development for microcontrollers and embedded processors found in devices like appliances, automotive systems, and IoT devices.
  • Hardware Interaction: Provides specific features for interacting with hardware, such as direct memory access, hardware registers, and real-time operations.
  • Resource Constraints: Optimized for performance and memory usage, considering the limited resources (memory, processing power) of embedded systems.
  • Standard Libraries: May include libraries and headers specific to hardware interfaces and low-level operations, often not part of standard C.

Q)Write a C++ program to check whether a number is palindrome or not. (Infosys technical interview pyqs for freshers with answers)

Solution:

#include <iostream>
using namespace std;

bool isPalindrome(int num) {
int original = num; // Store the original number
int reversed = 0;
int remainder;

// Reverse the number
while (num > 0) {
remainder = num % 10; // Get the last digit
reversed = reversed * 10 + remainder; // Append digit to reversed number
num /= 10; // Remove the last digit
}

// Check if the original number and reversed number are the same
return (original == reversed);
}

int main() {
int number;

// Input from user
cout << “Enter a number: “;
cin >> number;

// Check if the number is a palindrome
if (isPalindrome(number)) {
cout << number << ” is a palindrome.” << endl;
} else {
cout << number << ” is not a palindrome.” << endl;
}

return 0;
}

Thank You For visiting our website. In our website, you get more such educational content so don’t forget to allow the notification for more such content.

For more visit: https://deepblogs.net/category/educational-courses/