Answer:
Errors:
1. semicolon is missing in the declaration of string.
2. for loop is not complete.
3. one curly braces is missing for closing class.
Explanation:
In the programming, semicolon is used at the end of the statement as a terminator.
in the declaration of string array semicolon is missing.
for loop is incomplete.
syntax of for loop;
for(initialization;condition;increment/decrement)
{
statement;
}
and finally curly braces in the programming braces must be enclose.
here, the braces of the class is missing.
Worst case for binary search tree -O(n)
Best case for binary search tree -O(1)
<u>Explanation:</u>
The Binary search tree is the special type of binary tree. There are two child node
- Left child node
- Right child node
- In that, the right child node has a value greater than it’s the parent node. The left child node has value less than it’s the parent node.
- In the below fig. for inserting element 0, it must be inserted as the left child of 1. Therefore, for sorting we have traveled in reverse order from (3,2,1) this is the worst-case complexity O(n).
Answer:
specialized limitations
Explanation:
beacause the others is an application product
Answer: A) It is directly accessible only in B1
Explanation: In the given chunk of code, Class B1 is a base class. Class B2 is derived class of class B1. Class B3 is derived class of B2. As you can see class B1 has two members or instance variables i and j. Instance variable cannot be directly accessible by both B2 and B3. If you see this statement of the given code private int j; the keyword private is used with the variable j. This keyword is called access specifier. Access specifiers specifies how the members of a class can be accessed. These members are attributes and methods of that class. Any member of a class that are declared private cannot be inherited by derived classes of that class. Additionally these private members cannot be accessed from within any method inside derived class. So j is directly accessible only in B1. You can access a private instance variable from within the same class or can access it through the methods of class.
The answer is false because you can change the margin size on words documents.