Question

1. What is the result of 79%7? a) 11 b) 2 c) 11.286 d) None of the above. 2. Which of the following statements is incorrect?
I hope the expert answer all of them because i think they are all related
0 0
Add a comment Improve this question Transcribed image text
Answer #1

1) % is a Modulo operator, which gives remainder.

So 79%7 = 2

2) final statement = x*(y+1) is incorrect, as while assigning variables we cannot have space in them...

final_statement = x*(y+1) is correct way to write it.

3) As 'i' is int type, so 'i' will always be integer,

So, i = 11/2 gives 'i' =5

4) Statement m -= 5 is same m = m-5

So m -= 5 is equivalent to m = m-5

5) z = 7*9 + (13-5)/7

z = 63 + 8/7

As 'z' type is not given, assuming 'z' is int type,

then, z = 63 + 1 = 64

So if 'z' is int type ,then z = 64

If I helped you then Support me with a Thumps up.

Add a comment
Know the answer?
Add Answer to:
1. What is the result of 79%7? a) 11 b) 2 c) 11.286 d) None of...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. if x=3 then x*=2 evaluates to a. 6 b. 5 c. 2 d. none of...

    1. if x=3 then x*=2 evaluates to a. 6 b. 5 c. 2 d. none of the above 2. if x = 2 then the command j = i++ assigns the value to j of a. 3 b. 2 c. 4 d. none of the above

  • Question 1Which of the following statements is syntactically correct in C? A)  print("Winter is coming."); B)  printf("Winter "+"is"+”coming.”);...

    Question 1Which of the following statements is syntactically correct in C? A)  print("Winter is coming."); B)  printf("Winter "+"is"+”coming.”); C)  printf(Winter is coming.); D)  printf("Winter is coming."); E)  None of the Above Question 2 What is the percent code used in scanf for an character? A) %c B) %f C) %d D) %lf E) None of the Above Question 3 What is the value of the following arithmetic expression? 80 – 3 * 12 + 21 / 3  ​ A) 315 B)  37 C)  47 D) 24 E)  None of...

  • 6. Solve for x log2 (x + 7) + log 2x-3. a) x+7=3 b) 1 c)...

    6. Solve for x log2 (x + 7) + log 2x-3. a) x+7=3 b) 1 c) not possible x d) none of these 7. Evaluate log, a) x b) c) not possible d) none of these 8. What is the solution of -764? a) -2 b) 0 c) 2 d) 10 9. Find the approximate value of the expression log 16 160 a) 0.54 b) 1.83 c) 2.20 d) 0.9 10. Find the value of the expression 2.5 b) 12.2...

  • Parts B, C D, E Rules for Orbital Angular Momentum Constants Periodic Table Part A Learning...

    Parts B, C D, E Rules for Orbital Angular Momentum Constants Periodic Table Part A Learning Goal How many different values of I are possible for an electron with principal quantum number n Express your answer as an integer To understand and be able to use the ruiles for determining allowable orbital angular momentum states 52 Several numbers are necessary to describe the states available to an electron in the hydrogen atom. The principal quantum number n determines the energy...

  • 1. Given that U={a,b,c,d,ef,g,1,2,3,4,5}, A={a,b,c, d, e,2}, B={a,d,1,2,4). find AUBI. 2. Find the final amount of...

    1. Given that U={a,b,c,d,ef,g,1,2,3,4,5}, A={a,b,c, d, e,2}, B={a,d,1,2,4). find AUBI. 2. Find the final amount of $7600 at the end of 225 days at 124% per year simple interest rate 3. Find the present value of $7600 due at the end of 16 years at 15% per year compounded continuously. 4. Find the present value of $7500 due at the end of 16 years at 15% per year compounded quarterly 5. IfI can travel 160 miles with 7 gallons of...

  • in c++ 10. In C++, when you divide ninieger by an integer, the result is always...

    in c++ 10. In C++, when you divide ninieger by an integer, the result is always given as A) an integer B) zero C) a fraction D) a positive value E) None of these T/F 11. The identifiers quizNo1 and quiznol are viewed equivalent in C++. T/F 12. Permanent storage is needed because RAM o Wlatile 13. If a -4; and b = 3;, then after the statement a b; the value of bis erased. T/F 14. If the input...

  • the last pic is number 14 please answer it as a,b,c,d as well. thanks 1. If...

    the last pic is number 14 please answer it as a,b,c,d as well. thanks 1. If A is diagonalizable then A is diagonalizable. a) True b) The statement is incomplete c) False d) None of the above 2. In every vector space the vector (-1)u is equal to? a) -U b) All of the above c) None of the above d) u 3. The set of vectors {} is linearly dependent for a) k = 3 b) k = 1...

  • Activity Predecessor Duration (weeks) a none 12 b none 5 c a, b 7 d c,...

    Activity Predecessor Duration (weeks) a none 12 b none 5 c a, b 7 d c, e 2 e b 8 f e 9 g d 5 h f,g 8 Your firm is implementing a balanced scorecard. As the project manager, you need to make sure the project is completed on time and on-budget. The table below lists the steps that need to be complete. The data analysis team members are going to be late delivering some key data points...

  • 11. Electric field (E) at the surface of a conductor is (b) 2o/ (c)の200 (d) None...

    11. Electric field (E) at the surface of a conductor is (b) 2o/ (c)の200 (d) None Electric potential (V) varies the distance (r)as 12. (c) 2r (d) None 13. The electric potential energy (U) for two point charges q and qoat a separation 'r' is (b) 4째 (qquw) c) (1/4n(qa) (d) None 14. Electric potential difference between two potential points (V-V) is e)E cose dl (h) None 15. 2 X electron volt (eV) is measured as (a) 4.8 x 1019J...

  • in ocaml language Execute > Share main.ml STDIN 2 (* Problem 9. Write a function that...

    in ocaml language Execute > Share main.ml STDIN 2 (* Problem 9. Write a function that takes 3 an integer list and returns the sum of all elements in the list 1.li Result Socamle - main ..ml File "main.ml", line 9, characters 29-37: Error: This expression has type int option but an expression was expected of type int 4 If the list is empty, then return None. *) 5 let rec sum (xs:int list) : int option = 6 (*...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT