Answer:
bool identicaltrees(Node* root1,Node* root2)//function of type boolean true if idenctical false if not.
{
    if(root1==NULL&&root2==NULL)//both trees are null means identical.
    return true;
    if(roo1 && root2)
    {
        if(root1->data==root2->data)//condition for recursive call..
        {
            return (identicaltrees(root1->left,root2->right)&&identicaltrees(root1->right&&root2->right);
        }
    }
    else
    return false;
}
Explanation:
In this function it of type boolean returns true if both the trees are identical return false if not.First we are checking root node of both the trees if both are null then they are identical returning true.
If both root nodes are not null then checking their data.If data is same then recursively traversing on both trees and checking both trees.
else returning false.
 
        
             
        
        
        
FOR ANYONE THAT WANTS TO STUDY AND CHILL SCREENSHOT BEFORE KATLE DELEATES THIS
meeting id:  932-8097-2909
password:  z99LtX
Explanation:
 
        
             
        
        
        
Answer:
public class Brainly
{
  public static void main(String[] args)
  {
    BinaryConverter conv = new BinaryConverter();
    String binStr = "01001101";
    System.out.print(binStr + " in decimal is "+conv.BinToDec(binStr));
  }
}
public class BinaryConverter
{
  public int BinToDec(String binStr)
  {
    int d = 0;
    while(binStr.length() > 0)
    {
      d = (d << 1) + ((binStr.charAt(0) == '1') ? 1: 0);
      binStr = binStr.substring(1);
    }
    return d;
  }
}
Explanation:
The program "eats" the string from left to right, and builds up the integer representation in variable "d" on the go. While there are digits left, it shifts the previous result to the left and sets the least signficant bit to 1 only if the corresponding string character is a 1.
 
        
             
        
        
        
Answer:
Correct answer is (d) Scalable solution for an enterprise environment
Explanation:
Scaling and enterprise simply means adding up resources to the business need. By adding hardware (s) or by upgrading the existing hardware without changing much of the application, one will be able to implement a three-tier campus network.