what is the depth of the following tree?

What Is The Depth Of The Following Tree?

Answers

Answer 1

Answer:

The correct answer to this question is given below in the explanation section.

Explanation:

This given tree has four nodes. Node A is a parent node in this tree, while B, C, and D are child nodes of A.

The given options about the depth of the tree are:

A). 0B). 1C). 2D). 3

The correct option to this question is (B) i.e. the depth of this tree is 1.

Because we know that the depth of a node M in the tree is the length of the path from the root of the tree to M. So, in this case,  the depth of node A to node B, C, and D  is 1. So, the correct option to this question is B. i.e the depth of the given tree is 1.


Related Questions

(Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100.0 hours or 4.166666666666667 days.​

Answers

import java.util.Scanner;
public class MinutesConversion {
private static Scanner inputDevice;
public static void main(String[] args) {
int minutes, hours;
float days; // float for decimal point

inputDevice = new Scanner(System.in);
System.out.println("Please enter minutes for conversion >> ");
minutes = inputDevice.nextInt();
hours = minutes / 60;
days = hours / 24.0f;


System.out.println(+ minutes + " minutes is " + hours + " hour(s) or" + days " days");
}
}

The program is a sequential program, and it does not require any conditional statement or iteration.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 //This declares minutes as a double data type

 double mins;

 //This creates a Scanner object

 Scanner input = new Scanner(System.in);

 //This gets input for minutes

 mins = input.nextDouble();

 //This converts the minutes to hour and days, and also print them

 System.out.println(mins/60+" hours or "+mins/1440+" days");

}

}

At the end of the program, the equivalent number of hours and number of days are printed.

Read more about similar programs at:

https://brainly.com/question/8598360

it is where your cpu (processor) is installed

Answers

The motherboard (CPU SOCKET)

Answer:

OPTICAL DRIVE

Explanation:

It think

Taylor needs to remove the text to the left of his cursor. Which of the following keys should he press?

Answers

Answer:

bacspace not delete

Explanation:

delete erases on the right not left

Backspace he should press to remove the text to the left of his cursor.

What is cursor?

A cursor is an indicator used in computer user interfaces to show the current position for user interaction on a computer monitor or other display device that responds to input from a text input or pointing device. Because of its usage resemblance to a pointing stick, the mouse cursor is also known as a pointer. Cursor is a Latin word that means "runner." The transparent slide engraved with a hairline that is used to mark a point on a slide rule is known as a cursor. By example, the word was later transferred to computers. On November 14, 1963, while attending a computer graphics conference in Reno, Nevada, Douglas Engelbart of the Augmentation Research Center (ARC) expressed his desire to pursue his goal of developing both software and hardware computer technology to "augment" human intelligence by pondering how and where to adapt the underlying principles of the planimeter to inputting X- and Y-coordinate data.

To learn more about cursor
https://brainly.com/question/12406758

#SPJ2

I need help pleaseeeee!!!

Answers

Answer:

True

Explanation:

Integrated Services Digital Network (ISDN) is a set of communication standards for simultaneous digital transmission of voice, video, data, and other network services over the traditional circuits of the public switched telephone network.

Pleaseee mark me as brainliest

Hope this help <3

The shooting(blank) should describe a daily plan of the shoot and should include everything from the crew to wrap-up.

Answers

Answer:

schedule

Explanation:

Indeed, in almost every video production a shooting schedule is used to describe the daily plan of the shoot; such as what scenes to shoot first, and next.

It also gives details about the crew, as well as the timeline for the entire film production, and so on.

When a customer makes an online hotel booking the database is updated by using
A) table
B) form
C) query
D)report

Answers

I think it’s a form,if wrong please don’t be mad

When a customer makes a booking, the database is updated by using a form.

Forms in a database are necessary for the manipulation and the retrieval of data. It helps with entering, editing as well as displaying data.

The form allows you to add data to the already existent table and it can also help one to view already existent information.

A form can also be used to view information from query. When this is the case, it searches and analyzes data.

Read more at https://brainly.com/question/10308705?referrer=searchResults

Given the formula on the left, label the parts. SUM . A2:D19 . E55 . (A2:A19,C13,E55,19) .

Answers

Answer:

SUM  

✔ function name

.

A2:D19  

✔ range

.

E55  

✔ value

.

(A2:A19,C13,E55,19)  

✔ argument

Answer:

1. B

2. A

3. A

4. C

Explanation:

On edge2020 I got it right

Which are examples of primary sources? Check all that apply.

diary
newspaper article
biography
photograph
speech

Answers

Answer:

A, D, E

Explanation:

Diaries, photographs, and speeches are all forms of primary sources, whereas biographies and newspaper articles are written by a secondary source.

Answer:

a,d,e

Explanation:

What two states do binary numbers represent?

A) Coder and processor
B) Input and output
C) On and off
D) Right and left

Answers

Answer:

C

Explanation:

Binary is a base-2 number system that uses two mutually exclusive states to represent information. A binary number is made up of elements called bits where each bit can be in one of the two possible states. Generally, we represent them with the numerals 1 and 0.

Answer:

C

Explanation:

On and off symbolize 0 and 1.

(true or false) One of the difficult things about working in game design is that while there are many different roles, most of them only match one specific personality type.
True
False

Answers

Tbh I think it’s False because most of them don’t match
I thinks it’s false cause most don’t match

what is the meaning of .com in computer​

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The terms ".com" is the most common term that you see at the end of the domain name. This term is most widely used in computers and in websites. The dot com ".com" is a suffix and most common suffix in website addresses.

Furthermore, the term ".com" is short for a commercial for many educational, personal, profit, and non-profit websites. The reason behind using .com as a suffix in a website name is that it is most common and recognizable.

You can buy a website domain with dot com ".com" suffix from many website hosting companies. The companies that using dot com in their website name they are mostly doing business on the internet.

Shira’s Shoes sold 875,000 pairs of sandals in June, which was 70% of the total number of shoes sold. How many shoes did the company sell in June? Analyze Emily’s calculations. What error did she make?

Answers

Explanation:

Emily solved for a part when she should have solved for the whole. 875,000 should be the numerator of the equivalent ratio. 70 x 12,500 is 875,000. So the answer is 100 x 12,500 which is 1,250,000.

Answer:

Emily solved for a part when she should have solved for the whole. 875,000 should be the numerator of the equivalent ratio. 70 x 12,500 is 875,000. So the answer is 100 x 12,500 which is 1,250,000.

Select all the correct answers.
In which TWO ways does e-governance empower citizens?

Citizens can obtain information directly from government websites.
Citizen can easily fix appointments with senators online.
Citizens do not need to travel to government offices.
Citizens can vote online on the bills introduced in the legislature.


i will have more questions under ur answers

Answers

Answer:

Citizens can obtain information directly from government websites.

Citizens do not need to travel to government offices.

Explanation:

These seem the most appropriate to me.

what is the computer?​

Answers

Answer:

an electronic machine that can store, find and

[Files, for loops, exceptions; 20pt] Using a for loop, write a function called countWord(). It takes 2 parameters: The name of a text file (e.g. gettysburg.txt that is included with this test) and a word to be searched within that file. Your code should return the number of times the given word appears in the file. Capitalization should not matter. Make certain to handle file exceptions gracefully.

Answers

def countWord(name, word):

   try:

       f = open(name, "r")

       lst = ([])

       w = ""

       for x in f.readlines():

           w += x.lower()

       lst = w.split()

       f.close()

       return lst.count(word)

   except FileNotFoundError:

       print("Please create a file or use the name of an existing text file.")

print("Your word appears", countWord("gettysburg.txt", "random"), "time(s)")

The text file I used for testing looks like:

random words

random words

I'm putting random words in here

random

this is random

RaNdOm

I didn't really know what exceptions your professor is looking for so I just used the file not found one. Best of luck.

2. The internet offers a great source of information; however, how are
you going to make sure that these pieces of information are reliable?​

Answers

Answer:

There are many different ways that you can ensure that the information you gather on the internet is reliable and accurate! One way is to not look at Wikipedia and sites where anyone has the access to edit it at any time. Sites that are .com or .org are usually from a direct and safe source. Stay away from media websites and if you believe something isn't right, do further research.

Explanation:

Hopefully this helps.

Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be. What kinds of errors does Erin need to fix?
logic errors
database errors
debugging errors
syntax errors

Answers

Answer:

A simple syntax error :)

"A character or string incorrectly placed in a command or instruction that causes a failure in execution."

Good luck! Hope this helped! :D

The kinds of errors does Erin need to fix is a simple syntax error.

What is syntax error?

Syntax is a character or string when incorrectly placed in a command or instruction results in failure while executing.

Erin’s classmate said that the program that they were working on is not running properly because the classmate accidentally put in commas where semi-colons should be.

The correct way to remove syntax error is putting colon and semicolon on the right place.

Learn more about syntax error.

https://brainly.com/question/18271225

#SPJ2

Animal wisdom/ the last wolf .compare and contrast the overall feeling of each poem

Answers

List the poem please. I won’t be able to answer without it.

If you draw strength from video games, how?

Answers

Answer:

I really dont know

Explanation:

Thank u for the pts tho < :)

Sonora wants to extend the cells to be added in her formula. What is the quickest way to add more cells?
O Go to the Function Library group and click Insert Function.
Click the Insert tab in the ribbon and then Equation.
O Type the ranges in the parentheses in the formula bar.
O Left-click on a cell that is included and drag the cursor.

Answers

Answer:

D

Explanation: took the test on edge

Answer:

Left-click on a cell that is included and drag the cursor.

Explanation:

A friend a just opened his own barber shop and has asked you to develop a program to track the type of service the customer is receiving and the cost for the service and also include any tips the customer may give to the barber. The name of your friend's barber shop is Big Al's and on each customer receipt he wants to display the name of his shop, customer name, the type of service, cost of the service, and the amount of the tip for a total price of the service rendered. Name your variables Declare your variables

Answers

Answer:

class Barber(object):

   barber_shop = "Big AI's barber shop"

   def __init__(self, customer_name, type_of_service=[], tip=0):

       self.cust_name = customer_name

       self.tos = type_of_service

       self.tip = tip

   def service_type(self, *args):

       for i in args:

           self.tos.append(i)

   def total(self):

       

       services = {'trimming':10, 'hair_cut':20, 'shaving':15, 'washing':5, 'dyeing':5}

       contain = ''

       total = 0

       for service in self.tos:

           if service in services.keys():

               total += services[service]

               contain += f'{service}: {services[service]}\n'

       

       print(self.barber_shop,'\n', self.cust_name,'\n', 'Services:',contain.splitlines(),'\n', \

           f'total: ${total}', '\n',f'Tip: ${self.tip}')

mycust = Barber('John',['washing'],6 )

mycust.service_type('shaving', 'dyeing')

mycust.total()

Explanation:

The Barber class is a blueprint used to create an object instance of customers that visits the barber-shop. It has two methods 'service_type' and 'total' which are just defined functions of the class that appends services to the type of service variable and total that prints the total cost of services on the screen.

please help me I want the answer for the 3rd question ​

Answers

Use the multiples thats are included in the flowchart and divide them by half a divisible

In a networking context, "architecture" refers to
a. the building that houses the network
b. design
c. the hardware
d. a well-built network

Answers

Answer:

A well built netwrk

Explanation:

what makes classical music "classical"?​

Answers

Answer:

Whereas most popular styles are usually written in song form, classical music is noted for its development of highly sophisticated instrumental musical forms, like the concerto, symphony, and sonata. Classical music is also noted for its use of sophisticated vocal/instrumental forms, such as opera.

Answer:

the time period in which it was composed

Explanation:

Its made up of a small memory chips on a card that can hold data in an electronic format​

Answers

The chip can allow you to have more data and more pictures so your phone does not become slow and messages and apps and more.

__ allow(s) users with mobility issues to control the computer with their voice.

Speech input software

Tracking devices

Head pointers

Text-to-speech

Answers

Answer:

Speech input device

Explanation:

I think this is the answer

Answer: speech input software

Explanation: got it right on edgen

[Exceptions, Function calling another function] Write a function ticker() that first runs (calls) read_ticker() and then stores the returned dictionary. It then runs an interactive loop with the user in which the user is prompted for a company name. If the company name (key) is in the dictionary, then its ticker form and the IPO year is printed. Otherwise a warning is printed that the company name is not in the list. If the user just hits return without entering a name, the loop stops.




this is the function that needs to be called:
def read_ticker():
d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'), '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}
return d

Answers

def read_ticker():

   d = {'1347 Capital Corp.': ('TFSCW', '2014'), '1347 Property Insurance Holdings, Inc.': ('PIH', '2014'),

        '1-800 FLOWERS.COM, Inc.': ('FLWS', '1999')}

   return d

def ticker():

   di = read_ticker()

   while True:

       try:

           name = input("Enter the name of a company: ")

           if name == "":

               return

           print(di[name])

       except KeyError:

           print("Name not found! Please enter a valid name!")

ticker()

I hope this helps!

How do you halt an infinite loop?
by pressing the Control key and the

key

Answers

write code creating an infinite loop, with my new Excel, the Ctrl + Break no longer works. Neither does the Esc key, etc.

I've looked all over the web and it appears that Microsoft has a bug and doesn't care to fix it.

Is there a way to re-introduce the Ctrl + Break function to VBA so if this happens in the future I don't lose work / force close?

Answer:c

Explanation:ctrl and c stops a infinite loop

Find true or false. A hacker is hacking software with access in sensitive information from your computer​

Answers

ITS TRUE!!I SEARCHED IT

Social networking is the most popular online activity?
True
False

Answers

Answer:

true

Explanation:

It’s true because I said so
Other Questions
SOMEONE PLZ HELP!!!!!!!!! Describe what the legal ramifications are for having sexual relations with minors. state the role of mitosis in growth of living organism The length of a path from a picnic area to the playground is 34 mile. The path has signs with arrows pointing to the playground every 18 mile.How many signs are placed along the path, assuming that there is a sign at the beginning of the path but not at the end? What was the main difference between the French and British armies in the French and Indian war? Yellowstone National Park there are rocks formed that are both extrusive and intrusive igneous rocks. It is important to note that the main difference between them is _________.Question 6 options:How they formed; intrusive rocks formed from lava and extrusive rocks are form from magmaHow they formed; extrusive rocks formed from lava and intrusive rocks formed from magmaWhere they are found; extrusive rocks are only found above groundWhere they are found; intrusive rocks are only found above ground 0.3, 0.08, 0.003, 0.83In order from smallest to largest A number increased by 15 is greater than 124. find the smallest integer that satisfies the inequality, Find 3 consecutive odd integers such that 10 times the first is 59 more than the third? Find the slope of the line that contains the ordered pairs. a. (4, 2) and (7, 6.5) b. (10, 8) and (-5, 8) c. (1, -3/4) and (4, -3) d. (18, -7) and (18, 2) Write the slope intercept form of the equation of the line through the given point with the given slopeThrough: (-2,1), slope = -3 Date1Page No.change the following sentencfuomo active toto passiveVoice o1. He has eaten lunch. mr cadwell wants to purchase a motorcycle. he has financing options a and b to chose from, as shown below. Option A-Down Payment: $1,000Monthly payment for 3 years: $85Option B-Down payment: $1,200Monthly Payment for 3 years: $85The purchase of the motorcycle is $3,500, including tax. Based on the info provided in the table, which statement is true?Option B is betterOption A is better Heeeeellllllllllllpppppppppp What did the Pope promise Crusaders that would encourage them to attack Jewish people?a.That all sins for Crusaders would be forgiven automaticallyb.That all debts would be paid if you went on Crusadec.That all the goods of their enemies would go to the Churchd.That they would be rewarded by God for fighting His enemies Review the map.Which soil region is labeled B on the map?FlatwoodsBlack PrairiePontotoc RidgeTombigbee Hills Write the noun that each underlined adjective modifies in thespace provided. Circle all other adjectives.oup6. Woovis poured the foul soupdownthe kitchen sink.7. Then Squirmy made a quick call toSoupie's All-Night Soup Shop.is8. Squirmy ordered a full pint of blackbean soup. PLEASE HELP I WILL GIVE YOU BRAINLEST!!!!!!!!!!!!!! Answer to this :0000 thanks! PLEASEEEE HELPPP MEEE :(