difference between logical errors and syntax errors​

Answers

Answer 1
Since computer programs must follow strict syntax to compile correctly, any aspects of the code that do not conform to the syntax of the programming language will produce a syntax error. A logic error (or logical error) is a 'bug' or mistake in a program's source code that results in incorrect or unexpected behaviour.

Related Questions

you are working on creating a business document with two other co-workers. Based on just information, which of the following pre-writing strategies would be the best for you?(A.P.E.X.)

Answers

Brainstorming, Rationalizing, and Rough Drafts.

URGENT!!!!15POINTS AND BRAINLIEST
Type the correct answer in the box. Spell all words correctly.
In a hydraulic jack, the pipe below the load has an area of 5 m2, and the pipe through which the input force transmits has an area of 1 m2. Calculate the force required.

kN of input force is necessary to balance a load of 10,000 N.

Answers

Answer:

0.2kN

Explanation:

An hydraulic jack works by the principle that pressure applied to one part in an enclosed liquid is transmitted equally in all parts of the liquid. this is in accordance with Pascal's principle.

Pressure= Force/Area

P=F/A

Pressure due to the load= Pressure due to input force for the system to be in balance.

Let force due to load be F₁, input force be F₂, Area at the load piston be A₁ and the area of the pipe through which the input force transmits be A₂, then,

F₁/A₁=F₂/A₂

10000N/5m²=F₂/1m²

F₂=(1000N×1m²)/5m²

F₂=200N

=0.2kN

What do the different top level domain names signify, including .com, .org, .edu, .gov, .mil, and .net?

Answers

Answer:

They signify different purposes for each website

Explanation:

.gov = A government owned website. Can include non-U.S. governmen websites, the White House, or other government owned websites.

.edu = A domain name for organizations with a focus on education (even for those that are non-U.S.). That means that you can find .edu domains on college websites, universities, and other educational institutions.

.mil = Mil is a shortening of military. It is for the U.S. Department of Defense and subsidiary or affiliated organizations.

.org = Org is a shortening of organization, meaning that this domain name is usually for non-profits and personal sites, but can also be used schools, open-source projects, and even some for-profit organizations.

.com = A website with the domain name .com signifies a commercial website (hence the 'com'). This can include business websites, websites that want to make money online, personal websites, blogs, portfolios, and more.

.net = Comes from the word network. Originally, it was supposed to be only for organizations involved in networking technologies, such as Internet service providers and other infrastructure companies, but restrictions were never enforced so .net was used as an general purpose name space. However, it's still popular with network operators and the advertising sector.

what are some tips to stay focused in school, and to complete work faster? ​

Answers

Answer:

Sometimes listening to music or chewing gum.

Explanation:

When I need to focus, I like listening to music and sucking on a hard candy or chewing gum.

Pls give Brainliest!!

Answer:

What I do to focus in school is to try and ignore everything that is going on around you. ( what your classmates are doing ) Drown out the noise with music if your allowed to listen to music. Ask the teacher is you can go somewhere quieter

Explanation:

Hope this helps, Have a Wonderful Day!!

Choose all items that represent essential features of excellent navigation menu design.

uses clearly and simply labeled links

is consistently styled and located

contains a link to a site map

is intuitive and easy to use is available on all pages

in the site employs a drop-down list​

Answers

Answer:

A,B,D,E

Explanation:

Answer:

A- uses clearly and simply labeled links

B- is consistently styled and located

D- is intuitive and easy to use

E- is available on all pages in the site

Documentary photographers strive to produce what type of image?
А.
Edited
B.
True
C.
Colorful
D.
Blurred

Answers

I’m pretty sure that the answer is B

Answer:

B. :)

Explanation:

The ideal hash function:

A. Should be unfeasible to find two inputs that map to the same output
B. Should be unfeasible to learn anything about the input from the output
C. Basically we don’t want people to figure out what was said
D. All the above

Answers

I believe the answer is A
Hope this helps

people can use social media responsibly by what​

Answers

Answer:

spread love not hate n password diligent

By limiting their time on social media

Explanation:

Which line is most likely an error? A-“hello” B-hello C-“100” D-100

Answers

Answer: I think it is c

Explanation:

The error is most likely C. Hello quoted is proper. ("Hello") Eliminate A. Hello is proper as well so eliminate B. Now, we are at C. I Believe this is the answer since it is 100 quoted ("100"). 100 quoted does not make since unless used in a sentence such as "I bought 100 apples today for a good price!" D cannot be the answer since it is 100 all by itself. Thus, your answer should most likely be C, "100".

How does Python recognize a tuple?

Answers

Answer:

Tuples can be recognized like this,

tuple = 'hello', 'world'

or tuples can be recognized like this

tuple = ('hello', 'world')

you can see the value of a tuple by simply printing it out like so,

print(tuple)

Answer:

Tuples can be recognized like this,

tuple = 'hello', 'world'

or tuples can be recognized like this

tuple = ('hello', 'world')

you can see the value of a tuple by simply printing it out like so,

print(tuple)

Explanation:

Microsoft Word, Google Chrome, and Windows Media Player are examples of

Answers

Answer:

They are all examples of software.

A battery is connected to a light bulb in a circuit. There is a current of 2 A in the light bulb. The voltage of the battery is 1.5 V. What is the resistance of the light bulb?

Answers

Answer:

The current in a circuit is directly proportional to the electric potential difference impressed across its ends and inversely proportional to the total resistance offered by the external circuit. The greater the battery voltage, the greater the current.

Explanation:

4.8 Code Practice: Question 1
Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.

Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

Answers

I included my code in the picture below. Best of luck.

Loops are used to perform repetitive operations.

The for loop in Python is as follows:

for i in range(5,76,5):

   print(i,end =" ")

The syntax used for the range in for loop is: (start,end+1,increment)

The start represents the first value to be printed.

So: start = 5

The end represents the last value to be printed.

So: end = 75

Because the end value will not be inclusive, the value is incremented  by 1

The increment is 5

Read more about similar programs at:

https://brainly.com/question/21298406

What are the steps to customize a slide show?

Go to Slide Show tab, select Hide Slide, select the slides to hide, and save.
Go to Slide Show tab, select Set Up Slide Show, select show type Custom, and save.
Go to Slide Show tab, select Custom Slide Show, select slides to be shown, and save.
Go to Slide Show tab, select Custom Slide Show, select Record Slide Show, and save.

Answers

Answer: Third one

Explanation: I got it right

Answer:

Third one

Explanation:

agree and tell why becoming a priest/nun is an honorable job PLEASE ASAP​

Answers

As a priest or nun you are helping the community of people who you relate to. They do a lot of charity work also so you are making the world a better place. And if your religious you are in a career that helps you grow in your faith.

1. You are designing a program that will keep track of the boxes in a doctor’s office. Each box will have three attributes: date, contents, and location. Write a class that will consist of box objects.

Answers

Answer:

Public class Box

{

private String myDate;

private String myContents;

private String myLocation;

public class Box(String date, String contents, String location)

{

myDate = date;

myContents = contents;

myLocation = location;

}

}

Hope this is what you're looking for! If not, let me know and I can try to help more. :)

Each box will have three attributes: date, contents, and location. It is class box.

What is class box?

There is a method in the box class of this program. Box is a brand-new data type for the class.

Box is used to declare objects of this type as having double height; Class declaration just generates a template; it does not generate any actual objects. None of the objects of type are affected by this code. Box void volume

Therefore, Each box will have three attributes: date, contents, and location. It is class box.

To learn more about class box, refer to the link:

https://brainly.com/question/14427083

#SPJ2

how many ones dose it take to get 9 tens

Answers

It takes 90 ones to get 9 tens
The answer would be 90:)

Explanation: there are 10 ones in one 10 so if you multiply 10 times 9 it’s 90

What are three print output options available in PowerPoint?
A. Handouts, Slides, Speaker Notes
B. Outline, Kiosk, Overheads
C. Overheads, Handouts, Slides
D. Kiosk, Handouts, Computer

Answers

Answer: .A

Explanation: i got it right

Answer:

'A' on edge 2020

Explanation:

Just took the test

Which command is located in the Action Settings dialog box that allows a user to set a linked or embedded object as a trigger to perform an action?

Object action
Hyperlink to
Run action
Highlight click

Answers

Answer:

Object action was the answer.

Explanation:

Answer:

Object action is the answer

Explanation:

I got it right on the unit review

why make people act meaner online the. in person ​

Answers

Because they are scared to say something in real life. Behind a screen they are protected

look at the picture lol

Answers

Answer:

Zoom in more please and than i can help

Explanation:

Answer:

I would go with the first blue highlighted one... but i could be wrong

i hope i helped

if i didn't... i am sorry, i tried.

How do I write my name in binary code?

Answers

Answer:

qUE

wHAT CODE

Explanation:

Write a program that inputs a filename from the user and prints to the terminal a report of the wages paid to the employees for the given period. The report should be in tabular format with the appropriate header. Each line should contain an employee’s name, the hours worked, and the wages paid for that period.

Answers

Answer:

filename = input("Enter file name: ")

file = open("filename", "r")

while file:

   line = file.readline()

   print(line)

file.close()

   

Explanation:

The python source code prompts the user for a file name (file extension included), opens the file and reads the content of the file to the end, one line at a time, and prints it.

Note that the file is closed at the end of the program to avoid leakage.

The program illustrates the use of file manipulation.

File manipulations are used to read from a file, and also write into it.

The program in Python, where comments are used to explain each line is as follows:

#This gets the file name

fname = input('Enter input file name: ')

#This prints the output header

print('Name\t\tHours\t\tTotal Pay')

#This iterates through each line of the file

for line in open(fname):

   #This gets the text on the current line

   cline = line.strip()

   #If the text is not empty,

   if cline != '':

       #This gets the name, wage and time worked on that line

       (name, wage, time) = cline.split()

       #This converts the time to integer

       time = int(time)

       #This calculates the total pay

       totalpay = float(wage) * time

       #This prints the employee details

       print(name,'\t\t', time,'\t\t' totalpay))

Read more about file manipulations at:

https://brainly.in/question/10211834

When and how should resources be invested to close gaps between those who do and don’t use the Internet?

Answers

Answer:

To minimize the technological gap is necessary and not so hard.

Explanation:

The first form of solving it is to minimize the need to use the internet at home, so that users could save the data in some programs which could use afterward if needed, without the internet.

Access to the documents, books, and folders without the need for the internet would be the perfect solution.

The Internet has to be accessible in school so that the students who don’t have it at home could use the most of it in school. Also, the internet connection should be available in the spots around schools, cafes, libraries during the whole day.

Make the internet affordable for everyone.

Help me pls!!


Look at the following assignment statements:

food1 = "water"
food2 = "melon"

What is the correct way to concatenate the strings?

newFood = word1 == word2
newFood = word1 + word2
newFood = word1 * word2
newFood = word1 - word2

Answers

new food = word1 + word2 will connect both words together with no space in between. The value of newFood will now be "watermelon"

Answer:

new food = word1 + word2

Explanation:

Which of the following is an example of gameplay in a video game
A: the art of a game

B: the player interacting with the game world and game mechanics

C: the personalities of all the characters

D:all of the above

Answers

Answer:

the correct answer is B. the player interacting with the game world and game mechanics

4.8 Code Practice: Question 1

Instructions
Write a for loop to print the numbers 5, 10, 15 … 75 on one line.

Expected Output
5 10 15 20 25 30 35 40 45 50 55 60 65 70 75

Answers

Answer:

c = 1 # global variable

    jhjl jh

def add(): c = 1 # global variable

def add():

   print(c)

add()

   c = c + 2 # increment c by 2

   print(c)

add()

Explanation:

Answer:

for x in range(1, 16):

   print(x * 5, end=" ")

Explanation:

Hope this helps!

What is wrong in this python code import turtle bot = turtle.Turtle step = (50) turnAngle = (90) bot.Color("blue") bot.Begin_fill() bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.Forward(step) bot.Right(turnAngle) bot.End_fill()

Answers

Answer:

The "Turtle" is a method and should be declared with parenthesis and every other method in the code (except the Turtle() ) should begin with lowercase letters like right, forward and begin_fill. The python file should not be saved as turtle.py to avoid import error.

Explanation:

The python turtle module is a graphical programming package created to introduce programming to children. It has several classes and methods to manipulate objects on the screen.

import turtle  

bot = turtle.Turtle()  

step =(50)  

turnAngle =90  

bot.color("blue")  

bot.begin_fill()  

bot.forward(step)  

bot.right(turnAngle)  

bot.forward(step)  

bot.right(turnAngle)  

bot.forward(step)  

bot.right(turnAngle)  

bot.forward(step)  

bot.right(turnAngle)  

bot.end_fill()

PLEASE HELP ME ASAP!!! Looking at the misty rain and fog (pictured above) Explain at least two defensive driving techniques you would utilize to adjust your driving and lower your risk?? ​

Answers

1.Slow down 2. Break earlier

Explain two options you have in order to abide by the move over law??? PLEASE HELP ME ASAP!! ​

Answers

Answer:

you can either move over if on an interstate into a different lane safely. if there is only one lane you must reduce your speed

Other Questions
ActivityWhen you come across unfamiliar words in a story, you can discover what they mean bylooking for context clues.Look at the following table for some words from " The Most Dangerous Game "that maybe unfamiliar to you. Refer back to the story to find these words and see if you candetermine their meanings from the context clues. The words are listed in the table in theorder that they appear in the story. Fill out the column labeled Contextual Meaning withwhat you think the meaning is. Then look up these words in the dictionary and fill out thecolumn labeled Dictionary Definition. Finally, explain what clues you used in the story tocome up with the contextual meaning of each word. Write your explanations in thecomments column. The equation of the horizontal line passing through the point (-3, 8) is y = 8. O True O False plz help 15 pts and ill give y brainliest What was thr major limitation of DC? How would AC fix it? HELP PLS! After u find the length of P explain the reasoning you used and Ill give u brainliest!! HELP PLEASEA load is a device that changes electrical energy into other forms of energy. Which load converts electrical energy into thermal energy by passing an electric current through a high-resistance material? A. Hand-powered generator B. Toaster C. Fan D. Electrical drill The efficiency of photosynthesis varies with the wavelengths of the light that illuminates the chloroplasts. In an experiment to study the relationship between the incoming light wavelengths and the chemical reactions of photosynthesis using a species of green algae, a researcher labeled the CO2 supply to the algae with 14C, and the H2O with 18O.Which of the following results is expected?More 14C is found in the algae when it is illuminated by green light than when it is illuminated by violet-blue and red light.More 18O is found in the algae when it is illuminated by green light than when it is illuminated by violet-blue and red light.More 14C is found in the algae when it is illuminated by violet-blue and red light than when it is illuminated by green light.More 18O is found in the algae when it is illuminated by violet-blue and red light than when it is illuminated by green light. Which revision of the passage makes the best use of transitions?To ruin a casserole, all you need are the wrong ingredients and a lot ofimpatience. Gather the following ingredients: tuna mayo, a packet of ramenflavoring, and sugar. Mix them together haphazardly. Cook at a randomtemperatureA. To ruin a casserole, all you need are the wrong ingredients and a lot ofimpatience. First, gather the following ingredients tuna, mayo, a packet oframen flavoring, and sugar. Next, mix them together haphazardly. Finally,cook at a random temperatureB. To ruin a casserole, all you need are the wrong Ingredients and a lot ofimpatience. However, gather the following ingredients tuna, mayo, a packetof ramen flavoring, and sugar. Furthermore, mix them together haphazardlyAlas, cook at a random temperatureC. To ruin a casserole, all you need are the wrong ingredients and a lot ofimpatience. On the one hand, gather the following ingredients: tuna, mayo, apacket of ramen flavoring, and sugar On the other hand, mix them togetherhaphazardly. Of course, cook at a random temperatureXOD. To ruin a casserole, all you need are the wrong ingredients and a lot ofimpatience. Next, gather the following ingredients tuna, mayo, a packet oframen flavoring, and sugar. Then mix them together haphazardly. In time,cook at a random temperature, I am stuck on these 2 questions. Can someone help me please?6) Write a Python code to save the following dictionary in a CSV file.dict = {1: "Hello", 2: "Hi", 3:"bye"]7) Write a Python code to read the CSV file generated in the previous step(1) to a Python dictionary. What similar experiences led rulers Constantine and Clovis to embrace Christianity Do long division for each fraction Write the equation in standard form. x = -4y + 8 *x + 4y = 8x + 4y = -8x - 4y = 8x - 4y = -8 Which group of lines makes up a stanza in this poem? Lines 1-5Lines 1-11Lines 5-10Lines 6-11 The delivery fee is $35 plus rental fee of $10 per hour find x the number of hours jasmine parents can rent the snow cone machine and spend $80 or less 8. You just got paid and want to treat your friends to lunch at Sammy's Steakhouse . You have $ 850.00 in your account . The bill ends up being \$50.2 . How much is left in your account after you use your debit card to pay? What type of races are represented?general electionnon-partisan raceprimary runofffirst primary i need help with this ^ Khandi goes to a psychologist for a personality profile. To measure her personality, Khandi sits at a computer and answers a large number of questions about her beliefs, feelings, and typical behaviors. The psychologist is using a ____ to measure Khandi's personality. Describe how simple distillation is used to separate water from an aqueous solution of sodiumsulfate. The total coast of a ski trip is $315 with a literal equation of 315=85x+60 how many ski trips can you take What country ended up at war with Russia, and invading both Korea and China fornatural resources as it abandoned isolationism and embraced modernization and theindustrial raceVietnamJapanPhilippinesIndia