Which of the following is a semantic error?
A. Attempting to divide by 0.
B. Forgetting a colon at the end of a statement where one is required.
C. Forgetting to divide by 100 when printing a percentage amount.
answer)A. Attempting to divide by 0.
semantic error meaning meaning of the statement is changed.
B. Forgetting a colon at the end of a statement where one is required is syntax error not semantic error
C. Forgetting to divide by 100 when printing a percentage amount. this is not semantic error this is logical error.
Which of the following is a semantic error? A. Attempting to divide by 0. B. Forgetting...
Specify whether each of the following errors is a syntax error, a runtime error or a logic error: a. using single quotes where command needs double quotes _____ b. dollar and cents amount on a bill is not formatted correctly _____ c. divide a number by zero _____ (8) Evaluate the following expressions: a. fabs (-25.2) b. pow(4.0, 3.0) c. squareroot (400) d. fabs (8.2) e. squareroot (-400) f. floor(-6.7) g. floor(6.7) h. ceil(-4.1) (4) Indicate which of the following...
2.[12 marks] The following problems cellation error. are about roundoff error - Can- Determine a way how to compute the following functions more accu- rately, i.e., how one can avoid cancellation error effectively. (1). 14 marks] fi(x) = x - Vx - 3 when x is large (2). [4 marks] f2(x) = 2 (1 - cos x) when r is near 0. (3). /4 marks] When one applies the quadratic formula 4ac -b+ Vb -4ac -b- 2a 2a 0, where...
If the beginning inventory is overstated, which one of the following is incorrect? (Assume the error in the beginning inventory is a clerical error and previous accounting records are free of errors) Select one: a. working capital at the year end is correctly stated. b. the current ratio at the year end is overstated. c. retained earnings is understated. d. cost of goods sold is overstated
Question 1 The following function header represents which programming language? double calc_weekly_pay( double hours_worked, double pay_rate) Question 1 options: Python A C-based language FORTRAN COBOL Question 2 One of my favorite quotes from Jeanette Wind is "Computational thinking is using abstraction and decomposition when attacking a large complex task or designing a large complex system." This supports using _____________ when developing programs. Question 2 options: Repetition structures Assignment statements Selection structures Functions Question 3 The following assignment statement exhibits which...
Forest City has recently implemented GAAP reporting and is attempting to determine which of the following special revenue funds should be classified as “major funds” and, therefore, be reported in separate columns on the balance sheet and statement of revenues, expenditures, and changes in fund balances for the governmental funds. As the city’s external auditor, you have been asked to provide a rationale for either including or excluding each of the following funds as a major fund. Determine which of...
Question 7 In the context of referencing, which of the following is an accurate statement about the use of footnotes? a. Footnotes are used frequently in the Publication Manual of the American Psychological Association style of referencing. b. Placing citations at the bottom of a page on which they are cited is the footnote citation. c. Footnotes, which are usually placed at the end of a document, are referred to as bibliographies. d. Footnotes appear at the beginning of a...
Please help to resolve my error. This Java code is supposed to evaluate one line equation of the form X Operator =Z where X is any name of a variable and Y and Z are integers By user in equation solver window. Currently the code executes expressions such as Y Operator(+,-,*,/) Z package Equations; /** * This program evaluates arithmetic expressions */ import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.StringTokenizer; public class EquationSolver extends JFrame implements ActionListener { private JTextField...
Question 7 (1 point) Which of the following is not required by law to be on a loan disclosure statement? a) annual percentage rate b) all finance charges c) the total amount financed d) the total amount of payments e) All are required.
Forest City has recently implemented GAAP reporting and is attempting to determine which of the following special revenue funds should be classified as “major funds” and, therefore, be reported in separate columns on the balance sheet and statement of revenues, expenditures, and changes in fund balances for the governmental funds. As the city’s external auditor, you have been asked to provide a rationale for either including or excluding each of the following funds as a major fund. Determine which of...