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
Ksju [112]
3 years ago
14

Which data type requires the greatest number of bytes in computer memory? A. character B. integer C. single-precision number D.

double-precision number E. all require the same amount of storage
Computers and Technology
1 answer:
DanielleElmas [232]3 years ago
3 0

A double-precision number contains the most amount of memory.  In programming language, there are often 2 types of decimal numbers.  In java, for example there are floats and doubles.  Doubles have more bytes associated, and can "go out" to further decimal places than floats.

You might be interested in
What most distinguishes projects with a strong need for computer animation from projects without such a strong need?
dsp73
<span> Computer animation is the process used for generating animated images with computers. </span>It is also referred to as CGI (Computer-generated imagery or computer-generated imaging).
If you understand the basic film processes (editing, sound, continuity) you could make an animated film either by making one drawing after another, moving an object frame by frame in front of the camera, or using some animation software. However, when it comes to big project what most 
<span>distinguishes projects with a strong need for computer animation from projects without such a strong need is the size of the budget, because people that know the animation industry and work well should be additional included in the project and paid.</span>
8 0
4 years ago
Write a program that reads in your question #2 Python source code file and counts the occurrence of each keyword in the file. Yo
scoray [572]

Answer:

Here is the Python program:

import keyword  #module that contains list of keywords of python

filename = input("Enter Python source code filename: ") # prompts user to enter the filename of a source code

code = open(filename, "r") # opens the file in read mode

keywords = keyword.kwlist #extract list of all keywords of Python and stored it into keywords

dictionary = dict() #creates a dictionary to store each keyword and its number of occurrence in source code

for statement in code: # iterates through each line of the source code in the file

   statement = statement.strip() # removes the spaces in the statement of source code  

   words = statement.split(" ") #break each statement of the source code into a list of words by empty space separator

   for word in words:# iterates through each word/item of the words list  

       if word in keywords:#checks if word in the code is present in the keywords list of Python  

           if word in dictionary: #checks if word is already present in the dictionary

               dictionary[word] = dictionary[word] + 1 #if word is present in dictionary add one to the count of the existing word

           else: #if word is not already present in the dictionary  

               dictionary[word] = 1 #add the word to the dictionary and set the count of word to 1

for key in list(dictionary.keys()): #iterates through each word in the list of all keys in dictionary  

   print(key, ":", dictionary[key])# prints keyword: occurrences in key:value format of dict

Explanation:

The program is well explained in the comments attached with each line of the program.  

The program prompts the user to enter the name of the file that contains the Python source code. Then the file is opened in read mode using open() method.

Then the keyword.kwlist statement contains the list of all keywords of Python. These are stored in keywords.

Then a dictionary is created which is used to store the words from the source code that are the keywords along with their number of occurrences in the file.

Then source code is split into the lines (statements) and the first for loop iterates through each line and removes the spaces in the statement of source code .

Then the lines are split into a list of words using split() method. The second for loop is used to iterate through each word in the list of words of the source code. Now each word is matched with the list of keywords of Python that is stored in keywords. If a word in the source code of the file is present in the keywords then that word is added to the dictionary and the count of that word is set to 1. If the word is already present in the dictionary. For example if there are 3 "import" keywords in the source code and if 1 of the import keywords is already in the dictionary. So when the second import keyword is found, then the count of that keyword is increased by 1 so that becomes 2.

Then the last loop is used to print each word of the Python that is a keyword along with its number of occurrences in the file.

The program and its output is attached in a screenshot. I have used this program as source code file.

7 0
3 years ago
Alpha Technologies, a newly established company, wants to share information about its work with people all over the world. Which
melisa1 [442]
<span>Option A, Web Server, because it is a type of HTTP server used to direct web pages and blogs, as a method of transmitting information through a web platform for personal or business use, to publicize a business or an organization. In this way, information about the company is transmitted through web pages that use this type of server.</span>
8 0
3 years ago
Explain the steps you take to complete an Internet search. Do you use a particular search engine every time or do you alternate?
Levart [38]
While proceeding with an internet search I find google to be the best source considering its high accuracy. When asking your question keep it minimal yet descriptive. After having found a few sources cross reference them with each other and throw out any sources that may hold false information. After having narrowed them down look to see how recent they are because since their publication new information may have been brought to light. Look to see if they have links to where they got their information. All in all just be diligent.
5 0
3 years ago
True or False: Cracking a Vigenère cipher with brute force takes longer than a Caesar cipher, but it is still a reliable method
iragen [17]

Answer:

False

Explanation:

The Vigenere cipher is an encryption method that uses a series of interwoven Ceaser ciphers and a keyword to encrypt text. The difference between this cipher and the Ceaser cipher is the tabular interwoven Ceaser cipher and the keyword.

Multiple keywords can be used in the Vigenere cipher. The use of this keyword makes the brute-force decipher algorithm unreliable for decoding text encrypted with it.

7 0
3 years ago
Other questions:
  • How to write equal to or greater than in word?
    9·1 answer
  • ________ network each device is connected directly to a central network switch.
    8·1 answer
  • What is the simplest way to permanently get rid of an unwanted file? A. Go to the Start menu and then delete the file. B. Erase
    5·1 answer
  • The Task Manager can be used ot track running _________________ .
    11·1 answer
  • Jane is creating a slide that will have a large heading and number of bullet points below it. What slide format should she use?
    12·1 answer
  • A collection is a container object (data structure) that represents a group of objects often referred to as data or elements of
    6·1 answer
  • Most sources consider the ARPA-NET project the birth of computer blank<br> .
    11·2 answers
  • Write a program that declares and initializes a variable representing the weight in milligrams from the keyboard. The program di
    11·1 answer
  • How many different textile items would you find at a festival? (please list 5 items)
    7·1 answer
  • 13. You're emailing your grandparents. Which of the following is the best example of digital etiquette?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!