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
Elena L [17]
3 years ago
13

Which one of these is correct PI of a XML document?

Computers and Technology
1 answer:
alekssr [168]3 years ago
3 0

Answer:

A

Explanation:

A valid xml looks like this;

<?xml version="1.0"?>

Cheers

You might be interested in
On what basis can you categorize the generations of computers
3241004551 [841]

what the answer to this question....


7 0
3 years ago
The compare_strings function is supposed to compare just the alphanumeric content of two strings, ignoring upper vs lower case a
Korolek [52]

Answer:

There is a problem in the given code in the following statement:

Problem:

punctuation = r"[.?!,;:-']"

This produces the following error:

Error:

bad character range

Fix:

The hyphen - should be placed at the start or end of punctuation characters. Here the role of hyphen is to determine the range of characters. Another way is to escape the hyphen - using using backslash \ symbol.

So the above statement becomes:

punctuation = r"[-.?!,;:']"  

You can also do this:

punctuation = r"[.?!,;:'-]"  

You can also change this statement as:

punctuation = r"[.?!,;:\-']"

Explanation:

The complete program is as follows. I have added a print statement print('string1:',string1,'\nstring2:',string2) that prints the string1 and string2 followed by return string1 == string2  which either returns true or false. However you can omit this print('string1:',string1,'\nstring2:',string2) statement and the output will just display either true or false

import re  #to use regular expressions

def compare_strings(string1, string2):  #function compare_strings that takes two strings as argument and compares them

   string1 = string1.lower().strip()  # converts the string1 characters to lowercase using lower() method and removes trailing blanks

   string2 = string2.lower().strip()  # converts the string1 characters to lowercase using lower() method and removes trailing blanks

   punctuation = r"[-.?!,;:']"  #regular expression for punctuation characters

   string1 = re.sub(punctuation, r"", string1)  # specifies RE pattern i.e. punctuation in the 1st argument, new string r in 2nd argument, and a string to be handle i.e. string1 in the 3rd argument

   string2 = re.sub(punctuation, r"", string2)  # same as above statement but works on string2 as 3rd argument

   print('string1:',string1,'\nstring2:',string2)  #prints both the strings separated with a new line

   return string1 == string2  # compares strings and returns true if they matched else false

#function calls to test the working of the above function compare_strings

print(compare_strings("Have a Great Day!","Have a great day?")) # True

print(compare_strings("It's raining again.","its raining, again")) # True

print(compare_strings("Learn to count: 1, 2, 3.","Learn to count: one, two, three.")) # False

print(compare_strings("They found some body.","They found somebody.")) # False

The screenshot of the program along with its output is attached.

4 0
3 years ago
. What year did the USA host World Cup? Right answer 1994
Ksivusya [100]

Answer:

USA host World Cup in 1994 1994 FIFA World Cup

Explanation:

USA host World Cup in 1994 FIFA World Cup

it was the 15th edition of FIFA World Cup

and Brazil was won the tournament

Brazil beat Italy by 3–2 in  penalty shoot-out

it was play between 17 June to 17 July and 24 team play this World Cup

and there matches played = 52

and 9 cities host this game

United States of America was chosen as the host by FIFA on the 4 July, 1988

5 0
3 years ago
$2,000 is deposited into a savings account that receives 4% annual interest . How long will it take for the amount of money in t
anzhelika [568]
The answer would be 25 years is what it would take for it to double 2000x.04=80 . The interest would add up to 80 for 1 year. Multiple 80 by 25 and you get 2000.
8 0
3 years ago
Your firm's management team will expect a variety of reports from you and your team.
maxonik [38]

Answer:true

Explanation:they are your management and want you to tell them when you have completed a task or if something happens

7 0
3 years ago
Other questions:
  • Which of the following criteria would not make a person eligible to receive medicare benefits?Which of the following criteria wo
    12·2 answers
  • The dashed lines that display on your slide when you are moving an object are
    10·1 answer
  • WILL UPVOTE NEED ANSWERS ASAP i have till 4:30
    12·1 answer
  • What does gps stand for ?
    15·2 answers
  • The system restore utility can be started from command line using what executable?
    11·1 answer
  • 7.
    15·1 answer
  • In this lab, you complete a C++ program that swaps values stored in three int variables and determines maximum and minimum value
    15·1 answer
  • In what tab can a user find the workspace option?
    8·1 answer
  • Which avenue may utilize video streaming, audio narration, print designs, and animation?
    10·2 answers
  • Consider the language defined by the following regular expression. (x*y | zy*)* Does zyyxz belong to the language? Yes, because
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!