Showing posts with label BlueStar Placement Paper. Show all posts
Showing posts with label BlueStar Placement Paper. Show all posts

Friday, August 22, 2008

BlueStar: Placement Paper 1 Mar 2004

1.What would be the output of the following program.
#include
main()
{
extern int a;
printf("%d",a);;
}
int a=20;
(a) 20 (b) 0 (c) garbage value (d) error!!

2.What would be the output of the following program.
main()
{
int a[5]={2,3};
printf("\n %d %d %d",a[2],a[3],a[4]);
}
(a) garbage value (b) 2 3 3 (c) 3 2 2 (d) 0 0 0

3.What would be the output of the following program.
main()
{
inti=-3,j=2,k=0,m;
m=++i&&++j||++k;
printf("\n %d %d %d %d",i,j,k,m);
}
(a) -2 3 0 1 (b) -3 2 0 1 (c) -2 3 1 1 (d) error

4.What would be the output of the following program.
main()
{
int a,b;
a=sumdig(123);
b=sumdig(123);
printf("%d %d",a,b);
}
sumdig(int n)
{
static int s=0;
int d;
if(n!=0)
{
d=n%10;
n=(n-d)/10;
s=s+d;
sumdig(n);
}
else return(s);
}
(a) 12 6 (b) 6 12 (c) 3 15 (d) error

5.What would be the output of the following program.
#define CUBE(x) (x*x*x)
main()
{
int a,b=3;
a=CUBE(b++);
printf("\n %d %d",a,b);
}
(a) 64 4 (b) 27 4 (c) 27 6 (d) 64 6

6.What would be the output of the following program.
main()
{
const int x=get();
printf("%d",x);
}
get()
{
return(20);
}
(a) 20 (b) garbage value (c) error (d) 0

7.A function has this prototype void f1(int **x),
How will you call this function?
(a) int **a; (b) int a; (c) int *a; (d) int a=5;
f1(a); f1(&a); f1(&a); f1(&&a);

8.pointout the error, if any, in the for loop
main()
{
int l=1;
for(;
{
printf("%d",l++);
if(l>10)
break;
}
}
(a) The condition in the for loop is a must (b) The two semicolons should be dropped
(c) The for loop should be replaced by awhile loop (d) No error

9.Can the following piece of code be executed?
int main(void)
{
char strA[10]="compile",strB[10];
my_strcpy(strB,strA);
puts(strB);
}
char * my_strcpy(char *destination,char *source)
{
char *p=destination;
while(*source!='\0')
{
*p++=*source++;
}
*p='\0';
return destination;
}
(a) Compilation will only give a warning but will proceed to execute & will display "compile"
(b) The compilation error char *(char *,char *) differs in levels of indirection from 'int()' will occur
(c) Yes & it will print compile on the screen (d) None of the above

10.What would be the output of the following program.
#include
main()
{
char str[5]="fast";
static char *ptr_to_array = str;
printf("%s",ptr_to_array);
}
(a) Compilation will only give a warning but will proceed to execute & will display "fast"
(b) display "fast" on screen (c) will give a compilation error (d) none of the above

11.What would be the output of the following program.
main()
{
int num,*p;
num=5;
p=#
printf("%d",*p);
}
(a) 6 (b) 5 (c) junk value (d) compilation error

12.What would be the output of the following program.
main()
{
int a[3]={2,3,4};
char *p;
p=a;
p=(char *)((int *)p+1);
printf("%d",p);
}
(a) 2 (b) 0 (c) junk value (d) 3

13.What would be the output of the following program.
main()
{
int i=10;
fn(i);
printf("%d",i);
}
fn(int i)
{
return ++i;
}
(a) 10 (b) 11 (c) 12 (d) Compilation error

14. What will be the value of i & j after the loop isexecuted?
for(i=0,j=0;i<5,j<25;i++,j++)
(a) i=4,j= 24 (b) i=24,j= 24 (c) i=25,j= 25 (d) i=5,j=25

15.What would be the output of the following program.
main()
{
int i,j;
i=10;
j=sizeof(++i);
printf("%d",i);
}
(a) 11 (b) 10 (c) 4 (d) compilation error

16.What would be the output of the following program.
main()
{
int i=7;
printf("%d\n",i++*i++);
}
(a) 49 (b) 56 (c) 72 (d) compilation error

17. What will the printf print?
main()
{
char *p,*f();
p=f();
printf("f() returns:%s\n",p);
}
char *f()
{
char result[80];
strcpy(result,"anything will do");
return (result);
}
(a) f() returns: anything will do (b) f() returns:
(c) compilation error (d) The printf statement is not going to be executed

18.How many times the following program would print 'Jamboree'?
main()
{
printf("\n Jamboree");
main();
}
(a) infinite number of times (b) 32767 times
(c) 65535 times (d) till the stack does not overflow

19.Notice the error in the default statement in the code snippet below.Will it give a compilation error?
main()
{
int a=10,j;
j=fn(a);
switch(j)
{
case 30: printf("the value is 30");
break;
case 50: printf("the value is 50");
break;
default:printf("the value is not 30 or 50");
}
}
fn(int a)
{
return (++a);
}
(a) Will display "the value is 30" (b) Will display "The value is not 30 or 50"
(c) Yes a compilation error would happen
(d) No compilation errors but there will be no output on the screen

20.What would be the output of the following program.
main()
{
struct emp
{
char name[20];
int age;
float sal;
};
struct emp e = {"tiger"};
printf("\n %d %f",e.age,e.sal);
}
(a) 0 0.000000 (b) Garbage values (c) Error (d) none of the above

BlueStar: Placement Paper 8 AUGUST 2004

BLUE STAR INFOTECH Latest Fresher Question Papers 8 august 2004

In aug 2004 paper
Now about the Test.



Test consisted of 4 sections.


1) Analytical 20 Q 20 min
Analytical Section is very easy.Simple arithmetic type
problems
are asked.

2) Software 20 Q 20 min
This section was rather tough.It consisted of typical
S/W
questions except from these 4 topics.

3 & 4) You have to choose 2 papers out of 4 papers
from
C/unix ; c++ ; ASP/VB ; DBMS
Both papers will have 10 Q each to be done in 10
min
respectively.



So total of 60 Q in 60 min.

in aug 2004---
-------------


here r some guidelines for bluestar paper



In blue star paper, there were 2 sections.
firstly u
need to clear the aptitude test. It was very
easy.
Some of the ques 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 10
3.pick the odd one out
bend shave chop whittle shear

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.
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++.
Some ques were as follows

1.void main()
{
extern int a;
a=10;
printf("%d",a);

}
will
1. give linker error- a not defined
2. print 10
3. give compiler error

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


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



in c++ there were conceptual ques on virtual
functions
operator overloading etc.



in section B some ques were as follows

1.in microprocessor over clocking will result in
1.overheating
2.malfunctioning
3.
4.


2.cache is
1.ROM
2.RAM
3.PRAM
4.EPRAM


best of luck

BlueStar: Placement Paper 2004,MESRA

/*****************BLUE STAR BIT,MESRA 2004****************/
there were two sections A and B
section A was mandatory
section B contained 4 parts. u have to solve problems of any two parts


/******************Section 'a'*******************************/

20 questions were asked

1.configuration of an UART in serail communication has
a.clock signal
b.baud rate,stop bit,data length
c.both
d.none

2.deadlock happens when two process waiting for the resources used by each other in this condition
a.both process knows that they are waiting for each other
b.one process knows that other is waiting
c.both a and b
d.none

3.physical memory location in running program is resolved by
a.linker
b.compiler
c.loader
d.none

4.task switching is switching between
a.process
b.threads
c.concurrent part in same progarm
d.all

5.in 2-pass compiler
a.identifier can be used without its declaration
b.indentifier should be declared before its first use.
c.both
d.none

6.difference between functional/ordinary SDLC and object-oriented SDLC is
a.in functional SDLC the develpoment time is more than design time
b.in object oriented SDLC ,design time is more than development time.
c.both
d.none

7.which of the following is not a bus-interface for a microprocessor
a.ISA
b.AGP
c.PCI
d.ICE

8.which of the following statement are true for structure
a. a structure can contain a pointer to itself.
b. structure can be compared
c.both
d.none

9.which is not defined as codd's rule of RDBMS
a.comprehensive data sub language rule
b.view updates.
c.physical data dependency
d.integrity dependency

10.encryption means
a.text to cipher
b.cipher to text
c.
d.

11. in microprocessor over clocking will result in
a.overheating
b.malfunctioning
c.
d.

12.cache is
a..ROM
b.RAM
c.PROM
d.EPROM

13.unix os implements two types of pipes ,one is formatted and other is
a.low level pipes
b.high level pipes
c.middle level pipes
d.none

/*******************section B ********************************/

-------part A (c and unix, 10 questions were asked)-----------

1.void main()
{
extern int a;
a=10;
printf("%d",sizeof(a));
}
will
a. give linker error- a not defined
b. print 10
c. give compiler error

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

3.socket() is a
a.system call
b. library function
c.both
d. none

4.the parameter of sizeof operatror is
a.data type
b.variable
c.both
d.none

5.the argument of switch command is of type
a.character
b.integer
c.both
d.all of the above

6.


-------part b(c++ ,10 question)------

1. differance between pointer and referance

2.inheritance of a class is relationship like
a. IS A(answer)
b. HAS A
c.
d.

3.In c++ differance between structure and class
a.
b.
c.
d.access specifier (answer)

4.default parameter implies
5.

guidelines: have a command on these topics
virtual functon
multiple inheritance( 2 questions)
operator overloading

BlueStar: Placement Paper AUG 2004

In aug 2004 paper
Now about the Test.


Test consisted of 4 sections.


1) Analytical 20 Q 20 min
Analytical Section is very easy.Simple arithmetic type
problems
are asked.

2) Software 20 Q 20 min
This section was rather tough.It consisted of typical
S/W
questions except from these 4 topics.

3 & 4) You have to choose 2 papers out of 4 papers
from
C/unix ; c++ ; ASP/VB ; DBMS
Both papers will have 10 Q each to be done in 10
min
respectively.



So total of 60 Q in 60 min.

in aug 2004---
-------------


here r some guidelines for bluestar paper



In blue star paper, there were 2 sections.
firstly u
need to clear the aptitude test. It was very
easy.
Some of the ques 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 10
3.pick the odd one out
bend shave chop whittle shear

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.
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++.
Some ques were as follows

1.void main()
{
extern int a;
a=10;
printf("%d",a);

}
will
1. give linker error- a not defined
2. print 10
3. give compiler error

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


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



in c++ there were conceptual ques on virtual
functions
operator overloading etc.



in section B some ques were as follows

1.in microprocessor over clocking will result in
1.overheating
2.malfunctioning
3.
4.


2.cache is
1.ROM
2.RAM
3.PRAM
4.EPRAM


best of luck