Digivalet
Digivalet
Questions :
a. 0
b. 2
c. 1
d. 3
3. In what order elements will be removed from queue ? Assuming “A”, “B”, “C” and “D” elements
are placed in a queue.
a. ABCD
b. DCBA
c. DCAB
d. None of the above
4. What will be the complexity of below code ?
for (int i = 1; i <=n; i += c) {
for (int j = 1; j <=n; j += c) {
// some O(1) expressions
}
}
a. O(n2)
b. O(n)
c. O(Logn)
d. O(1)
5. What are ways by which you can implement polymorphism in java? You can implement
polymorphism using
a. Method overloading
b. Method overriding
c. Method overloading & overriding
d. None of the above
class Test2
{
public void test(Object obj)
{
System.out.println("Object invocation");
}
8. Which one of the following functions can be used to concatenate array elements to form a single
delimited string?
• A. explode()
• B. implode()
• C. concat()
• D. concatenate()
11. Look at this series 2,4,6,8,10,… What number sholud come next?
a. 11
b. 12
c. 13
d. 14
12. Look at this series 58,52,46,40,34,… What number should come next ?
a. 26
b. 28
c. 30
d. 32
13. Look at this series 40, 40, 47,47,54,… What number should come next?
a. 40
b. 44
c. 54
d. 61
14. Look at this series: 544,509,474,439,… What number should come next?
a. 404
b. 414
c. 420
d. 445
15. Look at this series: 201,202,204,207,… What number should come next?
a. 205
b. 208
c. 210
d. 211
Set 2- This set contains additional, and sometimes more difficult, number series questions. Again,
each question have definite pattern. Some of the number series may be interrupted by a particular
number that appears periodically in the pattern. For example, in the series 14,16,32,18,20,32,22,24,32,
the number 32 appears as every third number. Sometimes, the pattern contains two alternating series.
For example, in the series 1,5,3,7,5,9,7, the pattern is add 4, subtract 2, add 4, subtract 2, and so on.
Look carefully for the pattern, and then choose which pair of numbers comes next. Note also that you
will be choosing from five options instead of four.
16. 84 78 72 66 60 54 48
a. 44 34
b. 42 36
c. 42 32
d. 40 34
e. 38 32
17. 3 8 13 18 23 28 33
a. 39 44
b. 38 44
c. 38 43
d. 37 42
e. 33 38
18. 20 20 17 17 14 14 11
a. 8 8
b. 11 11
c. 11 14
d. 89
e. 11.8
19. 18 21 25 18 29 33 18
a. 43 18
b. 41 44
c. 37 18
d. 37 41
e. 38 41
20. 9 11 33 13 15 33 17
a. 19 33
b. 33 35
c. 33 19
d. 15 33
e. 19 21
Set 3-
This set will give you additional practice dealing with number series questions.
21. 44 41 38 35 32 29 26
a. 24 21
b. 22 19
c. 23 19
d. 29 32
e. 23 20
22. 6 10 14 18 22 26 30
a. 36 40
b. 33 37
c. 38 42
d. 34 36
e. 34 38
23. 34 30 26 22 18 14 10
a. 8 6
b. 6 4
c. 14 18
d. 6 2
e. 4 0
24. 2 44 4 41 6 38 8
a. 10 12
b. 35 32
c. 34 9
d. 35 10
e. 10 52
25. 32 29 26 23 20 17 14
a. 11 8
b. 12 8
c. 11 7
d. 32 29
e. 10 9
Set 5-
Another type of sequence question involves a series of letters in a pattern, Usually, these questions
use the letters alphabetical order as a base. To make matters more complicated, sometimes subscript
numbers will be looking at both the letter sequence. In these series, you will be looking at both the
letter pattern and the number pattern, Some of these questions ask you to fill the blank n the middle of
the series; others ask you to add to the end of the series.
Answers :
1. Ans: B
2. Ans: C
3. Ans: A
4. Ans: A
5. Ans: C
6. Ans: C
7. Ans: B
8. Ans: B
9. Ans: A
10. Ans: B
11. Ans: B
12. Ans: B
13. Ans: C
14. Ans: A
15. Ans: D
16. Ans: B
17. Ans: C
18. Ans: E
19. Ans: D
20. Ans: A
21. Ans: E
22. Ans: E
23. Ans: D
24. Ans: D
25. Ans: A
26. Ans: A
27. Ans: B
28. Ans: B
29. Ans: D
30. Ans: E