There was an online written test
50 questions = 10 comp. awareness, 10 mathematical (easy), 10 verbal reasoning(difficult, lenghty, you are advised to attempt them at last only ), 20 c++ or c or java whichever u opt.
then three interviews, (2 technical, one hr) are taken.
quarks people stress on c++, os, dbms, SE(testing, sdlc etc.) in the interview.
here are some questions that i can recall from the written test.
one question of c++
main()
{
int x=10,y=20,z=5;
x=x cout < }
ans 1
here quarks was on 12-8-03 and
recruit 2 mca's and 12
be's.
first you should opt test in c++,
because they have
only requirements in c++.
they will ask questions on virtual
functions,
destructures etc.
there are 50 questions and time is
60 mins.
1-10 analytical reasoning
11-20 quant
21-30 computer awearness
31-50 c++
c & c++ questions are diffirent in
quant and in comp
awearness.
the analytical reasoning will take
time so u should do
this at last i.e. by seeing the
length of question.
quant was easy
1. 165^2-164^2
a 329 ans
b 325
2. there is one question onloan
from father of 240
rupees the answer of that question
is 21.
3. all other question in this
section was easy.
computer awearness
1. Leading is....
options includes from ms word
2. which of the following is not
language
a. Pascal
b. pl/1
c. findles ans
d. j
3. one question on IPC(inter
process comm)
4. which of the following stores
highest amt of data.
a. floppy
b. cd
c. book
d. none of above
5. all other questions were from os
C++
1. can there be a static class
2. dynamic binding is
options
3 o/p of following prog
main()
{
int i,j=9999;
char buff[5];
i=sprintf(buff,"%d",j);
cout< }
a. 9999, 4
b 9999,5 ans
c 4,9999
d 9999,1
4. class ab{};
main()
{
cout< }
a 1
b 0 ans
c 2
d 4
5.
class ab
{
int i;
public:
virtual void fun(){}
}
main()
{
cout< }
a. 4 ans
6. when new fails it
a. send _set_new_handler
b. send excection
c.
d. both a and b
7. #define f(a,b) a+b
#define g(x,y) x*y
main()
{
int i;
i=f(4,g(5,6));
cout< }
a. 34 ans
8 #define x(a) ++a + a++ +a++
like this I do not
remember this question ans was 4.
9. polymorohism is
10. mutable is used for
ans--changing the value in the
const functions
Q1. __stdcall calling convention
Ans. stack is cleaned by the callee
Q2. mutable key word is used for
Ans. if used with a member variable it can be changes by a function declared as a constant
Q3. foo & const ref
Ans. this is not a good practise since references are always constants
Q4. private inheritance means
Ans Non private members of a base class become private members of derived class
Q5. int I=2;
Int j=3;
Int k=4;
Cout<<(I<j<k)
Ans. 1
Q6 #defines macro(a) ((a++) + (++a) + (a++))
Main()
{
cout << macro(1);
}
Ans. 4
Q7 string s = �abcd�
Char &c=s[1];
String t;
T=s;
c=�z�;
if(T[1]==�z�)
{
cout<<�Quark�;
}
else
{
cout<<�express�;
}
Ans. express
Q8. int func(int I)
{
static int k=0;
k++;
if( K>5)
return 1;
else
return func(I-1);
}
int main()
{
cout << func(1);
}
Ans. 1
Q9. class base
{
public:
virtual func()
{
cout <<�BASE�;
}
};
class der1: public base
{
public:
virtual func()
{
cout << �DER1�;
}
};
class der2: public base
{
public:
virtual func()
{
cout << �DER2�;
}
};
class der3: public base
{
public:
virtual func1()
{
cout << �DER3�;
}
};
main()
{
base *pb;
pb= new der1;
pb->func();
pb= new der2;
pb->func();
pb= new der3;
pb->func();
}
Ans: DER1DER2BASE
Q10 Which of following will cause application crash�there are three options
ANS. char * p = new char;
Char *q=p;
Delete p;
Delete q;
If u need latest papers of any company mail me at [email protected]
Q11 for typeid to give correct result which condition is must
Ans. Class should be polymorphic
Q12 following things are default when class is created
Ans. Default constructor, copy constructor, assignment operator
Q13. which casting is done at run time
Ans. dynamic_cast
Quark Paper
1. 1 TB=1024GB
2. Window NT , NT ?
3. HTTP full form
4. Windows Uses = ?
a) Intel
b) Microsoft
c) Dos
d) Macintosh
5. Operating System Runs in --- and system utilitis run in
a)user and monitor modes
b)monitor mode and user modes
6. For internet , what is required
a) an ISP provider
b) an Internet Connection
c) A Browser
d) All of the above.
7. What is Internet
8. How can u see the web pages
9. Largest capacity of the mobile storage ( CD ROM)
10. Floppy capacity ?
11. "www" stands for ?
12. which is a Netwoking os
a) microsoft win 98
b) Microsoft win 2000
13. Which is not a language ( Findler or J)
Analytical Problems :
=====================
1. A dice is thrown twice ..what is the probability of geting a
number twice ...(1/6)
2. 1,2,3,4,5 without repeating , make a no. divisible by 4
,probability
(1/5)
3. A girl walks x distance first day , second day she walks 1 km
more ..
total dist =65 km .time taken 18 hrs ( Ans --3 miles/h)
4. One puzzle about ages (Ans 9,2,2)
5. Some Histogram Questions
6. Some Pie charts Questions
C test :
========
1.char *str="quark" "media"
printf("%s",str); ( ans quark media )
2.char *str;
str="hello" "india"
printf("%s",str); ( ans hello india )
3.i=0;
z=sizeof(++i + i++)
printf("%d %d",z,i);
4.volatile keyword
5.macro XY ##
int main()
{
char *s;
x=XY10;
printf("%s",x);
}
6. int y=10;
for (int x=0;x<=10;x++);
y+=x;
printf("%d",y);
7.Differece between malloc ad calloc.
8.fun(int a)
{
static int b;
}
what is the storage allocation for both a and b;
9.int *fun(int a)
{
return (&a);
}
int *fun(int a)
{
int *b;
b=&a;
return(b);
}
int *fun(int a )
{
int *b;
b=malloc(sizeof(int));
b=&a;
return (b);
}
which of the following functions are not correct ;
10. int fun(int a,int y)
{
int x;
x=a+y;
return (x);
}
int main()
{
int x,y=1,z=0,c;
z=fun(y,c);
printf(" %d ",x);
}
11. int *x[10]()
what is x?
12. printf("%d",++i++); o/p ?
13. a=2;
printf("%d %d %d",++a,a++);
14.struct abc
{
char a[10];
int a,b;
};
main(){
struct abc ab={"main"};
printf("%d %d",ab.a,ab.c);
--0-1324278160-1049900968=:11695--
computer awareness :
====================
1. 1 TB=1024GB
2. Window NT , NT ?
3. HTTP full form
4. Windows Uses = ?
a) Intel
b) Microsoft
c) Dos
d) Macintosh
5. Operating System Runs in --- and system utilitis run in
a)user and monitor modes
b)monitor mode and user modes
6. For internet , what is required
a) an ISP provider
b) an Internet Connection
c) A Browser
d) All of the above.
7. What is Internet
8. How can u see the web pages
9. Largest capacity of the mobile storage ( CD ROM)
10. Floppy capacity ?
11. "www" stands for ?
12. which is a Netwoking os
a) microsoft win 98
b) Microsoft win 2000
13. Which is not a language ( Findler or J)
Analytical Problems :
=====================
1. A dice is thrown twice ..what is the probability of geting a
number twice ...(1/6)
2. 1,2,3,4,5 without repeating , make a no. divisible by 4
,probability
(1/5)
3. A girl walks x distance first day , second day she walks 1 km
more ..
total dist =65 km .time taken 18 hrs ( Ans --3 miles/h)
4. One puzzle about ages (Ans 9,2,2)
5. Some Histogram Questions
6. Some Pie charts Questions
C test :
========
1.char *str="quark" "media"
printf("%s",str); ( ans quark media )
2.char *str;
str="hello" "india"
printf("%s",str); ( ans hello india )
3.i=0;
z=sizeof(++i + i++)
printf("%d %d",z,i);
4.volatile keyword
5.macro XY ##
int main()
{
char *s;
x=XY10;
printf("%s",x);
}
6. int y=10;
for (int x=0;x<=10;x++);
y+=x;
printf("%d",y);
7.Differece between malloc ad calloc.
8.fun(int a)
{
static int b;
}
what is the storage allocation for both a and b;
9.int *fun(int a)
{
return (&a);
}
int *fun(int a)
{
int *b;
b=&a;
return(b);
}
int *fun(int a )
{
int *b;
b=malloc(sizeof(int));
b=&a;
return (b);
}
which of the following functions are not correct ;
10. int fun(int a,int y)
{
int x;
x=a+y;
return (x);
}
int main()
{
int x,y=1,z=0,c;
z=fun(y,c);
printf(" %d ",x);
}
11. int *x[10]()
what is x?
12. printf("%d",++i++); o/p ?
13. a=2;
printf("%d %d %d",++a,a++);
14.struct abc
{
char a[10];
int a,b;
};
main(){
struct abc ab={"main"};
printf("%d %d",ab.a,ab.c);