1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Leni [432]
3 years ago
5

Unchecked exceptions require you surround the code that might throw such an exception with a try block or you must use a throws

statement at the end of the method signature. Failure to do one of these two things will result in a compile error.
a. True
b. False
Computers and Technology
1 answer:
hammer [34]3 years ago
6 0

Answer:

b. False

Explanation:

False, unchecked exceptions do not cause compilation errors and do not require try/catch blocks or throws statements. However, although they are not required it is good programming to include them in order to handle any exceptions that may arise. If you do not include a proper way to handle such an exception the program will still run but may run into an exception during runtime. If this occurs then the entire program will crash because it does not know how to handle the exception since you did not provide instructions for such a scenario.

You might be interested in
Create a new Java project/class called Examine1. Prompt user as to how many numbers they would like to enter. Use a cumulative s
Zinaida [17]

Answer:

Explanation:

The following code is written in Java and like requested prompts the user for a number to continue or a letter to exit. Then loops and keeps adding all of the numbers to the sum variable and adding 1 to the count for each number entered. Finally, it prints the sum and the average using printf and the variables.

import java.util.Scanner;

class Examine1 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       int sum = 0;

       int count = 0;

       System.out.println("Enter a number to continue or a letter to exit.");

       while(in.hasNextInt()) {

           System.out.println("Enter a number:");

           sum += in.nextInt();

           count += 1;

       }

       System.out.printf("The sum is %s.%n", sum);

       System.out.printf("The average is %s.", (sum / count));

   }

}

8 0
3 years ago
Assign total_owls with the sum of num_owls_A and num_owls_B.
jonny [76]

Answer:

Explanation:

  • We declare the variable about the zoo with the owl's quantity, we could put any integer.
  • We make the sum operation zooA + zooB, with the variable total_owls.
  • we print the result about the two zoo.

num_owls_zooA= 3

num_owls_zooB = 4

total_owls = 0

total_owls = num_owls_zooA + num_owls_zooB

print('Number of owls:', total_owls)

3 0
3 years ago
NumA = 3 <br>numB = 2<br>Result = numA ** numB
Paul [167]

Answer:

The result of the following code will be 9

Explanation:

There are several operators used in Python to do mathematical calculations.

** operator is used for exponents.

i.e.

a ** b mathematically means a^b

Here in the given code

3 is assigned to numA and 2 is assigned to numB

Result will be equal to 3^2

Hence,

The result of the following code will be 9

3 0
3 years ago
The import command can be used to bring into your python program, additional code contained in other python code files. true fal
Ymorist [56]
True, but it won't be in the same namespace. See below:

>>> import time
>>> print time.time()
1510180694.04
>>> quit()

By doing a straight import I have to reference the namespace time and the function time. (Yeh, I should have picked a different example, but I couldn't think of any)

>>> from time import time
>>> time()
1510180718.76834
>>> quit()

By doing the from, I import the time function into the __main__ namespace so I don't need to reference a name space when I call it.



8 0
3 years ago
a sports car is advertised to be able to reach 60 mph in 5 seconds flat, corner at 0.85 g , and stop from 70 mph in only 168 fee
Hitman42 [59]
T, 0-60 in 5 is slow, 0.85 g is not a lot, and 168 feet is a lot of space to stop a car from 70 MPH, also it depends on what car it is. if its a lotus, they lied, if it is a civic si, possible, if its a corvette, no problem, if its a mustang, possible, if its a camaro, possible, also depends on the year, if its a 1908 ford model t, hold on to a clock with out second hand to get to 60
5 0
3 years ago
Other questions:
  • Unlike images, tex and hyperlinks, vidoes _____ A) are playable in source view B are not used to affect user's emotions C) can b
    15·1 answer
  • When do on loop conditions happen? (1 point)
    5·1 answer
  • ________ is the extent to which differences in observed scale scores reflect true differences among objects on the characteristi
    13·1 answer
  • Here is free points im leaving
    11·2 answers
  • Menciona dos ventajas que ofrece el procesador de textos word
    11·1 answer
  • If you delete a shortcut from your desktop, have you also deleted the original file?
    11·2 answers
  • describe the impact of technology in your life . how does it affects your human relations with other people .​
    12·1 answer
  • What gonna happened if you put rice water in your hair
    8·1 answer
  • How many country on earth​
    6·2 answers
  • Which of the following is/are used in multimedia?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!