Breaking

Saturday, 5 August 2017

IVTL Infoview FAQ (Aptitude and Java Basics 1st round)

IVTL Infoview

I Round - Aptitude Questions

1. The percentage profit earned by selling an article for Rs. 1920 is equal to the percentage loss incurred by selling the same article for Rs. 1280. At what price should the article be sold to make 25% profit?
 (a) Rs 2000
(b) Rs. 2200
(c) Rs. 2400
(d) Rs. 2100

2. The average age of 50 students and a teacher is 25 years. When the teacher’s age is excluded, the average age decreases by 1 year. What is the age of the teacher?
 (a) 65
(b) 75
(c) 74
(d) 64

3. The sum of the squares of three numbers is 138, while the sum of their products taken two at a time is 131. Their sum is:
 (a) 16
(b) 40
(c) 30
(d) 20

4. If 40% of a number is equal to two-third of another number, what is the ratio of first number to the second number?
 (a) 2:5
(b) 3:7
(c) 5:3
(d) 7:3

5. A can do a piece of work in 4 hours; B and C together can do it in 3 hours, while A and C together can do it in 2 hours. How long will B alone take to do it?
 (a) 8 hours
(b) 10 hours
(c) 12 hours
(d) 24 hours

6. A vendor bought toffees at 6 for a rupee. How many for a rupee must he sell to gain 20%?
 (a) 3
(b) 4
(c) 5
(d) 6

7. A two-digit number is such that the product of the digits is 8. When 18 is added to the number, then the digits are reversed. The number is:,
 (a) 18
(b) 24
(c) 20
(d)  14

8. In an election between two candidates, one got 55% of the total valid votes, 20% of the votes were invalid. If the total number of votes was 7500, the number of valid votes that the other candidate got, was:
 (a) 2700
 (b) 2900
 (c) 3000
 (d) 3100

9.  In covering a distance of 30 km, Abhay takes 2 hours more than Sameer. If Abhay doubles his speed, then he would take 1 hour less than Sameer. Abhay's speed is:
 (a) 5 kmph
(b) 6 kmph
(c) 6.25 kmph
(d) 7.5 kmph

10. If A = x% of y and B = y% of x, then which of the following is true?
 (a) A is smaller than B
(b) A is greater than B
(c) relationship between A and B cannot be determined
(d)  if x is smaller than y, then A is greater than B

11. The ratio of the number of boys and girls in a college is 7 : 8. If the percentage increase in the number of boys and girls be 20% and 10% respectively, what will be the new ratio?
(a) 8:9
(b) 17:18
(c) 21:22
(d) 22:21

12. A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train?
 (a) 120 meters
(b) 180 meters
(c) 324 meters
(d) 150 meters

13. Speed of a boat in standing water is 9 kmph and the speed of the stream is 1.5 kmph. A man rows to a place at a distance of 105 km and comes back to the starting point. The total time taken by him is:
 (a) 16 hours
(b) 18 hours
(c) 20 hours
(d) 24 hours

14. Amit started walking positioning his back towards the sun. After some time, he turned left, then turned right and towards the left again. In which direction is he going now?
 (a) North or south
(b) East or West
(c) North or west
(d) south or west

15. Raju is the brother of Alok. Sunita is the sister of Sunil. Alok is the son of Sunita. How is Raju related to Sunil?
(a)Nephew
(b) son
(c) brother
(d) Cousin

16. If log10 5 + log10 (5x + 1) = log10 (x + 5) + 1, then x is equal to:
 (a) 4
(b) 2
(c) 1
(d) 3

17. Two trains, each 100 m long, moving in opposite directions, cross each other in 8 seconds. If one is moving twice as fast the other, then the speed of the faster train is:
 (a) 30 km/hr
(b) 45 km/hr
(c) 60 km/hr
(d) 65 km/hr

18.  Virat travelled 75 kms in 7 hours. He went some distance at the rate of 12 km/hr and the rest at 10 km/hr. How far did he travel at the rate of 12 km/hr?
 (a) 30 km
(b) 25 km
(c) 40 km
(d) 35 km


I Round - JAVA Questions

 1. What is an aggregate object?

 (a) An object with only primitive attributes
(b) An instance of a class which has only static methods
(c)  An instance which has other objects
(d) None of the above

2. Which is a reserved word in the Java programming language?
 (a) method
(b) native
(c) reference
(d) array

3.Which of the assignment are not valid
 (a) short s = 28;
(b) float f = 2.3;
(c) double d = 2.3;
(d) int I = '1';

4. Which of the following are Java keywords?
(a) throw
(b) void
(c) private
(d) all of the above

5. Which of the following is true about protected access modifier?
 (a) Variables, methods and constructors which are declared protected can be accessed by any class
(b) Variables, methods and constructors which are declared protected can be accessed by any class lying in same package.
(c) Variables, methods and constructors which are declared protected in the superclass can be accessed only by its child class.
(d)  None of the above

6.What is Serialization?
 (a) Serialization is the process of writing the state of an object to another object.
(b) Serialization is the process of writing the state of an object to a byte stream
(c) Both of the above.
(d) None of the above.

 7. Which collection class allows you to grow or shrink its size and provides indexed access to its elements, but whose methods are not synchronized?
 (a) java.util.HashSet
(b) java.util.LinkedHashSet
(c) java.util.List
(d) java.util.ArrayList

8.      Which of the following statements about the Java language is true?
 (a) Both procedural and OOP are supported in Java.
(b) Java supports only procedural approach towards programming
(c) Java supports only OOP approach
(d) None of the above.

9. What is the number of bytes used by Java primitive long. Select the one correct answer?
 (a) The number of bytes is compiler dependent.
(b) 2
(c) 4
(d) 8

10.Which methods can access to private attributes of a class?
 (a) Only Static methods of the same class
(b) Only instances of the same class
(c) Only methods those defined in the same class
(d) Only classes available in the same package.

11. What is the most restrictive access modifier that will allow members of one class to have access to members of another class in the same package?
(a) default access
(b) public
(c) private
(d)  protected

12.  Given a one dimensional array arr, what is the correct way of getting the number of elements in arr. Select the one correct answer
(a) arr.length
(b) arr.length - 1
(c) arr.size
(d) arr.length()

 

13. The initial value of a local variable of type String that is not explicitly initialized and which is defined in a member function of a class. Select the correct answer

 (a) NULL
(b) “”
(c) null       
(d) The instance variable must be explicitly assigned.

 14.The class Hashtable is used to implement which collection interface. Select the one correct answer?

 (a) List
(b) Map
(c) Set
(d) SortedSet

15.Which is a valid declarations of a String?
(a) String s1 = null;
(b) String s2 = 'null';
(c) String s3 = (String) 'abc';
(d) String s4 = (String) '\ufeed';

16.Which of the following statements is false about objects?
(a) An instance of a class is an object
(b) Objects can access both static and instance data
(c) Objects do not permit encapsulation
(d) Object is the super class of all other classes

17.What is the name of the method used to start a thread execution?
(a) init();
(b) start();
(c) run();
(d) resume();

18.Which method must be defined by a class implementing the java.lang.Runnable interface?
(a) void run()
(b) public void run()
(c) public void start()
(d) void run(int priority)

19.Which one of the following will declare an array and initialize it with five numbers?
(a) Array a = new Array(5);
(b) int [] a = {23,22,21,20,19};
(c) int a [] = new int[5];
(d) int [5] array;

20.Which of the following class level (nonlocal) variable declarations will not compile?
 (a) protected int a;
(b) transient int b = 3;
(c) private synchronized int e;
(d) volatile int d;

21.Which is the valid declarations within an interface definition?
(a) public double methoda();
(b) public final double methoda();
(c) static void methoda(double d1);
(d) protected void methoda(double d1);

Comment Your answers below:


No comments:

Post a Comment

Like