What expected output from the code snippet execution?
Anonymous Quiz
0%
Success
0%
Type Error
100%
Failed
0%
nothing will be returned
What expected output from the code snippet execution? | .js
Anonymous Quiz
0%
true
67%
false
0%
null
33%
type error
0%
runtime error
What expected output from the code snippet execution? | .js
Anonymous Quiz
0%
infinity loop
0%
10
33%
0
67%
11
0%
Reference Error
What expected output from the code snippet execution? | .js
Anonymous Quiz
50%
Array with length 20 and random elements
0%
Array with random length and random elements
50%
Array with random length less then 20 and random elements with values less then 100
0%
Array with random length less then 100 and random elements with values less then 20
What is the purpose of the `secret` function?
Anonymous Quiz
50%
To find element greater than n
0%
To find element equal to n
0%
To find how many times n is occurs
50%
To find the position of n
Method, which realized in `secret` method is called … ? | .js
Anonymous Quiz
100%
Binary search
0%
Ternary search
0%
Linear scanning
0%
Search
In latest 3 quiz we established generator() method and some search() metohd. The generator() is modified to insert a new element with an established value. Output of the code execution is not as predicted, try to find a way to fix the issue. | .js
Anonymous Quiz
0%
The left and right pointed on the same element, need to clear pointer sometimes
0%
The left and right pointed on the same element, need to swap conditions
100%
Search methods assumes that the array is in ascending order, you need to sort it
0%
Search method couldn’t work with generated using a random array, need to establish all array by user
Binary search is one of the simplest and most effective search methods. When is the best case to use it?
Anonymous Quiz
0%
On arrays with large values
33%
On arrays with large length
0%
On slow machines
0%
Everywhere, using this method is always a good solution
67%
On arrays, when the search needs to produce a small amount times
Is the magic method `__toString()` will be executed if we try to echo?
Anonymous Quiz
100%
Yes
0%
No
What result of such script execution?
Anonymous Quiz
67%
Hello from Pomelo
0%
Hello from Fruit
0%
Undefined function Pomelo()
33%
Fatal error