Question

Witch of the following expresions are incorrect? Please correct them a."R" < 6 B. "D" *...

Witch of the following expresions are incorrect? Please correct them

a."R" < 6

B. "D" * "5"

C. True < "F"

D. False >= 7

E. 5.9 \ 4

F. Like a equation: 5= totaltime - 40

Homework Answers

Answer #1

Variables in any language should not be used with quotes around. In context of Java, here

a. Incorrect as, if R is a variable, and is compared with 6, then it should be written as R and not "R".

B. Incorrect Here both D and 5 should not be used with quotes around. And even if D and 5 are strings, they cannot be used for the operand *. The y can be used with the concatenation operator , +.

C. Incorrect if True is variable, even then it cannot be directly compared with a string using the binary operator.

D. Incorrect for the reason stated above.

E. Incorrect as there is no such operator defined that takes a backslash and it is treated as an illegal character in Java. The correct statement would be: 5.9/4.

F. Incorrect as the left side of the assignment operator should be a variable and not a fixed value.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Circle “Correct” or “Incorrect” for the following 10 questions. For problems with incorrect answers, provide a...
Circle “Correct” or “Incorrect” for the following 10 questions. For problems with incorrect answers, provide a rationale to support your answer. 1. In administering insulin, the nurse will use the 100 units/mL listed on the drug label to calculate the dose. Correct Incorrect    , Rationale: 2. .U-100 on the insulin label refers to the insulin concentration. Correct Incorrect    Rationale: 3. The physician orders Humalog 6 units subcut now. The nurse has a vial of Novolog insulin. The nurse...
Draw the structures of the following compounds. If the name provided is incorrect, give the correct...
Draw the structures of the following compounds. If the name provided is incorrect, give the correct name. a. pentoxyethane                      b. 3-chloro-4-methyl-6-heptyne                       c. 2-ene-4-octyne d. 3,4,5-pentanetriol                    e. 1-Methylcyclopentanol                                                      f. 1,3,5-cyclohexatriene
There is no equivalence relation R on set {a, b, c, d, e} such that R...
There is no equivalence relation R on set {a, b, c, d, e} such that R contains less than 5 ordered pairs (True or False)
Consider the following bivariate data. Point A B C D E F G H I J...
Consider the following bivariate data. Point A B C D E F G H I J x 4 5 2 6 7 6 2 5 6 5 y 2 6 4 7 7 0 0 1 5 2 (a) Construct a scatter diagram of the given bivariate data. (Do this on paper. Your instructor may ask you to turn in this work.) (b) Calculate the covariance. (Give your answer correct to two decimal places.) (c) Calculate sx and sy. (Give...
Consider the following bivariate data. Point A B C D E F G H I J...
Consider the following bivariate data. Point A B C D E F G H I J x 0 1 1 2 3 4 5 6 6 7 y 5 5 6 5 4 1 2 0 1 1 (a) Construct a scatter diagram of the given bivariate data. (Do this on paper. Your instructor may ask you to turn in this work.) (b) Calculate the covariance. (Give your answer correct to two decimal places.) (c) Calculate sx and sy. (Give...
Consider the following bivariate data. Point A B C D E F G H I J...
Consider the following bivariate data. Point A B C D E F G H I J x 0 1 1 2 3 4 5 6 6 7 y 5 5 8 3 4 1 2 0 1 1 (a) Construct a scatter diagram of the given bivariate data. (Do this on paper. Your instructor may ask you to turn in this work.) (b) Calculate the covariance. (Give your answer correct to two decimal places.) (c) Calculate sx and sy. (Give...
Please answer ASAP Database Consider the relation scheme R = {A, B, C, D, E} with...
Please answer ASAP Database Consider the relation scheme R = {A, B, C, D, E} with the FDs A --> BC CD --> E Consider the following decompositions: (4.a) R1 = {A, B, C} and R2 = {C, D, E} (4.b) R1 = {A, B, C} and R2 = {A, D, E} (4.c) R1 = {A, B} and R2 = {A, C, D, E} (4.d) R1 = {A, B, C}, R2 = {C, D, E} and R3 ={A, D}. For...
Consider the following bivariate data. Point A B C D E F G H I J...
Consider the following bivariate data. Point A B C D E F G H I J x 9 8 9 3 7 3 3 4 6 5 y 6 2 2 3 6 3 3 2 4 6 (a) Construct a scatter diagram of the given bivariate data. (Do this on paper. Your instructor may ask you to turn in this work.) (b) Calculate the covariance. (Give your answer correct to two decimal places.) (c) Calculate sx and sy. (Give...
You are given the independent jobs A(5), B(7), C(10), D(12), E(6), F(4), G(3). (a) Using the...
You are given the independent jobs A(5), B(7), C(10), D(12), E(6), F(4), G(3). (a) Using the alphabetical order priority list above, if the jobs are scheduled on 3 processors, what is the completion time? (b) If the decreasing time algorithm is used to schedule the jobs on 3 processors, what is the completion time? 21 Incorrect: Your answer is incorrect. (c) If the decreasing time algorithm is used to schedule the jobs on 3 processors, which is the second job...
2. Determine whether each of these propositions is true or false. Please use “True” or “False”...
2. Determine whether each of these propositions is true or false. Please use “True” or “False” to answer. (0.1 point per question) a) 4 < 7 or 3 < 2. b) If 6 is divisible by 7, then 7 is divisible by 6. c) 7 is not divisible by 3. d) 7 is prime, and 4 is not prime. e) If 7 is prime, then 100 is not prime. f) If 100 is prime, then 7 is prime. g) If...