Sie sind auf Seite 1von 15

GLOBAL LOGIC(INDUS LOGIC) PLACEMENT PAPER PATTERN

COMPANY PROFILE
Founded in 1998, Induslogic is a leading software development services providerheadquartered in the Northern Virginia area with a development center in NewDelhi, India. In contrast to many companies in the same sector, Induslogic isthe first US company with a wholly owned subsidiary in India. The company wasfounded to address growing enterprise software businesses' needs to reduce thetime and expense required to develop and maintain software solutions. Theprimary differentiators of Induslogic are - an exclusive focus on commercialgrade enterprise software, an unmatched quality of engineers (almost exclusivelyrecruiting Indian Institute of Technology graduates), the use of industrystandard tools and methodology, and a complete guarantee on work.

SetOne

Question 1. What is the output of the following code when compiled and run?Select two correct answers.

public class Question01 {

public static void main(String[] args){

int y=0; //line 1

int x=z=1; //line 2

System.out.println(y+","+x+","+z); //line 3

A. Prints 0,1,1

w w w .E xa m Fe ar .c om

B. Error during compilation at line 1

C. Prints 0,0,1

D. Error during compilation at line 3

E. Error during compilation at line 2

Question 2. Select three correct statements.

The garbage collection thread cannot outlive the last user thread.

The garbage collection can be forced by invoking System.gc().

The garbage collection thread is a non-deamon thread.

The finalize() method is invoked at most once by the JVM for any given object.

The finalize() method may resurrect the object upon which it has been invoked.

Question 3. What is the output of the following code when compiled and run?Select one correct answer.

import java.io.*;

public class Question05 {

public static void main(String[] args) {

Question05Sub myref = new Question05Sub();

try{

w w w .E xa m Fe ar .c om

myref.test();

}catch(IOException ioe){}

void test() throws IOException{

System.out.println("In Question05");

throw new IOException();

class Question05Sub extends Question05 {

void test()throws IOException {

System.out.println("In Question05Sub");

A. Prints:

In Question05Sub

B. Prints:

In Question05

C. Prints:

In Question05

w w w .E xa m Fe ar .c om

In Question05Sub

D. Prints:

In Question05Sub

In Question05

E. The code does not compile.

Question 4. Select two correct statements about the code given below?

class A{}

class B extends A implements E{} //line 1

class C extends A{}

class D extends B{}

interface E{}

public class Question07 {

public static void main(String[] args) {

A a = new D(); //line 2

C c = new C(); //line 3

E e = (E)a; //line 4

B b = (B)e; //line 5

w w w .E xa m Fe ar .c om

The code compiles without error and runs fine.

Compilation error on line 1 because interface E is not yet declared(forward-referencing).

Compilation error on line 4 because class A does not implement interface E.

The cast on line 4 is mandatory.

The cast on line 5 is not mandatory.

Question 5. How many objects are eligible for garbage collection immediatelyafter line 1? Select one correct answer.

public class Question08 {

public static void main(String[] args) {

Question08 q08 = new Question08();

q08.doSomething(); //line 1

Thread.sleep(20000);

public void doSomething(){

Object[] objArray = new Object[2];

for(int i=0;i

w w w .E xa m Fe ar .c om

objArray[i] = new Object();

Question 6. What is the output of the following code when compiled and run?Select one correct answer.

public class Question09 {

public static void main(String[] args) {

try {

int i = (int)(Math.random()*10);

if(i<=5)

System.out.println("i = "+i);

else

w w w .E xa m Fe ar .c om

throw new Exception("i > 5");

} catch (Exception e){

System.err.println(e.getMessage()+" (i="+i+")");

The output cannot be determined.

Compilation error.

An exception is thrown at runtime.

Output is i = 2

Output is i > 5 (i=6)

Question 7. What is the output of the following code when compiled and run?Select one correct answer.

public class Question10 {

public static void main(String[] args) {

new Question10().doSomething();

public void doSomething(){

w w w .E xa m Fe ar .c om

int i=5;

Thread t = new Thread(new Runnable(){

public void run(){

for(int j=0;j<=i;j++){

System.out.print(" "+j);

});

t.start();

Prints 0 1 2 3 4

Compilation error.

No output.

IllegalThreadStateException is thrown at runtime.

Prints 0 1 2 3 4 5

Question 8. What is the output of the following code when compiled and run?Select one correct answer.

w w w .E xa m Fe ar .c om

public class Question11 {

public static void main(String[] args) {

StringBuffer buf1 = new StringBuffer("Hello W");

addSomeStuff(buf1);

System.out.println(buf1.toString());

public static void addSomeStuff(StringBuffer buf){

StringBuffer b = buf.replace(6,10,"orld");

System.out.println(b.delete(0,1).toString());

A. Prints

Hello World

Hello World

B. Prints

Hello orld

Hello orld

C. Prints

Hello orld

w w w .E xa m Fe ar .c om

ello orld

D. Prints

ello orld

ello orld

E. Compilation error.

Question 9. What is the output of the following code when compiled and run?Select two correct answers. (Note: when an instance of a Vector is printed, itscontent appear between square brackets [])

import java.util.*;

public class Question13 {

public static void main(String[] args) {

Vector col = new Vector();

col.add(new Integer(1));

col.add(new Integer("2"));

col.add(new Float(3.2d)); //line 1

col.add(col.elementAt(1));

col.setElementAt(col.elementAt(2),0);

System.out.println(col);

w w w .E xa m Fe ar .c om

Compilation error on line 1.

Only line 1 won't compile.

The code compiles and runs fine.

Prints [3.2, 2, 3.2, 2]

Prints [1, 2, 3.2, 2]

Question 10. Select three correct statements.

A static method may override another static method.

A static method cannot override a non-static method.

A non-static method cannot override a static method.

A non-static method may be overloaded by a static method.

A synchronized method cannot be overridden.

SetTwo
I m going share some q. which I remember?.

1). in following option which takes less memory space:-

w w w .E xa m Fe ar .c om

a).struct{ char a;float b; int c; }

b). union (float a; int b;}

c). char a[10];

d).int *p ={2,3,4,8}; ans.:-b(wat I choose)

2). what is the correct sequence of compiler

ans.:source prog.>preprocessor program>compiler(lexical>suntacticanalyzer(or parser)>semantic analyzer>code genration)>linker/loader

3).Which is not balanced tree;

a).red black tree

b).avl tree

c)?.

4). wat is complexity of quick sort

5). How many filp flopes is used in 10 bit ring counter.

mathematical section is easy but technical portin is little bit tough.

Tech . Interview

w w w .E xa m Fe ar .c om

My interview was held at 8.:30 of night .there were two person in interviewpanel. it was approx 45 min. along .

They asked me that wat ?s my favourite subject ,

As my area of interest is programming , I told him programming in c-language ,concepts of data structure and concepts of oops, I convincingly said that sir Im vry comfort with programming.. they asked me algo. of merge sort.. reallyfriend this was the topic which I left because I find it little bit crucial butI made algo which resemble program by my own logic .

I said them that sir I m unable to write standard algo. but I implement themerge sort concept by my own logic, I convenced my whole algo and they impressedby it .

Further they asked abt. avl tree and their rotation ,they give a problem relateto rotation of avl tree and said to peform appropriate rotation to get heightbalance tree.

Further they asked about binary search and give me array to apply binarysearch.f

Frther asked that wat scanf function return.

I really forget that I said them sir I forget . they asked is it true, I saidyes sir scanf function return something but I m not recalling , in addiotion Isaid about print function and their return value.

At last they asked a puzzle and I successfully solved it the puzzle is:- thereis three basket , one hold apple , other hold orange and third one hold appleorange both. we don?t know in which basket wat is , basket are wrongly labeledmeans wat is label of basket , basket doesn?t fall in that situation. we areallowed to pick only one fruit from each basket and judge that wat fruit baskethold.

really friends this was vry interactive session. inetialy I was nervous butlater I respond vry freely. sometimes I felt that this was not technicalinterview , this is technical discussion to that person, they are vry friendly.at last they asked u have any question. I asked :-

1. Sir,there is any need to learn and to know abt the company before joiningcompany

they said: we have three month training prog. so u think u have any need tolearn

w w w .E xa m Fe ar .c om

I said:no sir

2) wat is my professional growth in ur company.

3) in which field I have to improve.

HR interview
this was tahen by hr mam and it was abt 15 min. long. she asked me abt myeducational background , family background, my strength and weakness,careeeobjective.

further she asked :honestly said if u r not this field thn in field u might.

I replied: I were a traveler

she asked: why?

I replied: I want to travel whole world , I want to understand the people, theirthinking , their behaviour, their culture.

she asked: If u r not selected then wat u will do?

I gave a little smile and replied: no problem mam, I work out on my weakness andtry to remove them.

she asked: upto u who is a deservable candidate for my company.

I asked: mam included me or except me.

she said: except u.

I picke name of my batch mate who was also appearing in the interview.

she asked: why?

I explained lots of skils of them. it is so niece for me that he is alsoselected .

w w w .E xa m Fe ar .c om

Little bit question on my exta curricular activities and hobby.

so friend prepare abt ur technical knowledge , they were seeking only atechnical and logical brain person while they were less emphasizing oncommunication.

At 11:30 of night result was declared and I was among the selected candidate......

w w w .E xa m Fe ar .c om

Das könnte Ihnen auch gefallen