Common Jobs

Accenture Quiz

1 / 30

1. Which method is used to make an asynchronous HTTP request?

2 / 30

2. The searching technique that takes O (1) time to find a data is

3 / 30

3. What is Callback in NodeJS?

4 / 30

4. What is sent to an Array.map() function?

5 / 30

5. Which of the following command will show the version of Node?

6 / 30

6. B Trees are generally

7 / 30

7. Calculate the output of the following pseudocode.

Integer w, x, y, zSet w = 21, x = 11for (each y from 21 to 30 ) for (each z from -1 to 0 ) w = w - 1 if(w > y) Continue End if w = 1 if(w > z) Jump out of the loop End if End for End for Print w + x

8 / 30

8. What is the following code segment doing?void fn( ){char c;cin.get(c);if (c != ‘\n’) {fn( );cout.put(c);}}

9 / 30

9. _____ is an inbuilt method in jQuery used to hide the selected element.

10 / 30

10. You have to sort a list L consisting of a sorted list followed by a few “random” elements. Which of the following sorting methods would be especially suitable for such a task?

11 / 30

11. If a node having two children is deleted from a binary tree, it is replaced by its

12 / 30

12. What will be the output of the following pseudocode for arr[] = 1,2,3,4,5

Initialize i, nSet arr[]= 1, 2, 3, 4, 5for i = 0 to n - 2 arr[i] = arr[i] + arr[i+1]End for

13 / 30

13. In the HTML DOM (Document Object Model), everything is a ____

14 / 30

14. What is the output of following pseudocode.

Integer x, y, z Set x = 10, y = 16,z = 3 if(x > y) x = 2 * y Else y = x / 2 End if if(z > y) z = 2 * y Else y = z / 2 End if Print x + y + z

15 / 30

15. What will be the output of the following pseudocode for arr[] = 5, 4, 3, 2, 1

Initialize i, n Initialize an array of size n Take the values for the array for i = 0 to n - 2 arr[i] = arr[i] * arr[i+1] End for print the array of elements

16 / 30

16. If h is any hashing function and is used to hash n keys in to a table of size m, where n<=m, theexpected number of collisions involving a particular key x is :

17 / 30

17. what will be the output of the following pseudocode for x = 10, y = 5.

Integer solve(Integer x, Integer y) if(y > 0) if(x > 0) return x + y + solve(2, y - 5) + solve(x - 10, 1) End if End if return x + y End function solve()

18 / 30

18. Which of the following is false about AJAX?

19 / 30

19. In modern websites what is the common usage for JSON ?

20 / 30

20. Which is the correct value calling a JavaScript code?

21 / 30

21. The OS of a computer may periodically collect all the free memory space to form contiguousblock of free space. This is called

22 / 30

22. What is the output of the following pseudocode for n = 5, m = 6.

Integer solve(Integer n, Integer m ) if(n > 4 && m < 7) return solve(n +1, m + 1) Else Return n + m End if End function solve()

23 / 30

23. Which of the following is not the Fed method in jQuery

24 / 30

24. For an undirected graph with n vertices and e edges, the sum of the degree of each vertex is equal to

25 / 30

25. A technique for direct search is

26 / 30

26. Which function is carried out by the following pseudocode?

Declare an array "word" of string data typeDeclare a variable lTake a string as input in the wordfor l = 0 to (length of word) – 1 print word[l]End forAlgorithm End

27 / 30

27. What will be the output of the following pseudocode for arr[]= 5, 4, 3, 2, 1?

Initialize i, nInitialize an array of size nTake the values for the arrayfor i = 0 to n - 2 arr[i] = arr[i] - arr[i+1]End for

28 / 30

28. what is the output following pseudocode.

Declare an array "word" of string data typeDeclare a variable lTake a string as input in the wordfor l = (length of word) – 1 to 0 print word[l]End forAlgorithm End

29 / 30

29. The postfix form of the expression ( ) ( ) G / F E D C B A ∗ − ∗ ∗ + is

30 / 30

30. what the following pseudocode will produce.

Integer x, y, zSet x = 0, y = 3, z = 11if(x + (1 | 2) && y + (2 | 3)) x = x - 2 y = xElse x = z y = y ^ 2 End if Print x + y + z

Your score is

The average score is 41%

Restart quiz