Which of the following is an example of a syntax error in a program?



- A program is supposed to calculate the sum of three numbers, but displays the wrong answer.


- The programmer typed “nmae” instead of “name” when using a variable.


- A sprite in a block-based program won’t move backwards, only forwards.


- The music stops playing halfway through the program instead of continuing until the end.

Answers

Answer 1
Answer: The programer typed “nmae” instead of “name” when using a variable
Explanation: a syntax error is an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language. For compiled languages, syntax errors are detected at compile-time. A program will not compile until all syntax errors are corrected. the message “nmae” would be undeliverable because of a syntax error. Poorly or incorrectly formatted information might be entered by a programmer, end user, or even by computer software itself.
Answer 2
The second one because it is miss spelling something specific which leads to this type of error

Related Questions

1. A virtual network of websites connected by hyperlinks is called

A. a browser

B. a URL

C. the internet

D. the World Wide Web


2. The Domain Name System translates the URL into

A. a client

B. an IP address

C. a website

D. a web browser

Answers

the answer of the first McQ is a and second one is b

Answer:

1 Option D is correct:  World wide web

2 Option B is correct:  Ip addresses

Which of the following would be the best option for a primary key in a database table that stores data about dogs?

A.
name

B.
dogID

C.
date of birth

D.
breed

Answers

Answer:

D. Breed

Explanation:

I would say it would be breed since most of the other answers would be considered in a HUMAN database table. Also, I love your profile picture. :)

D. Breed. Think of it as ethnicities

Which of the following statements about block-based coding is false?



- Block-based programs use characters, which are called sprites.


- Each block of code corresponds to at least one code instruction.


- Block-based coding involves dragging and dropping blocks onto an editor.


- You need to understand the coding language behind the blocks in order to successfully build a block-based program

Answers

Answer:

Im pretty sure the answer to your question is A.

Explanation:

all others make sense.

Answer: You need to understand the coding language behind the blocks in order to successfully build a block-based program.

Explanation: Block based coding is mostly just drag-and-drop. If you go to a place like Scratch, you'll see that they have entire games made completely out of blocks. I've made a few decently complicated programs there, and none of them require me to know the coding language behind the blocks.

Other Questions
Jackie has 9 stamps. Kevin has 36 stamps. Kevin says he has 5 times as many stamps as Jackie. Is Kevin correct? Explain your reasoning. How does the discussion of europeans first meeting with the calusa indians contribute to the development of ideas in the text? This is an example of a Function. True False list three of the types of noncovalent interactions that are important in providing stability to the three-dimensional structures of macromolecules. (b) why is it important that these interactions be noncovalent, rather than covalent, bonds? DEVELOPMENTS IN DAR AL-ISLAM FROM C. 1200 TO C. 1450Timeline of Major Events how did educated colonists respond to the enlightment movement A car slams into a brick wall, with an impulse of 10Ns, the duration of the impulse was 0.2 sec. What was the average force the car hit the wall? smartphone users may be able to share the internet connection of their device via a cable, bluetooth, or wi-fi in a process known as select one: a. tethering. b. binding. c. hitchhiking. d. piggybacking. the nurse knows that inflammatory response following a burn is proportional to the extent of injury. which factor presents the greatest impact on the ability to modify the magnitude and duration of the inflammatory response in a client with a burn? A: Small rockets are used to make tiny corrections to the velocity of a satellite. If a rocket has a thrust of 35 N and is used to change the velocity of a 72000 kg satellite by 0.63 m/s, for how long (time) should it be fired?B: A 2-kg pumpkin flies through the air at 42 m/s (93mph)! It strikes a 500kg Volkswagen Bug that has been abandoned in a corn field for quite some time. The pumpkin bounces off the car and has a final velocity of -2.68 m/s (-6.0 mph). What is the final velocity of the car? You are asked to perform a fermentation test with your unknown bacteria, using a technique known as stab culturing. What can you conclude if the test came back purple?. Ella needed to get her computer fixed. She took it to the repair store. The technician at the store worked on the computer for 3 hours and charged her $61 for parts. The total was $226. Write and solve an equation which can be used to determine x, the cost of the labor per hour. 4.Rectangle MATH was translated 7 units to the left and 4 urlits down to create rectangle M'ATH'. Which rule describes this transformation? Please help me with the 2 questions According to the Slave Trade Compromise, when would it be illegal to bring slaves into the United States from Africa?A) 1800B) 1808C) 1850D) immediately following the conclusion of the Constitutional Convention How did/does Blues music impact society? Increasingdecreasingconcave upconcave down Help -crys- "pacman traveled 18 feet every 6 seconds. pacman's distance is proportional to time. (im not in high school im in middle school i dont know why it says that) Constant of Proportionality k=___ 12. Evaluate: 0.0512 x 104.O 51.2O 5120O 512O 0.00000512 which country, Brazil or Australia, would you choose to introduce your product? Why?