APTITUDE Question Papers V
1)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
2)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
(given that i can take only two values (1,0))
What will happen if you compile/run the following code?
1: public class Q21
2: {
3: int maxElements;
4:
5: void Q21()
6: {
7: maxElements = 100;
8: System.out.println(maxElements);
9: }
10:
11: Q21(int i)
12: {
13: maxElements = i;
14: System.out.println(maxElements);
15: }
16:
17: public static void main(String[] args)
18: {
19: Q21 a = new Q21();
20: Q21 b = new Q21(999);
1. Java Certification Mock Exam 2
As with any examination technique is an important aspect of the examination process. In
most situations there are mock examinations that you can use to obtain experience. This
is the intention of this Java Certification Mock Exam.
This mock exam is solely intended to help those intending to take Sun’s Certified Java
Programmer 1.1. examination practice the style of questions used in the examination. It
Click here to download the full paper
2. Sun Certified Java Programmer Exam
Question 1: Given the following class definition:
class A {
protected int i;
A(int i) {
this.i = i;
}
}
Which of the following would be a valid inner class for this class?
Select all valid answers.
Click here to download the full paper
3. Java Programmer Mock Exam 1999
Questions
Question 1)
Which of the following lines will compile without warning or error.
1) float f=1.3;
2) char c="a";
3) byte b=257;
4) boolean b=null;
5) int i=10;
Click here to download the full paper
4. Common Aptitude Paper 1
Optimize the below 1,2,3,4 questions for time:1)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
2)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
(given that i can take only two values (1,0))
Click here to download the full paper
5. Common Aptitude Paper 2
1. The grammer for A, B, S is given below.
S->Ax|By
A->Ax|y
B->x|y
possible ans is xy|xy
2. In n*n matrix , there non zero numbers in diagonal and either side
of the diagonal. If represented in one dimensional array, assign the
values which are non zeros.
find relation with i,j iteration and linear arry
like a[2*(i-1)+j] this
the matrix will be
x x 0 0 0 0 --------x x x 0 0 0 0 -----0 x x x 0 0 0 ------0 0 x x x 0 0 -------0 0 0 x x x 0 0 ----| | | | | | | | |
| | | | | | | | |
remumber n*n matrix
Click here to download the full paper
6. Common Aptitude Paper 3
this is vocabulary section in tcs paper!
with solutions
-----------1 admonish : usurp
2 meager : scanty
3 alineate: estrange
4 merry :gay
5 brim: boarder
6 obstinate:stubborn
7 adhesive:tenacious
8 tranquil :serene
9 solicit: urge
Click here to download the full paper
7. Common Aptitude Paper 4
> > politics is politics again and poetry only
poetry
> > 21.totalitarian state devalue words T
> > 22.only non-totalitarian regimes produce poetry
of political importance
> > T
> > 23.writers under totalitarian regimes have to
choose their words care
> > fully T
> > 24. the democratic political system is healthie
r
than others C
Click here to download the full paper
8. Common Aptitude Paper 5
>1.two transistors are connected Vbe is 0.7volts .this is simple
ckt.one ^M
>transistor is diode equivalent. & asked the o/p across the 2 nd
transistor.^M
>2.simple k map ans is Bbar.^M
>3.^M
>^M
> Emitter^M
>---R-------transistorbase| --^M
> | ---^M
> collector^M
> in above capacitor is connected parallel with resistance
Click here to download the full paper
9. Common Aptitude Paper 6
TISL(TATA-IBM)PAPER
-------------------Q9). what will be the result of executing following program
main
{
char *x="new";
char *y="dictonary";
char *t;
void swap (char * , char *);
swap (x,y);
printf("(%s, %s)",x,y);
char *t;
t=x;
x=y;
y=t;
printf("-(%s, %s)",x,y);
}
void swap (char *x,char *y)
{
char *t;
y=x;
x=y;
y=t;
}
a).(New,Dictionary)-(New,Dictionary)
b).(Dictionary,New)-(New,Dictionary)
c).(New,Dictionary)-(Dictionary,New)
d).(Dictionary,New)-(Dictionary,New)
e).None of the above
(Ans will be b or e) check
Click here to download the full paper
10. Common Aptitude Paper 7
VERIFONE INDIA PVT. LTD. QUESTION PAPER :
This test consists of two parts :
-------------------------------1.aptitude 20 qtns 15 min.
2.technical 45 qtns 30 min.
/*
* APTITUDE QUESTIONS
*/
Few aptitude questions out of 20(15min time).
--------------------------------------->>> All these are from GMAT'96 edition(galgotia publcations) :
1.if length of a rectangle is incr by 20% and width is decr by 20% the
n
area:(page 44)
ANS:decreases by 4%.
Click here to download the full paper
11. Common Aptitude Paper 8
Optimize the below 1,2,3,4 questions for time:
1)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
2)
int i;
if i=0 then i:=1;
if i=1 then i:=0;
(given that i can take only two values (1,0))
3)
int i;
if i=0 then i:=1;
else if i=1 then i:=0;
(given that i can take only two values (1,0))
Click here to download the full paper
12. Common Aptitude Paper 9
ANALYTICAL :
------------1. COMPLETE THE DIAGRAM :
FOUR FIG WILL BE GIVEN , YOU HAVE TO DRAW THE FINAL ONE
TRIANGLE FIG :
2. DRAW VENN DIAGRAM RELATING RHOMBUS, QUADRILATERAL & POLYGON
3.IN A GROUP OF 5 PERSONS A,B,C,D,E ONE OF THE PERSON IS ADVOGATE,
ONE IS DOCTOR, ONE BUSINESSS MAN, ONE SHOP KEEPER AND ONE IS
PROFESSOR.
THREE OF THEM A,C,AND PROFESSOR PREFER PLAYING CRICKET TO FOOT BALL
AND TWO
OF THEM B AND BUSINESSMAN PREFER PLAYING FOOT BALL TO CRICKET. THE
SHOP
KEEPER AND B AND A ARE FRIENDS BUT TWO OF THESE
PREFER PLAYING FOOT BALL TO CRICKET. THE ADVOGATE IS C'S BROTHER AND
BOTH PLAY SAME GAME . THE DOCTOR AND E PLAY CRICKET.
(a) WHO IS ADVOGATE ?
A, B, C, D
Click here to download the full paper
13. Common Aptitude Paper 10
MASCOT SYSTEM 98
IIT MADRAS
######################################################################
#
##########
General aptitude----30questions----30marks -----30minutes
General techanical test----40questions---40marks----30minutes
there will be negative marking (1:4)
GENERAL APTITUDE TEST
(time:30 min)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%$$$
SECTION 1:Reading comprehension
* Represents answer
Middle level managers, such as department.heads and workshop
directors
.....................................
........................................
......................................
........................................
........................................
..(passage of one and half page.)
question & answers:
1.A reductive cycle is one in which
a.an employer attempts to reduce costs
b.the work-force is gradually reduced in number
c.costs decreases as....
* d.there is less productive effort on the oart of
Click here to download the full paper
14. Common Aptitude Paper 11
MBT-1999-iit-delhi
> ARTHMETIC SECTION
>(1) if a boat is moving in upstream with v1 km/hr and in the down
stream
> it is moving with v2 km/hr then what is the speed of the stream.
> ans: 13 check the values of v1 and v2 are given
> to find ans (v+s = v1, v-s = v2 find the boat velocity)
> (2) 0.75 * 0.75 * 0.75 - 0.001
> --------------------------------> 0.75*0.75-0.075+0.01
> (3) A can work done in 8 days
> B can work three timesfaster than the A;
> C can work five times faster asthe A;
> ans : 8/9 it is correct place blindly.
Click here to download the full paper
15. Common Aptitude Paper 12
SATYAM COMPUTERS (HYDERABAD)
----------------------------Release : 1997
---------ANTONYMS
---------1)disregarded A) heed
2) GRE book pg no. 407 q.no. 13-16 para ie:in a certain society....
3)GRE .............446, 8th quest A) 1
4)GRE..............487, 8th.....
5).................488, 14th......
6).................513, 4 &8 .....
7) if A+B+C+D is a +ve no's then
a) one must be +ve no's
b) two ..............
c)three .............
d)all ................
8) GRE pg no.586 32nd qst.
9)if x+y =3 and y/x=2 then y=
a)0 b) 1/2 c)1 d)3/2 e)2
Click here to download the full paper
16. Mock Question Paper 1
Question 1
What will happen if you compile/run this code?
1: public class Q1 extends Thread
2: {
3: public void run()
4: {
5: System.out.println("Before start method");
6: this.stop();
7: System.out.println("After stop method");
8: }
9:
10: public static void main(String[] args)
11: {
12: Q1 a = new Q1();
13: a.start();
14: }
15: }
A) Compilation error at line 7.
B) Runtime exception at line 7.
C) Prints "Before start method" and "After stop method".
D) Prints "Before start method" only.
Answer
Click here to download the full paper
17. Mock Question Paper 2
Question 11
What will happen if you compile/run the following code?
1: public class Q11
2: {
3: static String str1 = "main method with String[] args";
4: static String str2 = "main method with int[] args";
5:
6: public static void main(String[] args)
7: {
8: System.out.println(str1);
9: }
10:
11: public static void main(int[] args)
12: {
13: System.out.println(str2);
14: }
15: }
A) Duplicate method main(), compilation error at line 6.
B) Duplicate method main(), compilation error at line 11.
C) Prints "main method with main String[] args".
D) Prints "main method with main int[] args".
Answer
Click here to download the full paper
18. Mock Question Paper 3
Question 21What will happen if you compile/run the following code?
1: public class Q21
2: {
3: int maxElements;
4:
5: void Q21()
6: {
7: maxElements = 100;
8: System.out.println(maxElements);
9: }
10:
11: Q21(int i)
12: {
13: maxElements = i;
14: System.out.println(maxElements);
15: }
16:
17: public static void main(String[] args)
18: {
19: Q21 a = new Q21();
20: Q21 b = new Q21(999);
Click here to download the full paper
19. Mock Question Paper 4
We have the following organization of classes.
Which of the following statements is correct for the following expression.
A. llegal both compile and runtime,
B. Legal at compile time, but fails at runtime,
C. Legal at compile and runtime
We have the following organization of classes.
Which of the following statements is correct for the following expression.
A. llegal both compile and runtime,
B. Legal at compile time, but fails at runtime,
C. Legal at compile and runtime
We have the following organization of classes.
Question 1.
class Parent { }
class DerivedOne extends Parent { }
class DerivedTwo extends Parent { }
Click here to download the full paper
20. Mock Question Paper 5
What is the target variable in an Event?
A. the Object() where the event came from,
B. the Object() where the event is destined for,
C. what the Object() that generated the event was doing,
What is the statement to assign a unicode constant CODE with 0x30a0?
The following code resides in the source?
Which of the following statement return true for the <<>> line in StringTest.class?
A. b.equals(a)
B. b==a
C. d==c
D. d.equals(c)
Which are valid identifiers?
A. %fred
B. *fred
C. thisfred
No comments:
Post a Comment