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
What result of such script execution?
Anonymous Quiz
100%
Propery id is private
0%
uniquid
0%
Fatal Error
What result os such script execution?i
Anonymous Quiz
25%
Seats valid! Car valid!
50%
Fatal Error. Car valid!
25%
Car valid! Seats valid! Car valid!
0%
Fatal Error!
What result os such script execution?
Anonymous Quiz
20%
1 2 3 4 5
40%
Fatal Error
20%
«»
20%
mathematic
Forwarded from zabud’
This media is not supported in your browser
VIEW IN TELEGRAM