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]
3 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]3 years ago
7 0
2 and c are correct answers
pychu [463]3 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
What is Key benefit of using ram in a computer ?
photoshop1234 [79]
<span>Every computer has ram, its what starts it up, saves information and speeds up your pc, a good amount of ram is 4gbs. Hope this helps.</span>
7 0
3 years ago
Read 2 more answers
Which of the following are reasons someone can be legally fired? Check all of the boxes that apply. An employee is sleeping on t
Musya8 [376]

Answer:

employee has been sleeping on the job

An employee has been late to work 7 times in a row  

Explanation:

It just it the right answer for career prep edg2021.

3 0
1 year ago
Read 2 more answers
What do the points do
Kamila [148]
Add a score to your achieve of correctly answered questions. Which then will determine how much of a Genius you are.
8 0
3 years ago
Read 2 more answers
Implement function easyCrypto() that takes as input a string and prints its encryption
jasenka [17]

Answer:

The program written in python is as follows;

import string

def easyCrypto(inputstring):

      for i in range(len(inputstring)):

             try:

                    ind = string.ascii_lowercase.index(inputstring[i])

                    pos = ind+1

                    if pos%2 == 0:

                           print(string.ascii_lowercase[ind-1],end="")

                    else:

                           print(string.ascii_lowercase[ind+1],end="")

             except:

                    ind = string.ascii_uppercase.index(inputstring[i])

                    pos = ind+1

                    if pos%2 == 0:

                           print(string.ascii_uppercase[ind-1],end="")

                    else:

                           print(string.ascii_uppercase[ind+1],end="")

anystring = input("Enter a string: ")

easyCrypto(anystring)

Explanation:

The first line imports the string module into the program

import string

The functipn easyCrypto() starts here

def easyCrypto(inputstring):

This line iterates through each character in the input string

      for i in range(len(inputstring)):

The try except handles the error in the program

             try:

This line gets the index of the current character (lower case)

                    ind = string.ascii_lowercase.index(inputstring[i])

This line adds 1 to the index

                    pos = ind+1

This line checks if the character is at even position

                    if pos%2 == 0:

If yes, it returns the alphabet before it

                           print(string.ascii_lowercase[ind-1],end="")

                    else:

It returns the alphabet after it, if otherwise

                           print(string.ascii_lowercase[ind+1],end="")

The except block does the same thing as the try block, but it handles uppercase letters

<em>              except: </em>

<em>                     ind = string.ascii_uppercase.index(inputstring[i]) </em>

<em>                     pos = ind+1 </em>

<em>                     if pos%2 == 0: </em>

<em>                            print(string.ascii_uppercase[ind-1],end="") </em>

<em>                     else: </em>

<em>                            print(string.ascii_uppercase[ind+1],end="") </em>

<em />

The main starts here

This line prompts user for input

anystring = input("Enter a string: ")

This line calls the easyCrypto() function

easyCrypto(anystring)

4 0
3 years ago
Please tell fast plzzzzzzzzzz​
Svetlanka [38]

Answer:

<!DOCTYPE html>

the declaration ye

Explanation:

probably it ye

3 0
2 years ago
Other questions:
  • What part of the computer gives access to the internet
    10·1 answer
  • Computer files containing nothing but printable characters are called ____ files.
    11·1 answer
  • Henry is studying the effects of deforestation along the slopes of hills and mountains. He wants to take a photo of a mountain s
    14·1 answer
  • Yesterday you installed a new game on your computer. When you ran the computer, you noticed that the application was running ver
    15·1 answer
  • Casey, a woodworker, is developing his own website. He plans to use the site as a means of selling his handmade furniture. While
    10·1 answer
  • Routers do not forward broadcast packets.A. TrueB. False
    7·1 answer
  • •Should other states wait to see if the high-speed rail system works well before starting their own plans for similar systems?
    15·1 answer
  • Using recursion, write a program that asks a user to enter the starting coordinates (row, then column), the ending coordinates (
    12·1 answer
  • Select all of the reasons Windows 95 increased the popularity of Windows.
    12·1 answer
  • Explain the role of computers in accounting
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!