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
meriva
3 years ago
5

Using your favorite imperative language, give an example of each of the following. (a) A lexical error, detected by the scanner

(b) A syntax error, detected by the parser (c) A static semantic error, detected by semantic analysis (d) A dynamic semantic error, detected by code generated by the compiler
Computers and Technology
1 answer:
Travka [436]3 years ago
8 0

Explanation:

a. int foo+; (foo+ is an invalid identifier because + is not a valid char in identifiers)

b. foo int; (Syntax error is any error where the syntax is invalid - either due to misplacement of words, bad spelling, missing semicolons etc.)

c. Static semantic error are logical errors. for e.g passing float as index of an array - arr[1.5] should be a SSE.

d. I think exceptions like NullReferenceException might be an example of DME. Not completely sure but in covariant returns that raise an exception at compile time (in some languages) might also come in this category. Also, passing the wrong type of object in another object (like passing a Cat in a Person object at runtime might qualify for DME.) Simplest example would be trying to access an index that is out of bounds of the array.

You might be interested in
Can anybody explain to me why it says i have a message,but when i go to my inbox it's empty??
Zanzabum

Answer:

sameee ion know why tbh

Explanation:

4 0
3 years ago
Read 2 more answers
Why is there so much stuff popping up on my computer task manager
Morgarella [4.7K]

Answer:

Honestly there could be a number of reasons

Explanation:

could be that you have a virus.

could be unfinished tasks

there's really  lot of reasons this could be happening.

I suggest if its your browser task manager to reset your browser (via browser settings)

If its the system task manager, i suggest trying to restart the computer and go from there.

depending on the root of your problem, it may work, it may not.

Hope this helps :P

7 0
3 years ago
How do you add a coloring on after effects<br><br> ill give brainly and 50pts
jonny [76]

Answer:

You just have to highlight the composition in the timeline, then expand the Effects menu, and select the Hue/Saturation option from the Color Correction submenu. In order to change the color of the entire composition you just have to adjust Master Hue setting in the Effect Controls panel

Explanation:

5 0
3 years ago
Lets Get Ranked is going to show you how to get ranked fast
horsena [70]

Answer:

I know that. It is the easiest way possible

Explanation:

Although the explanation is easy as Google shares its love with those that love Google it would take several videos to explain how. https://bonuscrate.com/g/4241/80824/

6 0
3 years ago
The ____ dialog box provides options for moving charts between worksheets and chart sheets.
Tresset [83]
The move chart dialog box provides options for moving charts between worksheets and chart sheets.

So the correct answer is A.

Hope this helps :)
~Davinia.
4 0
3 years ago
Other questions:
  • If Mark is developing a website to be optimized for mobile devices, what would be the top-level domain?
    10·1 answer
  • Define a function begins_with_line that consumes a string and returns a boolean indicating whether the string begins with a dash
    15·1 answer
  • A(n) is a list of commands that tell your computer what to do.
    14·2 answers
  • Which term describes the degree to which a network can continue to function despite one or more of its processes or components b
    14·1 answer
  • What are some of the unique benefits and challenges of flash drives as a way to store data?
    9·1 answer
  • In what country was the English royal family and nobility living before the Restoration?
    6·1 answer
  • Write a flowchart and C code for a program that does the following: Within main(), it asks for the user's annual income. Within
    14·1 answer
  • What function would be used if you want to compare all other rows with the first row?
    10·1 answer
  • PLEASE PLEASE HELP pleeeeeeeeeaaaase
    12·2 answers
  • If consumers start to believe they need a product, what is likely to happen
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!