How is an interpreter different from a compiler?
An interpreter translates and executes code line by line, while a compiler translates all code at once so that it is ready to be executed at any time.
An interpreter translates all code at once so that it is ready to be executed at any time, while a compiler translates and executes code line by line.
An interpreter translates programming code into binary language, while a compiler does not.
An interpreter translates binary language into programming language, while a compiler translates programming language into binary language.

Answers

Answer 1

Answer:

An interpreter is quite different from a complier due to the following statement below:

O. An interpreter translates and executes code line by line, while a compiler translates all code at once so that it is ready to be executed at any time.

Explanation:

For an interpreter, it works in translating and execution of the codes line after another line. In a situation where there is a mistake in the code, the next line would not be able to be executed, but rather display error message. On the other hand, compiler translate all codes at once and execute them as a single work.

During its translation of the codes in compiler, should there be any error, it would not be able to execute despite the fact that, the error might be in the last line of the code.

Answer 2

Answer:

a

Explanation:

taking test right now


Related Questions

which benefit does the cloud provide to star-up companies without access to large funding?

Answers

Explanation:

Start-up companies can store, manage, process data and use programs through a web-based interface – something that greatly reduces costs. Data stored in the cloud can be accessed from anywhere through various devices with web connectivity, which is an advantage for small companies that don't have a huge IT budget.

Cloud provides storage access and management for files and information using a the cloud computing provider. This could help reduce the cost expended on physical content storage devices.

The cost of purchasing storage devices to habor information and data may be daunting for new startups with little capital.

The cloud computing framework is a cheaper alternative, yet provides easier accessibility at all times.

Hence, the cloud could in the cost expended on physical storage.

Learn more : https://brainly.com/question/22841107

HW3: Write a program in C language by using if statement for a lift control
system, for your information
nation the maximum weight is 240kg and for five floors.

Answers

160kg Is your answer

Describe a problem you’ve solved or a problem you’d like to solve. It can be an intellectual challenge, a research query, an ethical dilemma — anything of personal importance, no matter the scale. Explain its significance to you and what steps you took or could be taken to identify a solution.

Answers

Answer:

Explanation:

I run an online e-commerce store and lately its been very difficult keeping track of customer detail, incoming orders, keyword generation etc. One solution that I thought about would be an application that controls all of that for me. In order to accomplish this I would first need to design and create a GUI that contains all of the necessary buttons and displays for the information. Then I would need to code a webscraper using Python to grab all of the data from e-commerce store as soon as it becomes available, organize it, and display it within the GUI.

"Why do the linked stack and queue implementations not include iterators, as in the linked list classes of Chapter 16? Are there cases in which a stack or queue might need to be traversed privately, even if access cannot be provided publicly? If so, should an iterator be used for these cases?"

Answers

Answer:

Explanation:

A linked stack is a LIFO (last in, first out) while a queue is a FIFO (first in, first out) data structure. This means that you can only access and modify the first or last elements of the stack or queue repectively. Therefore, there is no use for iterators in such a data structure which is why they do not exist. Iterators are mainly for traversing sequential access or random access within the given data structure which is not possible with these data structures, but is possible with lists. A stack or queue would either be made automatic so that it is completely private or simply made public so that it can be accessed by other methods and classes, regardless iterators would not be used.

What was software for modems that connected through phone lines called?


virtual-emulation software

terminal-emulation software

bulletin-board software

baud modem software

Answers

Answer:

Best Regards to all of the people who have met you in the class

Iconic designs are inspirational and are often copied.

True

False

Answers

This is absolutely true. A shining example of this is with smartphones. Before Apple introduced the world to the iPhone, most smartphones had actual keyboards, zero touchscreen capabilities, could barely browse the internet, and had very small displays. After the iPhone was released in 2007, companies immediately scrambled to come out with phones that looked uncannily similar to Apple's. Why? Because Apple's phone was designed well. It's pretty amazing how immediate the shift was. In fact, I recomend you look up "Smartphones before and after iPhone" online. It's pretty cool. Here's an image example: https://www.redmondpie.com/image-showing-phones-before-and-after-iphone-x-revisits-how-android-market-still-tends-to-copy-iphone/

Hope this helps!

Create a map using the Java map collection. The map should have 4 entries representing students. Each entry should have a unique student ID for the key and a student name for the element value. The map content can be coded in directly, you do not have to allow a user to enter the map data. Your program will display both the key and the value of each element.

Answers

Answer:

In Java:

import java.util.*;  

public class Main{

   public static void main(String[] args) {

       Map<String, String> students = new HashMap<>();

       students.put("STUD1", "Student 1 Name");

       students.put("STUD2", "Student 2 Name");

       students.put("STUD3", "Student 3 Name");

       students.put("STUD4", "Student 4 Name");

       for(Map.Entry m:students.entrySet()){  

           System.out.println(m.getKey()+" - "+m.getValue());    }  

}}

Explanation:

This creates the map named students

       Map<String, String> students = new HashMap<>();

The next four lines populates the map with the ID and name of the 4 students

       students.put("STUD1", "Student 1 Name");

       students.put("STUD2", "Student 2 Name");

       students.put("STUD3", "Student 3 Name");

       students.put("STUD4", "Student 4 Name");

This iterates through the map

       for(Map.Entry m:students.entrySet()){  

This prints the details of each student

           System.out.println(m.getKey()+" - "+m.getValue());    }  

jo.in Goo.gle meet the code/rhk-rvet-tdi​

Answers

Answer:

nah

Explanation:

cuz ion wanna

An integrated circuit RAM chip has a capacity of 512 words of 8 bits each where the words are organized using a one-dimensional layout.a) How many address lines are there on the chip?b) How many such chips would be needed to construct a 4Kx16 memory?c) How many address and data lines needed for a 4Kx16 memory?#addresss lines = #data lines =

Answers

Answer:

A. 9

B. 16

C. Number of addresses = 12 number of data lines = 16

Explanation:

The capacity of this chip is 512 x 8

That is 512 words and these words have 8 bits

A. The number of the address lines would be

log2(512) = 2⁹

So the answer is 9

B. The total number of chips required

= 512 x 8 = 4096

(4096 x 2)/ 512 = 16

C. Number of address = log4092 = 2¹²

= 12

The number of data lines = 8x2 = 16

Thank you!

Which of these skills are used in game design?
Writing, Project Management, Drawing and artistic visualization, all of the above

Answers

Answer:

I think the answer is Writing but am not sure

Consider the key success factors of B2C. Is it only IT? What is most important?​

Answers

Jsjfu zzer jsusuc888 kksss

Write a function named word_beginnings that has two parameters line a string ch a character Return a count of words in line that start with ch. For the purposes of this exercise a word is preceeded by a space. Hint: add a space to the beginning of line For example if line is 'row row row your raft' and ch is 'r' the value 4 will be returned. Note: You can use lists in this question but try to solve it without lists.

Answers

Answer:

The function in Python is as follows:

def word_beginnings(line, ch):

   count = 0

   lines =line.split(" ")

   for word in lines:

       if word[0] == ch:

           count+=1

   return count

Explanation:

This defines the function

def word_beginnings(line, ch):

This initializes count to 0

   count = 0

This splits line into several words

   lines =line.split(" ")

This iterates through each word

   for word in lines:

This checks if the first letter of each word is ch

       if word[0] == ch:

If yes, increment count by 1

           count+=1

Return count

   return count

10.11 LAB: Pet information (derived classes) The base class Pet has private data members petName, and petAge. The derived class Dog extends the Pet class and includes a private data member for dogBreed. Complete main() to: create a generic pet and print information using PrintInfo(). create a Dog pet, use PrintInfo() to print information, and add a statement to print the dog's breed using the GetBreed() function.

Answers

Answer:

Answered below.

Explanation:

//Program in Java

Class Test{

public static void main (String[] args){

//create a pet object

Pet pet = new Pet();

//call pet object's printInfo method

pet.printInfo();

//create a new Dog object

Dog dog = new Dog();

//dog can access the printInfo method of the Pet class because it derives from it

dog.printInfo();

//dog can also call it's private method.

dog.getBreed();

}

}

An electronics technician who enjoys working "at the bench" would most likely want to work

Answers

Answer: for a manufacturer

Explanation:

The options include:

A. for a manufacturer.

B. as a microwave technician.

C. as a central office technician.

D. for a TV or radio station.

An electronics technician who enjoys working "at the bench" would most likely want to work with a manufacturer.

In this case, if the person wants to work at the bench since he or she enjoys it, then the person should work for a manufacturer.

Suppose we define a WaitlistEntry as follows:

typedef struct{
int iPriority; /* Priority of the student to be enrolled */
int iStudentID; /* ID of the student */
}
WaitlistEntry;

Below are different implements of a function to create a WaitlistEntry from given iPriority and iStudentID data. Some of these implementations are flawed. Identify them and describe what is wrong with them briefly:

WaitlistEntry createWL( int iPriority, int iStudentlD )
WaitlistEntry w,
w.iPriority iPriority;
w.iStudentlD iStudentlD;
return w;

a. correct
b. incorrect, leaks memory
c. incorrect, syntax error
d. incorrect, data will be overwritten by next function call

Answers

Answer:

You have syntax errors, but I don't know if it happened when you posted this question, nevertheless

Explanation:

Correct code:

WaitlistEntry createWL( int iPriority, int iStudentID ) { // Opening Brace

WaitlistEntry w; // Should be ; not ,

w.iPriority = iPriority;   // Assign Missing

w.iStudentID = iStudentID; // Assign Missing

return w;

} // Closing Brace

// Also note: iStudentID this actually has an 'l' which is LD. Not ID, this is why I assume these errors happened when posting the question.

Name 4 components of a components system​

Answers

The four main components are main memory, arithmetic and logic unit, control unit, and input/output (I/O). :)

As of Spring 2020, in otder to get into the CS major, you must have a 3.0 GPA or better in cs120, cs210, and cs245. In this problem, you should write one function named get_gpa, which will calculate this GPA. This function should have one parameter, which will be a dictionary of grades in computer science courses. You can assume that the dictionary will always have the keys 'cs120', 'cs210', and 'cs245', but it also might contain some names of other courses too. The values associated with each key will be a float representeing the GPA-style grade for that class. For instance, the parameter dictionary might look like: {'cs120':4.0 'cs245':3.0, 'cs210':2.0}. Some examples:

get_gpa({'cs110': 4.0, 'cs245':3.0, 'cs335':4.0, 'cs120':3.0, 'cs210':3.0}) should return 3.0.
get_gpa({'cs110': 4.0, 'cs120':3.0, 'cs245':2.0, 'cs210':1.0}) should return 2.0.
get_gpa({'cs245':4.0, 'cs120':3.0, 'cs245':2.0}) should return 3.0.

Make sure to include only the one function in your file.

Answers

Answer:

The function is as follows:

def get_gpa(mydict):

   gpa = 0

   kount = 0

   for course_code, gp in mydict.items():

       if course_code == 'cs120' or course_code == 'cs210' or course_code == 'cs245':

           gpa += float(gp)

           kount+=1

   

   return (gpa/kount)

Explanation:

This defines the function

def get_gpa(mydict):

This initializes gpa to 0

   gpa = 0

This initializes kount to 0

   kount = 0

This iterates through the courses

   for course_code, gp in mydict.items():

If course code is cs120 or cs210 or cs245

       if course_code == 'cs120' or course_code == 'cs210' or course_code == 'cs245':

The gpa is added

           gpa += float(gp)

And the number of courses is increased by 1

           kount+=1

This returns the gpa    

   return (gpa/kount)

Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B, and C = 2 D, E, and F = 3 G, H, and I = 4 J, K, and L = 5 M, N, and O = 6 P, Q, R, and S = 7 T, U, and V = 8 W, X, Y, and Z = 9 Write a program that asks the user to enter a 12-character telephone number in the format: XXX-XXX-XXXX. Acceptable characters (X's) are A-Z and a-z. Your program should check for: The length of the phone number is correct. The dashes are included and are in the correct positions. There are no characters in the illegal characters in the string. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. If the input string is not entirely correct then you should print an error message. For example, if the user enters 555-GET-FOOD the program should display 555-438-3663. If the user enters 123-456-7890, the program should display 123-456-7890. Rules: You must have one function (in addition to main()) that converts an alphabetic character to a digit. Or you can have one function that coverts all characters to digits. You can make your own function or use a built-in function if one exists.

Answers

Answer:

The program in Python is as follows:

def convertt(phone):

splitnum = phone.split ('-')

valid = True  

count = 0  

err = ""  

numphone = ""

if len(phone) != 12:

 err = "Invalid Length"  

 valid = False  

elif phone[3] != '-' or phone[7] != '-':

 err = "Invalid dash [-] location"  

 valid = False  

while valid== True and count < 3:

 for ch in splitnum[count]:

  if ch.isdigit():

   numphone += ch  

  elif ch.upper()in 'ABC':

   numphone += '2'  

  elif ch.upper()in 'DEF':

   numphone += '3'  

  elif ch.upper()in 'GHI':

   numphone += '4'  

  elif ch.upper() in 'JKL':

   numphone += '5'  

  elif ch.upper()in 'MNO':

   numphone += '6'  

  elif ch.upper()in 'PQRS':

   numphone += '7'  

  elif ch.upper()in 'TUV':

   numphone += '8'  

  elif ch.upper()in 'WXYZ':

   numphone += '9'

  else:

   valid = False

   err = "Illegal character in phone number"  

 if count!=2:

  numphone += '-'  

 count += 1  

if valid == False:

 print (err)

else:

 print ("Phone Number", numphone)

phone = input("Phone number: ")

convertt(phone)

Explanation:

See attachment for complete source code where comments are used for explanation

Best monitor cofficiant modern warfare

Answers

Answer: Monitor coefficient only determines your vertical sens with respect to your horizontal. It should be your horizontal pixels divided by your vertical. E.g. for a 1920 x 1080 monitor it should be 1.33. For a 2560 x 1440 it should be 1.78.

Explanation:

Answer:

1920 x 1080 monitor or 2560 x 1440

if your looking for a smooth gaming experience also depends on the graphic card and processer you use

Explanation:

What is the codebook?
Python dictionary of code shortcuts
Standard survey shorthand codes
Documentation of the survey questions, the design of the study and the encoding of the responses
General term for development code books

Answers

Answer:

Option C

Explanation:

A codebook gives following information

a) Content

b) Structure of the codebook

c) Layout of the data collected

In general it is a document that contain information about the purpose and format of the codebook along with the methodological details.

Hence, Option C is correct

Mathilda’s computer has been running slow the past few months. She observed that the system unit becomes too hot. What does she need to do to fix this issue?
A.
She needs to make sure that the keyboard and mouse are properly connected.
B.
She needs to install antivirus software.
C.
She needs to delete unwanted files from her hard disk.
D.
She needs to clean the dust from the system unit fan.

Answers

It is D it may cause your computer to get hot because of the dust from the unit fan :/

Answer:

The answer is D

Explanation:

When adding delegates to his mailbox, which role should Joel use if he would like the user to be able to read and create items in a particular folder?
- editor
- publishing editor
- author
- manager

Answers

Answer:

publishing editor

Explanation:

In this scenario, the role that he should choose for the delegates would be publishing editor. This role will allow them to create, read, modify, and delete all items within a given folder, and create subfolders. The other options listed either do not give access to create/modify existing files or simply only give all these rights with files that the user creates but not files that already existed in the folder. Therefore, this would be the best role for what Joel wants to accomplish.

If you were able to earn interest at 3% and you started with $100, how much would you have after 3 years?​

Answers

109

A= Amount+ interest *sb

interest=P×r×t/100

100×3×3/100

100 cancel 100=3×3=$9

100+9=109

what is this....... Iam booking train to patna. ​

Answers

i agree w the person above

Log onto the Internet and use a search engine to find three Web sites that can be models for the new site. (At least one should sell sporting goods.) For each site you selected, list the URLs in your document. Tell why you chose them. Navigate to the three sites you choose and take notes about at least three things you like and don’t like about the sites.

Answers

Please see the following file for your required answer, thank you.

For a single CPU core system equipped wiith addditional hardware modes (besides user and kernel), choose those items that are examples of the possible usage of the additional modes.

1. Data parallelism
2. Enhanced user security policy, such as user groups, so that group members may execute other group members' programs
3. Task parallelism
4. USB device driver support outside of kernel mode

Answers

Answer:

Task parallelism

Explanation:

The Task parallelism is most popularly known as the function parallelism and the control parallelism. In the computer codes, it is the form of a parallelism across the multiple processors in a parallel computing environments. It focusses on distributing the task that are concurrently performed by the threads or the processors.

For the single CPU core system that is equipped with an additional hardware modes, the task parallelism is one of the example of the usage oh a additional modes.

8. What's the output of this code?
1
def sum(x, y):
return(x+y)
print(sum (sum(1,2), sum(3,4)))

Answers

Answer:

10

Explanation:

[tex]sum(1,2) = 3\\sum(3,4) = 7\\sum(3,7) = 10\\[/tex]

Basically, sum((1+2) + (3+4)) = sum(3,7) = (3+7) = 10

HLOOKUP is used for Horizontal Data look ups while VLOOKUP is for Vertical Data look ups
Select one:
True
False​

Answers

Answer:

True

Explanation:

Both HLOOKUP and VLOOKUP are excel functions used for searching through tables for a specified lookup value to either get an exact or approximate match. The VLOOK and HLOOKUP functions have identical syntax which only differs with the HLOOKUP requiring the row index number to search through the rows while, VLOOKUP requires the column index number to search through the columns. Other than this difference, the other syntax values are the same.

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])

Consider the following incomplete method. Method findNext is intended to return the index of the first occurrence of the value val beyond the position start in array arr. I returns index of first occurrence of val in arr /! after position start; // returns arr.length if val is not found public int findNext (int[] arr, int val, int start) int pos = start + 1; while condition '/ ) pos++ return pos; For example, consider the following code segment. int [ ] arr {11, 22, 100, 33, 100, 11, 44, 100); System.out.println(findNext (arr, 100, 2)) The execution of the code segment should result in the value 4 being printed Which of the following expressions could be used to replace /* condition */ so that findNext will work as intended?
(A) (posarr.length) &&(arr [pos]- val)
(B) (arr [pos] != val) && (pos < arr. Îength)
(C) (pos (D) (arr [pos} == val) && (pos < arr. length)
(E) (pos

Answers

Answer:

B)

Explanation:

The while loop runs as long as two conditions are satisfied, as indicated by the && logical operator.

The first condition- arr[pos] != val

checks to see if the value in the array index, pos, is equal to the given value and while it is not equal to it, the second condition is checked.

The second condition(pos < are.length), checks to see if the index(pos) is less than the length of the array. If both conditions are true, the program execution enters the while loop.

The while loop is only terminated once arr[pos] == Val or pos == arr.length.

You need to write a menu driven program. The program allows a user to enter five numbers and then asks the user to select a choice from a menu. The menu should offer the following four options – 1. Display the smallest number entered 2. Display the largest number entered 3. Display the sum of the five numbers entered 4. Display the average of the five numbers entered

Answers

Answer:

In Python:

nums = []

for i in range(5):

   num = int(input("Num: "))

   nums.append(num)

print("1 - Smallest")

print("2 - Largest")

print("3 - Sum")

print("4 - Average")

menu = int(input("Select menu: "))

if menu == 1:

   print("Smallest: ",min(nums))

elif menu == 2:

   print("Largest: ",max(nums))

elif menu == 3:

   isum = 0

   for i in range(5):

       isum+=nums[i]

   print("Sum: ",isum)

elif menu == 4:

   isum = 0

   for i in range(5):

       isum+=nums[i]

   print("Average: ",isum/5)

else:

   print("Invalid Menu Selected")

Explanation:

This program uses a list to get inputs for the 5 numbers

Here, the list is initialized

nums = []

This iterates from 1 to 5

for i in range(5):

This gets input for the 5 numbers

   num = int(input("Num: "))

This appends each number to the list

   nums.append(num)

The next 4 lines represents the menu

print("1 - Smallest")

print("2 - Largest")

print("3 - Sum")

print("4 - Average")

This prompts the user for menu

menu = int(input("Select menu: "))

If menu is 1, print the smallest

if menu == 1:

   print("Smallest: ",min(nums))

If menu is 2, print the largest

elif menu == 2:

   print("Largest: ",max(nums))

If menu is 3, calculate and print the sum of all inputs

elif menu == 3:

   isum = 0

   for i in range(5):

       isum+=nums[i]

   print("Sum: ",isum)

If menu is 4, calculate and print the average of all inputs

elif menu == 4:

   isum = 0

   for i in range(5):

       isum+=nums[i]

   print("Average: ",isum/5)

If menu is not 1 to 4, then print invalid menu

else:

   print("Invalid Menu Selected")

Other Questions
1) 35 is what percent of 700?________ 2) What is 25% of 36? _______3) Teds car is now worth $9000, which is 60% of what he paid for it. What did he pay for his car? ___ what is the difference between social art and social music for kids Replacing incandescent lights with compact fluorescent lightsA) would have no effect on the total energy used for lighting.B) would save energy but not money.C) is an example of "supply side" energy policyD) would save both energy and money.E) would save money but not energy. Add labels for mass extinction and adaptive radiation: Quinn is mixing juices to make pund for a party. Select all the mixturesthat will fit into a 1-gallon pitcher.6 pnts apple juice and 6 cups cranberry juice2 quarts apple juice and 8 cups cranberry juice5 pints apple juice and 2 quarts cranberry juice9 cups apple juice and 3 pints cranberry juicepunts apple juice and 3 quart qanberry juice The following data pertain to an investment proposal (Ignore income taxes.): Cost of the investment $ 56,000 Annual cost savings $ 16,000 Estimated salvage value $ 6,000 Life of the project 5 years Discount rate 10 % Click here to view Exhibit 7B-1 and Exhibit 7B-2, to determine the appropriate discount factor(s) using the tables provided. The net present value of the proposed investment is closest to: (Round your intermediate calculations and final answer to the nearest whole dollar amount.) Multiple Choice $34,000 $4,656 $3,726 $8,382 Question 4 (1 point)Which of the following is NOT an endotherm adaptatioon to changes in seasons?change of body temperaturelayers of fathiberntionshivering muscles Please help meeeee!! Long scratch marks that are left behind as evidence of glaciers are calledA. striationsB. cirquesC. fjordsD. roche moutonnees there are 32 student in a class 7 sun I'f the ratio of boys and girls is 5:3 find the number of boys and girla Given the figure below. What is the theorem or postulate that justifies triangle ABD congruentto triangle CBD? Find the area of the shape shown below.733 sovle for x , no links 5.6^2 + 3.8^5 x 8.1^9 + 2.5^7Help PLeAse (Ill give brainliest)The Miller family is traveling on a family vacation. They stop at rest stop A along the way. The map, shown below, has a scale of 1 inch to 38 miles.The Miller family plans to stop at rest stop B next. What is the actual distance, in miles, between the two rest stops?16.9040.2576.2585.50 What role does judicial review play in relation to the other branches of government? A. It is a way to make the lawmaking process more efficient. B. It is the means for the executive branch to control the legislative branch. C. It is part of our system of checks and balances. D. It is a way to help police enforce the laws passed by the legislature. Find the constant of proportionality.Use the constant of proportionality to write a unit rate for the data in the table.Write an equation to represent the relationship between time, t, and distance, d. i will give brainliest if u help Which statement is the best example of a cumulative sentence? A. Consider the cat, a predator kept as a pet, a terror to rodents and small birds, an aloof companion at best. B. Jupiter and Saturn are gas giants, and so are Uranus and Neptunenbut they're sometimes called ice giants. C. Thanks to her hard work and steadfast devotion to the company, Constance Vann is employee of the year. D. Airliners produce a lot of pollution in the upper atmosphere, whereas cars pollute closer to the ground. What is the measure of angle D Please help!!!!!!!Ill mark the correct answer as brainliest!!!!