Monday, February 4, 2008

Global Logic

COMPANY PROFILE

Founded in 1998, Induslogic is a leading software development services provider headquartered in the Northern Virginia area with a development center in New Delhi, India. In contrast to many companies in the same sector, Induslogic is the first US company with a wholly owned subsidiary in India. The company was founded to address growing enterprise software businesses' needs to reduce the time and expense required to develop and maintain software solutions. The primary differentiators of Induslogic are - an exclusive focus on commercial grade enterprise software, an unmatched quality of engineers (almost exclusively recruiting Indian Institute of Technology graduates), the use of industry standard tools and methodology, and a complete guarantee on work


PAPER ON 23rd Feb 2007 GLOBAL LOGIC

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

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{

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

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

}

}

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 immediately after 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

objArray[i] = new Object();

}

}

}

0

1

2

3

4

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 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(){

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. 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 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, its content 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); } } 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. PAPER 2ND I m going share some q. which I remember…. 1). in following option which takes less memory space:- 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>suntactic analyzer(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

My interview was held at 8.:30 of night .there were two person in interview panel. 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 I m vry comfort with programming.. they asked me algo. of merge sort.. really friend this was the topic which I left because I find it little bit crucial but I made algo which resemble program by my own logic .

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

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

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

Frther asked that wat scanf function return.

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

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

really friends this was vry interactive session. inetialy I was nervous but later I respond vry freely. sometimes I felt that this was not technical interview , 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 joining company

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

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 my educational background , family background, my strength and weakness,careee objective.

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, their thinking , 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 and try 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 also selected .

Little bit question on my exta curricular activities and hobby.

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

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

ALL THE BEST <>

No comments:

2008 Placement papers of Top MNC companies

eXTReMe Tracker