News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Birlasoft Placement Papers

Started by Kalyan, Jul 20, 2008, 06:24 PM

Previous topic - Next topic

Kalyan

Birlasoft Placement Papers

1 With every use of memory allocation function should be used to release allocated memory which is no longer needed ?

a) dropmem()

b) dealloc()

c) release()

d) free()


2 Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?

a) int *ptr = (int *) calloc(10,sizeof(int));

b) int *ptr = (int *) alloc( 10*sizeof(int));

c) int *ptr = (int *) malloc( 10*sizeof(int));

d) int *ptr = (int *)calloc(10*sizeof(in...


3 Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?

a) int *ptr = (int *) calloc(10,sizeof(int));

b) int *ptr = (int *) alloc( 10*sizeof(int));

c) int *ptr = (int *) malloc( 10*sizeof(int));

d) int *ptr = (int *)calloc(10*sizeof(in...


4 Which one of the following represents a correct and safe declaration of NULL ?

a) typedef((void *)0) NULL;

b) typedef NULL(char *)0;

c) #define NULL((void *)0)

d) #define NULL((char*)0)


5 Which one of the following represents a correct and safe declaration of NULL ?

a) typedef((void *)0) NULL;

b) typedef NULL(char *)0;

c) #define NULL((void *)0)

d) #define NULL((char*)0)


6 Which of the following statements is true when a derivation inherits both a virtual and non-virtual instance of a base class ?

a) Each derived class object has base objects only from the non virtual instance

b) Each base class object has derived objects only from the non-virtual instance

c) Each derived...


7 Which of the following best explains life cycle of Defect ?

a) Defect Found -> Defect Logged -> Defect Debugged -> Defect Closed -> Defect Rechecked

b) Defect Found -> Defect Debugged -> Defect Reported -> Defect Rechecked ...


8 Which is not the characteristic of a view ?

a) Consumes Disk space for data

b) Multiple tables

c) Multiple rows

d) Update able


9 Which group does Winrunner, Load Runner, SQA Suite fall under ?

a) Databases

b) Automated Test Tools

c) Operating Systems

d) Rapid Application Development Tool


10 What relationship is resolved by an "intersecting" or "associative" entity ?

a) Recursive

b) Mandatory one to one

c) Many to Many

d) One to One

11 What is the largest value an integer can hold in a Standard C compiler ?

a) 32767

b) 65536

c) 2147483647

d) INT_MAX


12 What function will read a specified number of elements from a file ?

a) fread()

b) readfile()

c) fileread()

d) gets()

13 RDBMS triggers are typically bound to a _____________and one or more _____________

a) Table, SQL statement types

b) SQL statement type, user

c) Column, rows

d) User, tables


14 process id of kernel

(a) 1

(b) 0

(c) 2

(d) none


15 Modern RDBMS perform the following the following function except ___________.

a) Force column values in one table to match any of the values in a column of another table

b) Automatically replicate data on another server

c) Automatically create new indexes base...


16 Make a copy of file "upper" in the directory two levels up .

a) jump -2 upper

b) cp upper ../..

c) cp upper -2/

d) None of the above


17 kernel executes the first process when system starts

ans :- init();

18 int a=1;

int ab=4;

int main()

{

int b=3,a=2;

printf("%i*/%i*/%*/i",a,b,ab);

}


What will be the output?

19 i = 0;

j = 0;

for(j=1;j<10;j++)

i=i+1;

In the (generic) code segment above what will be the value of the variable i at completion ?

a) 0

b) 1

c) 3

d) 9


20 class Word


{

public:

Word(const char*, int = 0);

};


Referring to the sample code above what is the minimum number of arguments required to call the constructor ...


a) 0

b) 1

c) 2

d) 3


21 class professor{}


class teacher: public virtual professor{};

class researcher: public virtual professor {}

class myprofessor :public teacher, public researcher {};

a) 0

b) 1

c) 2

d) 3


22 What is the function of the modulus operator in most languages ?


a) Sets a system environmental value to either base 10, base 8 or base 16

b) Returns the remainder after dividing one number by another

c) Returns the first argument raised to the se...


23 #include <iostraem>

Referring to the sample code above ,which of the following could you use to make the standards I/O Stream classes accessible without requiring the scope ...

a) using namespace std::iostream

b) using namespace std;

c) using namespace iostream ;

d) using iostream;

sajiv

Technical paper

Blue star paper has got 2 sections. Firstly you need to clear the aptitude test.It is very easy. Some of the questions are as follows:


1.Complete the series  1 6 3 7 5 8 7 ?   
Ans: 9

2. If circle is one octagon is 2 4 6 8 or 1                                         

3. pick the odd one out   
bend   
shave   
chop   
whittle   
shear
Ans: bend.

4. 2 persons start from a pt. and go in opposite  directions. After going 3 km they turn left and walk  4 km .how far r they now?
Ans: 10 km

5. There was a ques on work something like 2 typists type 2 papers in 4 hrs then in how much time will 5 typists take or something like that

6. There were 2 ques on proverbs u were supposed to tell the meaning. They were easy.

7. A person runs 6 ft in 1/4 sec. how much it will run in 10 sec.
ans 240

8. Find odd one cat ,dog, rabbit, hamster, elk.

9. In a party man & his wife ,and there r 2 son with their wives, and every son has 4 children in his family .How manyperson r in party.

10.Unsreambled the word P U T E C A S A H (like that) paraschute

11.Add a word in starting of SCAPE and at the end of Grass, u will get two different word landscape                                                               
            ans:- land grassland

13.All men of this party are republican . mohan is member of this party. mohan is republican is true or false or can't say?

14. There r 1200 elephant .some have blue and pink strips. some have pink & green strip. 400 ele. have only pink
strip. how many have only blue strip   
b. can't determined. c. none
Ans:. 400

15. Day light Day break Day time
After clearing aptitude there was technical paper.  It had 2 sections. In section A there were 4 subsections out of  which 2 were to be attempted. the first subsection was on c and UNIX , second on c++, third on vb /asp/com and  fourth on RDBMS. In section B general computer awareness.  In section A I did c and c++.
Ans:-day           

:acumen

sajiv

  Technical

1.           void main()
              {
               extern int a;
               a=10;
               printf("%d",a);
             }
              1.  Give linker error- a not defined ans
              2.  Print 10
              3.  Give compiler error

2.          int a[10];
             printf("%d,%d",a[0],a[12]);
             will compiler show any error?
              ans no

3.               socket() is a
                 1.  system call ans
                 2.   library function
                 3.   both
                 4.   none

         In c++ there were conceptual ques on virtualfunctions , operator overloading etc. in section B some ques were
         as follows 1.in microprocessor over clocking will result in
               1.  overheating
               2.  malfunctioning  ans(check)
               3.   life would be half
               
4.           Cache is
           1.  ROM
           2.  RAM ans
           3.  PRAM
           4.  EPRAM

5.      How can pass an array to a fns.                                                         
           1.   desgin(**a)
           2.   desgin (*a)
           3.  dasgien(&a[0]);


6.     Unix has pipelining fromatted &
              a.  high level
              b.  low "
              c .  mid level
              d.  none "

7.     Task switching is
             1.process switching
             2.all of the above ans

8.     Thread arev ans .light weight process+(c)

9.     virual fns are defined as

10.     which is not bus interface
            a.  pci
            b.  ide
            c.  age
            d.   none

11.  Switch statement use only                                                                           
            a.  char
            b.  int
            c.  both
            d.  all of the above

12.    Multiple inheritence can not be used in a case___________?

13.    What is difference b/w simple SQDL & Object oriented SQDL.

14.    Virtual Destructor is used___________?

15.    Question on two pass assembler___________?

16.    Link list uses
            a.  countiguos memory allocation
            b.  non coun. " "
            c.  both
            d.  none

17.    Non linear structure a. q & stack
            ans:- b.tree & graph
               c. tree & stack
               d. tree & linklist

18.    E ncryption is
               a. change readable code to cipher text
               b.none
             

19.    Sizeof () operator is used for
          a.  data type
          b.  data type & veriable
          ans c. both
          d.  none

20.    deadlock condition no process knows exactly that both are waiting for each other.

21.     static
          it's initial value is one --- not true

22.     new can be overloaded ------ true

23.     virtual function------- ans a and c means no code and forceful inheritance

24.       for(;;
           ans:- infinite loop
         
Only three unix questions were there                                                         
           1. socket() is  a   answer: a)  system call

          2. two types of pipeline in UNIX one is formatted  and  other one   is high level  middle level  low level none
              ( i don't answer for this question  pleases check  it out)  RDBMS
          1. CAN foreign key have null values?? 
               answer: YES

          2 IN RDBMS SORTING IS PERFORMED IN   

             ANSWER: TEMP