Answer: 1 time.
Explanation:
- A binary function is also known as a half-interval search is a search algorithm to find the position of a given element x within a well-sorted array [].
- Binary search compares the target value to the middle element of the array.
- It ignores half of the elements just after one comparison.
- it compares x with the middle element.
So, the function read an element <u>one time</u> in the array before finding the value.
Answer:
Delegate is a function pointer which points the address of a function.
Explanation:
Let the function to compare two integers takes two integers as arguments
C#.net syntax:
delegate void Del(int,int);
Here delegate is the keyword. Del is the name of the delegate which stores the address of the function whose return type is void and which takes 2 integer arguments.
public void CompareIntegers(int x, int y)
{
if (x>y) Console.WriteLine("X is greater");
else Console.WriteLine("Y is greater");
}
delegate void Del(int,int);
void main(){
Del del1=new Del(CompareIntegers);
}
Answer:
The answer is TRUE.
Explanation:
Cookies in browsers are like identification criteria. It contains unique data to a specific user. The use of this is to ensure that servers or websites that you have visited previously will recognize you as the same user who has been there before. This will cause the data and website information to load faster that before.
Think of it as your school's gate. The security guard is the browser. He will let you inside the campus without question since he has seen your school ID or has recognize you as a student of the school.
Cookies come in various types such as:
- Authentication cookies - most common type of cookies that websites used to recognize you as the user who has been there or logged in before.
- Persistent cookies - cookies that can be used for long term. Sometimes, you will encounter websites that allows the user to remember his log in credentials, this is the type of cookies that these websites used. Often, these cookies are willingly enabled by users.
-
Session cookies - cookies with expiration or being stored temporarily. These cookies will be terminated once the browser is closed.
-
Third-party cookies - These are additional cookies being added by the website you are using. But these cookies are not owned by the website itself, but is being used by other websites to track down your activities to make you see and experience advertisements that are catered to you. These are mostly exposing threats.
It is called the desktop or case.