answer.
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
Alona
2 months ago
14

Strlen("seven"); what is the output?

Computers and Technology
1 answer:
oksian1 [950]2 months ago
4 0

Response:

Your answer is A, and I hope this information is useful.

You might be interested in
Write a method, isEmailAddress, that is passed a String argument. It returns true or false depending on whether the argument has
Amiraneli [1052]

Answer:

//This method takes a parameter called myString of type String

public static boolean isEmailAddress (String myString){

//verifying if the @ character exists in the string

if (myString.indexOf("@")!= -1) {

  //ensuring that only a single instance of @ appears in the string

   if (myString.indexOf("@") == myString.lastIndexOf("@")) {

   //confirming absence of space characters

  if (myString.indexOf(" ") == -1) {

    //checking for the absence of newline characters in the string

    if (myString.indexOf("\n") == -1) {

      //checking for absence of tab characters in the string

      if (myString.indexOf("\t") == -1) {

          return true;

      }

    }

  }

}

}

 return false;

}

Explanation:

The method takes a string presumed to be an email address and verifies whether it is valid, returning true if it is valid and false otherwise. The method checks the following conditions:

->The presence of the "@" character

->Only one occurrence of "@" exists in the string

->No spaces present

->No newline characters present

->No tab characters present

Returning true only if all these conditions are met.

8 0
2 months ago
Skylar is viewing her personal and business calendar in a side-by-side fashion, but she would like to view a single calendar tha
Natasha_Volkova [1026]
Skylar should enable the Overlay option.
8 0
1 month ago
Delete Prussia from country_capital. Sample output with input: 'Spain:Madrid,Togo:Lome,Prussia: Konigsberg' Prussia deleted? Yes
Amiraneli [1052]

Answer:

Explanation:

When removing items from a dictionary, always specify the key in quotation marks.

For example: del country_capital['Prussia']

Failing to place it in quotes will cause the interpreter to view Prussia as a variable, resulting in an error saying that Prussia is not defined.

Code:

user_input=input("") #taking input from user

entries=user_input.split(',')    

country_capital=dict(pair.split(':') for pair in entries) #creating the dictionary from user input

del country_capital['Prussia'] #removing Prussia; failure to include quotes results in an error

print('Prussia deleted?', end=' ')

if 'Prussia' in country_capital: #verifying the presence of Prussia in the dictionary

print('No.')

else:

print('Yes.')

print ('Spain deleted?', end=' ')    

if 'Spain' in country_capital: #checking if Spain is present in the dictionary

print('No.')

else:

print('Yes.')

print ('Togo deleted?', end=' ') #verifying the existence of Togo in country_capital

if 'Togo' in country_capital:

print('No.')

else:

print('Yes.')

Explanation:

3 0
3 months ago
Given the plaintext {0F0E0D0C0B0A09080706050403020100} and the key {02020202020202020202020202020202}: a. Show the original cont
zubka84 [1067]

Answer:

Refer to the explanation.

Explanation:

We will organize the plaintext into a 4 x 4 matrix (a rectangular array of symbols, numbers, or expressions arranged in columns and rows, in this case, a 4 × 4 configuration with four rows and four columns.) as detailed in the step-by-step explanation below.

5 0
2 months ago
Other questions:
  • Write a code segment to change the name of the Thing object something such that the new name consists of the old name with one c
    12·1 answer
  • The compare_strings function is supposed to compare just the alphanumeric content of two strings, ignoring upper vs lower case a
    15·1 answer
  • Develop an sec (single error correction) code for a 16-bit data word. generate the code for the data word 0101000000111001. show
    6·2 answers
  • Write a class named Taxicab that has three **private** data members: one that holds the current x-coordinate, one that holds the
    9·1 answer
  • Suppose that a scheduling algorithm (at the level of short-term CPU scheduling) favors those processes that have used the least
    10·1 answer
  • A computer program is tested by 5 independent tests. If there is an error, these tests will discover it with probabilities 0.1,
    5·1 answer
  • Debug the program so it prints the factorial of a positive integer entered by the user. This is calculated by multiplying all th
    9·1 answer
  • You just read an msds for acetic acid. based on what you read, what type of information is included in an msds sheet? record you
    7·1 answer
  • To be a successful computer systems engineer, you must be proficient in programming languages and operating systems. Similarly,
    5·2 answers
  • Social networking sites like Office Online, PayPal, and Dropbox are used to develop social and business contacts.
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!