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
soldier1979 [14.2K]
2 years ago
15

Which of the following are valid values of the char data type? (Select all that apply)

Computers and Technology
2 answers:
liq [111]2 years ago
7 0
2 and c are correct answers
pychu [463]2 years ago
5 0

Answer:

'2' 'C' '%' are all valid.

Explanation:

5 is an integer, Toast, "5" and "B" are also strings. X isn't defined.

You might be interested in
The main responsibility of a search engine's web crawler is to: Group of answer choices count the number of Web pages in existen
eimsori [14]

The main responsibility of a search engine's web crawler is to: <em>catalog </em><em>and </em><em>index </em><em>information on Web pages</em>.

<h3>What is a Web Crawler?</h3>

A web crawler can be described as a type of bot which is usually operated by search engines.

A web crawler helps to index the content of websites found in the internet in order for them to appear on search engines.

Therefore, the main responsibility of a search engine's web crawler is to: <em>catalog </em><em>and </em><em>index </em><em>information on Web pages</em>.

Learn more about web crawler on:

brainly.com/question/3186339

6 0
1 year ago
Which type of connection to the Internet is capable of the fastest transfer rates
dem82 [27]

That's a fiber connection direct to the internet service provider,
and a whopping monthly charge.

5 0
2 years ago
Read 2 more answers
A python script to print fibonacci series first 20 elements
madreJ [45]

Answer:

   nterms =20

   # first two terms

   n1, n2 = 0, 1

   count = 0

   # check if the number of terms is valid

   if nterms <= 0:

      print("Please enter a positive integer")

   elif nterms == 1:

      print("Fibonacci sequence upto",nterms,":")

      print(n1)

   else:

      print("Fibonacci sequence:")

      while count < nterms:

          print(n1)

          nth = n1 + n2

          # update values

          n1 = n2

          n2 = nth

          count += 1

Explanation:

Here, we store the number of terms in nterms. We initialize the first term to 0 and the second term to 1.

If the number of terms is more than 2, we use a while loop to find the next term in the sequence by adding the preceding two terms. We then interchange the variables (update it) and continue on with the process.

<em>output:</em>

Fibonacci sequence:

0

1

1

2

3

5

8

5 0
2 years ago
this endpoint does not support blobstorageevents or softdelete. please disable these account features if you would like to use t
otez555 [7]

Answer:

A

Explanation:

8 0
2 years ago
Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles. Use the follow
Dmitrij [34]
<h2>Answer:</h2>

import java.util.Scanner;

public class NauticalMiles{

   public static void main (String [ ] args){

      Scanner input = new Scanner(System.in);

      System.out.println("Please enter the number of kilometers");

      double km = input.nextDouble();

      double nm = 0.54 * km;

      System.out.println("The corresponding number of nautical miles is "  + nm);

    }

}

<h2>Explanation:</h2><h2></h2>

<em>1 => Pre-code analysis</em>

According to the question,

(a) <em>A nautical mile (nm) is 1 minute of an arc.</em>

=> 1 nm = 1 minute of an arc

(b)<em>There are 90 degrees, each containing 60 minutes of arc, between the North pole and the equator.</em>

=> Each of the degrees in 90 degrees has 60 minutes of arc

=> 1^{0} = 60 minutes of arc

=> 90^{0} = 90 x 60 minutes of arc

=> 90^{0} = 5400 minutes of arc

(c) <em>A kilometer (km) represents 1/10,000 of the distance between the North pole and the equator. </em>

=> A kilometer = (1 / 10000) x distance between the North pole and equator.

Remember that the distance between the North pole and the equator as shown in (b) above is 90 degrees which is equal to 5400 minutes of arc.

=> 1 km = (1 / 10000) x 5400 minutes of arc

=> 1 km = (1 / 10000) x 5400 x 1 minute of arc

As shown in (a) above, 1 minute of arc is 1 nautical mile(nm).

=> 1 km = (1 / 10000) x 5400 x 1 nm

<em>=> 1 km = 0.54 nm.</em>

=========================================================

<em>2 => The code analysis</em>

The code has been written in Java.

The following is the line-by-line explanation of the code written as comments.

// Import the scanner class to allow for user's inputs

import java.util.Scanner;

// Declare the main class to hold and run the application

public class NauticalMiles {

   // Write the main method where execution will begin

   public static void main (String [ ] args) {

      // Create an object <em>input </em>of the Scanner class  

      Scanner input = new Scanner(System.in);

     

      // Prompt the user to enter the number of kilometers

      System.out.println("Please enter the number of kilometers");

      // Store the user's input in a double variable called <em>km</em>

      double km = input.nextDouble();

      // Convert the input to nautical miles using the formula from the

      // pre-code analysis above. i.e 1km = 0.54nm.

      // Store the result in a double variable called <em>nm</em>

      double nm = 0.54 * km;

      // Print out the result (the nautical mile)

      System.out.println("The corresponding number of nautical miles is "  + nm);

    }       // End of main method

}            // End of class declaration

=========================================================

<em>3 => Sample output</em>

<em></em>

> Please enter the number of kilometers

>> <em>45</em>

> The corresponding number of nautical miles is 24.3

8 0
3 years ago
Other questions:
  • What kind of video are you are able to watch by downloading it from the Internet?
    10·1 answer
  • 1. What is an advantage of the PCIe bus over the PCI bus?
    9·1 answer
  • 50+ POINTS AND BRAIN IF CORRECT Which function is used to return the value in a particular row and/or column in a worksheet and
    5·1 answer
  • An effective problem statement ensures that
    12·1 answer
  • 1
    13·1 answer
  • There are six different sequences for the three approval tasks: check inventory; check credit; check special terms.
    5·1 answer
  • Yes I believe that Oop should be phased out.....Give me 2 reasons plzz
    13·1 answer
  • An administrator wants to configure hosts to automatically assign IPv6 addresses to themselves by the use of Router Advertisemen
    14·1 answer
  • ) For a course with n students, an n X 3 array, int[][] arr, holds scores on 3 exams. Each row holds the exam scores for one stu
    15·1 answer
  • How do you record your own video game Music and post Them on yt
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!