0% found this document useful (0 votes)
16 views8 pages

Extrieve Programming Interview Questions

The document outlines a series of interview questions and topics related to Java, C, C++, SQL, and general programming concepts, including OOP principles, data structures, and algorithms. It also includes HR-related questions regarding salary, relocation, and project experience. Additionally, it features coding challenges and pseudocode explanations to assess the candidate's technical skills.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views8 pages

Extrieve Programming Interview Questions

The document outlines a series of interview questions and topics related to Java, C, C++, SQL, and general programming concepts, including OOP principles, data structures, and algorithms. It also includes HR-related questions regarding salary, relocation, and project experience. Additionally, it features coding challenges and pseudocode explanations to assess the candidate's technical skills.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Extrieve hr round

Introduction .

What is oops in java .

Explain Polymorphism (run time and compile time with example ) .

What is collection .

Why we use collection .

Difference between static and non static .

Explain Binary search .

About projects.

Do you want to relocate?

Do you know the address of our company?

3 months of intership they will pay 19000 inhand 17000

After successful completion of internship the salary will be 25000 inhand 20000

What are the language you know ?

C , c++ , java

merge sort bubble sort binary search swapping inheritance which inheritance is not possible
pseudocode interface static non static

final double d1 = [Link];

final double d2 = [Link];

[Link](d1 == d2);

while(1){

int i = 0;

[Link]("i = %d%n", i);


i++;

if(i == 2) break;

final double d = 1 / 2;

[Link](d);

Write a program that follows the given input and output using C

input : [2,1,2,1,0,1,3,5,4,0,2,0]

output : [0,0,0,1,1,1,2,2,2,3,4,5]

Find which letter has the most occurencies in this Sentence?

"Sally swiftly sailed across the shimmering sea"

what is array, object ,polymorphism etc.

sql I was asked about pattern matching , what is primary key, union, intersect and minus

what is sql

1. What is multi threading in java?

2. Opps concept

3. What is inheritance?

4. Difference between do and do-while loop.

5. For loop syntax

6. While (true) {

Int a=0;

a++;
[Link](a);

If (a==5)

Break;

Output?

JAVA

1. If you have any project on Java then explain that.

2. While & Do-While loop.

3. Pseudocode

4. Polymorphism

5. Interface

6. Multiple Inheritance

SQL

1. Primary Key & Forign Key

2. Queries on WHERE clause

what is class

oops

inheritance

which inheritance not possible through class

collection

homogeneous and heterogeneous

list and arraylist

method overloading

method overriding

jdk jre jvm

abstract class

abstraction

interface

abstract class and interface difference


2)Find which letter has the most occurencies in this Sentence?

"Sally swiftly sailed across the shimmering sea"

Questions asked from resume

Intro About project What is pointers What is calloc & malloc. Is string present in C? How can we
declare a string in C? How can we declare String whose length is unknown in C? What is a
constructor. Class? Methods? What is OOPs? pillars of oops. What is interface? What is Abstraction?
What is Inheritance and which is not possible in Java?And how can I achieve it? Give 3 Pseudo codes
and ask for the output. Swap numbers without a third variable.

Extrieve:

what is java..

[Link]

[Link]

3. Coding questions on bubble sort

4. full basics of javascript events, selectors, Arrays, Object

5. Html, css full question

6.C language questions..

Extreieve Interview Question

Tell me about yourself

For which role you are giving interview

In which language you are comfortable

what is the diff b/w java and c++

what is java

what is jdk, jvm, jre, jit

what is datatype explain java datatypes

what is oops concept

why java is not 100% oops concept

why we use public static void in the main method

what is class, object


Explain inheritance with all the types

Explain polymorphism

What is Interface, Abstraction and diff

What is finally ? why we use it ?

What is exception handling

What is Threading, multithreading

diff b/w throw and throws

diff b/w i++ and i+1

diff b/w statement, prepared statement and callable statement

what is servlet

explain the type of mapping

what is collection

diff b/w array and arraylist

what is sql

what is html tag

what is iframe

how can we build a responsive website? and without media query how can we build ?

Some pseudocode and explain the pseudocodes and changing it and after that what will be the
answers

2 coding questions

1. Write a Java program

input array : []2,1,2,1,0,6,3,5,4,0,2,0] output : [0,0,0,2,1,2,1,6,3,5,4,2]

2. In the given string which letter have most occurrence

"Sally swiftly sailed across the shimmering sea"

I did mistake in the 1st code

Rather than I answer all the questions

[Link] keyword

[Link] between array in java and array in js


[Link] and odd number

[Link]

[Link] key, FK

[Link] and truncate difference

[Link] handling

[Link] we use finally in catch block finally is executed or not

[Link]

10.c/c++ difference

[Link]

12. group by

[Link] in c

Introduce yourself,tell me about your project,c++ pointers

All oops concepts , pseudo code, swapping two numbers, Functional pointer, collection

What is the difference between this keyword in java and javascrit?

Describe all the oops concept.

Difference between java and c++.

What is the difference between while and do-while?

What do you know about collection?

Difference between c and c++.

A string will be there. You have to find the letter which has the most number of occurence.

How to achieve multiple inheritance.

What is exception handling?

What is the difference between throw and throws?

What is the purpose of satck and jvm?

Define package in java.

Can we declare pointer in java(No, The main reason is that Java was designed with safety and
simplicity in mind. By eliminating pointers, Java reduces the risk of memory leaks and other common
programming errors. Pointers can be tricky to work with, especially for inexperienced programmers,
as they require a good understanding of memory management and can easily lead to bugs and
crashes if not used correctly.)

Define wrapper classes in java.

Difference between abstract class and interface.


find the 2nd largest no of an array using only single loop without inbuilt methods

2nd round

reverse a string without using any inbuit method polymorphism postfix increment and prefix
increment programs on rtp and ctp difference between structure and union

1) Write a program that follows the given input and output using Java

input : [2,1,2,1,0,6,3,5,4,0,2,0]

output : [0,0,0,2,1,2,1,6,3,5,4,2]

2) Find which letter has the most occurencies in this Sentence?

"Sally swiftly sailed across the shimmering sea"

3) class?

4) Object?

5) Output----

i)

while(1){

int i = 0;

[Link]("i = ", i);

i++;

if(i == 2) break;

ii)

final double d1 = [Link];

final double d2 = [Link];

[Link](d1 == d2);
6) What is pointer variable? Why it is used?

7) == and === difference in c/C++/java;

8) Introduction

9) Internships ?

10) How much you know about c and c++

1. find 2nd largest value 8n given array

2. check leap year or not

3. rotate array 90 degree

HR Round

1. Tell me about yourself and your family?

2. Are you ok with the salary?

3. You have to work with different technology as per the project? Are you ok with this.

4. What are the project you developed for your final year?

Common questions

Powered by AI

Polymorphism in Java is the ability of a single interface to represent different types of objects and methods. Compile-time polymorphism, also known as method overloading, occurs when multiple methods with the same name exist in a class with different parameters. The method to be executed is determined at the compile time. For example, a class may have methods `add(int a, int b)` and `add(double a, double b)` for addition operations. Runtime polymorphism, or method overriding, involves methods with the same name and parameters in different classes related by inheritance. The decision on which method to execute is made during runtime. For instance, if a superclass `Animal` has a method `makeNoise()`, and subclasses `Dog` and `Cat` override this method, the actual method to be called is determined by the object's actual type during runtime .

In JDBC, a `statement` is a SQL statement that is executed directly, making it suitable for SQL commands run only once. A `prepared statement` is a precompiled SQL statement that can be executed multiple times with different inputs, benefitting from improved performance and safety against SQL injection attacks. `Callable statements` are used to execute stored procedures in a database, allowing complex operations to be executed in a controlled environment. Each type serves unique requirements: `statements` for simple, quick executions; `prepared statements` for batch processing; and `callable statements` for complex procedure calls .

Multiple inheritance is not supported in Java directly through classes to prevent the complexity and ambiguity it introduces. However, it can be achieved using interfaces. In Java, a class can implement multiple interfaces, allowing it to inherit the behavior from multiple sources. Each interface can define methods that the implementing class will provide, which effectively simulates multiple inheritance. For instance, if there are interfaces `Interface1` and `Interface2`, a class `MyClass` can implement both interfaces, thereby inheriting behaviors from both .

Wrapper classes in Java encapsulate primitive data types within an object, allowing those primitives to be used where objects are required, such as in Collections and Generics. Java provides a wrapper class for each of the primitive types, like `Integer` for `int`, `Double` for `double`, and so on. These classes provide utility methods for parsing, converting, and manipulating the values of primitive data types. Wrapper classes are essential for situations where an object representation of a primitive is necessary, enabling interoperability with Java's object-oriented features .

Binary search is an efficient algorithm for finding an element's position within a sorted array. It works by repeatedly dividing the search interval in half. If the value of the search key is less than the item in the middle of the interval, the search continues in the lower half; otherwise, it continues in the upper half. This process is repeated until the value is found or the interval is empty. Binary search is most efficient when used on a sorted dataset, reducing the time complexity to O(log n) as it eliminates half of the remaining elements during each comparison .

In Java, static elements belong to the class itself rather than to any specific instance of the class. This includes static variables and static methods, which means they can be accessed without creating an instance of the class. Conversely, non-static elements are tied to the particular instance of the class, which means you must create an instance to access them. Static methods cannot access non-static variables or methods directly due to their lack of association with an instance. Non-static methods, however, can access static variables and methods .

The `throw` and `throws` keywords in Java serve different purposes related to exception handling. The `throw` keyword is used within a method to explicitly throw an exception, either a newly instantiated one or a re-thrown caught instance. It is followed by an instance of the `Throwable` class or its subclasses like `Exception`. `Throws`, on the other hand, is a keyword included in a method's declaration indicating that the method might throw exceptions of the specified types, which must be handled by the calling method. This is used for checked exceptions, allowing them to propagate upwards in the stack .

The `public static void main(String[] args)` method serves as the entry point of any standalone Java application. The method must be `public` to be accessible by the JVM, `static` so it can be invoked without instantiating the class, `void` as it does not return any value, and accepts a `String` array to handle command-line arguments. This signature allows the JVM to locate and call the method to begin executing an application, thus following a standardized entry mechanism for Java programs .

In Java, an array is a fixed-size, homogeneous data structure to store elements indexed directly and occupies contiguous memory locations. An ArrayList is part of the Java Collections Framework and offers dynamic resizing, meaning it can adjust its size as elements are added or removed. While arrays offer better performance due to fixed memory allocation, an ArrayList provides more flexibility and convenience with automatic resizing and rich collection methods. Arrays are preferable when the size of the list is known and constant, whereas ArrayLists are better suited for applications where data size might vary .

Exception handling in Java is a means to manage runtime errors, ensuring the normal flow of application execution is maintained. It uses the `try`, `catch`, `finally`, `throw`, and `throws` keywords to handle exceptions gracefully without stopping the application's execution. The importance of exception handling lies in increasing the robustness and reliability of the software by catching unexpected conditions and errors, handling them appropriately, and allowing programmers to provide custom error messages or remedial actions. It aids developers in debugging and maintaining Java applications effectively .

You might also like