Which type of error occurred in the following lines of code? >>> print(9 / 0)

Traceback (most recent call last):

File " ", line 1, in

9/0

ZeroDivisionError: division by zero
Answer choices:
reserved word error

logical error

exception

syntax error

Answers

Answer 1
Answer:

Answer: Logical Error

The division by 0 is a logical error.


Related Questions

Consider the following instruction: OR( %1111_0000, AL ) ; After its execution, what will be true about the bits stored in AL?
In open addressing with linear probing we must consider how to encodeA. Occupies positionsB. Available positionsC. All other answersD.empty positions
What are the advantages and disadvantages of using the serial console connection compared to the usb console connection to a cisco router or switch?
/ Looks up author of selected booksimport java.util.*;class DebugNine1{public static void main(String[] args){Scanner input = new Scanner(System.in);String[][] books = new String[6][2];books[0][0] = "Ulysses";books[0][1] = "James Joyce";books[1][0] = "Lolita"books[1][1] = "Vladimir Nabokov";books[2][1] = "Huckleberry Finn";books[2][1] = "Mark Twain";books[3][0] = "Great Gatsby";books[3][2] = "F. Scott Fitzgerald";books[4][0] = "1984";books[4][1] = "George Orwell";books[5][5] = "Sound and the Fury";books[5][1] = "William Faulkner";String entry,shortEntry,message ="Enter the first three characters of a book title omitting \"A\" or \"The\" ";int num, x;boolean isFound = true;while(!isFound){System.out.println(message);entry = input.next();shortEntry = entry.substring(0,3);for(x = 0; x < books.length; ++x)if(books[x][0].startsWith(shortEntry)){isFound = true;System.out.println(books[x][x] + " was written by " + books[x][1]);x = books.length;}if(isFound)System.out.println("Sorry - no such book in our database);}}}
What is probably the most revolutionary innovation since the printing press?

Describe how the Internet Protocol (IP) allows devices to easily connect and communicate on the Internet.

Answers

Internet Protocol (IP) are guideline about how data should be sent across the internet.

Internet Protocol (IP) work hand in hand with packet as they are connected to every packet which therefore means that any internet users who connect to the internet will be allocated with a unique Internet Protocol (IP)  address.

This  Internet Protocol (IP)  address will  enables the user devices to connect and communicate across the internet with ease once the packets are connected to the each Internet Protocol (IP)  address allocated to them.

Learn more here:

brainly.com/question/23954744

What is the most important trait of the first pilot project in the AI Transformation Playbook?

Answers

Answer:

Succeed and show traction within 6-10 months.

Explanation:

Ai (Artificial Inteliigence), also known as machine intelligence, is a branch of computer science that is specialized in making smart machines that are capable of doing human tasks

AI Transformation Playbook is a guide to use AI in enterprises successfully, written by Co-founder of Google Brain, Andrew Ng. In his guide, he unveiled the steps that can be followed to successfully installing AI in enterprises, companies, etc.

The most important trait of the first pilot projects is that it succeeds and begins to show traction within 6-10 months.

In his guide, he summarised five steps to install AI in enterprises. The first step is to 'Execute pilot projects to gain  momentum.'

The most important trait of beginning with AI projects is that it succeeds first before being most valuable projects. The success is important as it will help to achieve familiarity and will help other people of the company to invest in this project more.

This success begins to show tractions within 6-12 months of its success.

To return the value of the cell D8, the formula should be OFFSETA1=________.

Answers

Answer:

The formula is =OFFSET( A1, 7,3,1,1 )

Explanation:

Microsoft excel is a statistical and analytical tool for data management and analysis. Its working environment is called a worksheet. The worksheets are made up of rows and columns also known as records and fields respectively.

Functions like OFFSET in excel is used to return a cell or group of cells. It gets the position to turn by start getting a starting port, then the number of records below it and the fields after, then the length and width of cells to return.

syntax:   =OFFSET( "starting cell", "number of rows below", "number of columns after", "height of cells to return", "width of cells to return" )

Write an if statement that assigns 100 to x when y is equal to 0. 32. Write an if/else statement that assigns 0 to x when y is equal to 10. Otherwise it should assign 1 to x. 33. Using the following chart, write an if/else if statement that assigns .10, .15, or .20 to commission, depending on the value in sales. Sales Commission Rate Up to $10,000 10% $10,000 to $15,000 15% Over $15,000 20%

Answers

Answer:

1.  

if(y==0.3){ x = 100;}

2.

if(y == 10){

x = 0; }

else {

x = 1; }

3.

if(sales< 10000){

commission = 0.10;

}

else if(sales>= 10000 && sales <= 15000 ){

commission = 0.15;

}

else{

commission = 0.20;

}

Explanation:

The statements written in brackets represent the conditions while the statements in {...} represent the operation that would be executed depending on the outcome of the if statement.

For 1: if(y==0.3){ x = 100;}

If y is 0.3, 100 would be assigned to x

For 2:

if(y == 10){ x = 0; }

If y is 10, 0 would be assigned to x

else { x = 1; }

If otherwise, 1 would be assigned to x

For 3:

if(sales< 10000){commission = 0.10;}

Is sales is less than 10000, commission would be 0.10

else if(sales>= 10000 && sales <= 15000 ){commission = 0.15;}

If sales is within range of 10000-15000, commission would be 0.15

else{commission = 0.20;}

If otherwise, commission would be 0.20

What is the analysis and complexity of a shell sortalgorithms?

Answers

Answer: The shell sort is based on insertion sort. Here the list of elements are divided into smaller sub list which are sorted based on insertion sort.

Its best case time complexity is O(n* logn) and worst case is O(n* log^2 n)

Explanation:

Shell sort is an inplace sorting here we begin by dividing the list into sublist and sorting the list with insertion sort. We create interval for dividing the list into sub list until we reach the smallest interval of 1.

The best case is O(n* logn).

Which of the following function declarations correctly expect an array as the first argument?Question 1 options:

void f1(int array, int size);

void f1(int& array, int size);

void f1(int array[100], int size);

void f1(float array[], int size);

All of the above

C and D

A and B

Answers

Answer:

Only

Option: void f1(float array[], int size);

is valid.

Explanation:

To pass an array as argument in a function, the syntax should be as follows:

functionName (type arrayName[ ] )

We can't place the size of the array inside the array bracket (arrayName[100]) as this will give a syntax error. The empty bracket [] is required to tell the program that the value that passed as the argument is an array and differentiate it from other type of value.