Persistent Technical Interview Questions

Persistent Technical Interview Questions and Answers 2024

On this page, you will get the most recently asked technical questions as well as answers in the Persistent Technical Interview 2024.

Page Highlights:

  • Persistent Test Pattern
  • Top 20 Persistent Technical Interview Questions

Persistent Test Pattern

Persistent Assessment Details No. of Questions Time
Computer Science 20 Questions 20 minutes
English Comprehension 12 Questions 15 minutes
Logical Ability 12 Questions 15 minutes
Automata 2 Questions 45 minutes

Top 20 Persistent Technical Interview Questions

Question 1: What do you mean by preprocessor directives?

Answer:

Preprocessor directives are generally found on a distinct line at the top of the source code, beginning with the character “#,” followed by the directive name and optional whitespace. Preprocessor directives are used to make altering and compiling source code in multiple execution environments easier.

Question 2:- What is buffer overflow?

Answer:

A buffer overflow happens when a program or process attempts to write more data to a fixed-length block of memory, or buffer, than the buffer, is designed to hold. Buffers are designed to hold a specific quantity of data.

Question 3: What is a “Default Gateway”?

Answer:

The IP address of the router in the network serves as the default gateway. In any case, if the user wishes to connect to another network or if they are unable to discover their specific network, their inquiry will be routed to the default gateway.

Questions 4: How does Java enable high performance?

Answer:

Java utilizes a Just In Time compiler to achieve great performance. The instructions are converted into bytecodes using JIT.

Question 5: What are linear and nonlinear data Structures?

Answer:

  • Linear: If the elements of a data structure form a sequence or a linear list, the structure is said to be linear. The array is one example. 
  • Non-Linear: A data structure is considered to be non-linear if the traversal of nodes is nonlinear. Graphs and trees are two examples.

Question 6: What is DHCP and what it is used for?

Answer:

DHCP is the full form of Dynamic Host Configuration Protocol. It is used to assign IP addresses to several computer systems in a network. It makes it very simple to manage a lot of IPs.

Question 7: What is .net core?

Answer:

The most recent general-purpose programming platform supported by Microsoft is called .NET Core. It works across multiple platforms and has been overhauled to make.NET quick, flexible, and modern. This is actually one of Microsoft’s most significant contributions. Developers may now use.NET to create Open Source applications for Android, iOS, Linux, Mac, and Windows.

Question 8: What do you mean by FIFO?

Answer:

First In First Out is a data structure management method that processes the oldest element first and the newest element last.

Questions 9: What is a subnet?

Answer:

A logical division of an IP network is referred to as a subnetwork or subnet. Subnetting is a computer networking technology that separates a larger network address space into smaller, independent ones.

Question 10: What are arrow functions?

Answer

The arrow function is one of the new features of the JavaScript ES6 version. It enables you to create functions in a cleaner manner than conventional functions.

Question 11: Write a code for Heap sort.

Question 12: Write a code for printing pyramid star pattern.

num = int(input("Enter the Number: "))

for i in range(0, num):
    for j in range(0, num-i-1):
        print(" ", end="")
    for j in range(0, i*2+1):
        print("*", end="")
    print()
								

Question 13: Write a code for the deletion in AVL Tree using a program using JAVA.

Question 15: Write a C++ program for implementing a queue using two stacks.

Question 16: Write a code to calculate the area of a circle using C and C++.

Question 18: Write a program to move all the negative elements to one side of the array.

Question 19: Write a JAVA program to trap rain water problem

public
class Main {
    public
    static int maxWater(int[] arr, int n) {
        // To store the maximum water
        // that can be stored
        int res = 0;
        // For every element of the array
        // except first and last element

        for (int i = 1; i < n - 1; i++) {
            // Find maximum element on its left
            int left = arr[i];
            for (int j = 0; j < i; j++) {
                left = Math.max(left, arr[j]);
            }
            // Find maximum element on its right
            int right = arr[i];
            for (int j = i + 1; j < n; j++) {
                right = Math.max(right, arr[j]);
            }
            // Update maximum water value
            res += Math.min(left, right) - arr[i];
        }
        return res;

    }
    // Driver code
    public
    static void main(String[] args) {
        int[] arr = {0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1};
        int n = arr.length;
        System.out.print(maxWater(arr, n));
    }
}
								

Question 20: Write a program to explain the insertion in binary search tree.