![kelseeygee](/avatars/16508.jpg)
kelseeygee
04.07.2019 •
Computers and Technology
Which of the following is not a valid method to increase a variable named score by 1?
a.
++score = score + 1
b.
score = score + 1
c.
score++
d.
++score
Solved
Show answers
More tips
- H Health and Medicine 10 Ways to Cleanse Your Colon and Improve Your Health...
- W Work and Career How to Write a Resume That Catches the Employer s Attention?...
- C Computers and Internet Е-head: How it Simplifies Life for Users?...
- F Family and Home How to Choose the Best Diapers for Your Baby?...
- F Family and Home Parquet or laminate, which is better?...
- L Leisure and Entertainment How to Properly Wind Fishing Line onto a Reel?...
- L Leisure and Entertainment How to Make a Paper Boat in Simple Steps...
- T Travel and tourism Maldives Adventures: What is the Best Season to Visit the Luxurious Beaches?...
- H Health and Medicine Kinesiology: What is it and How Does it Work?...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
Answers on questions: Computers and Technology
- M Mathematics Help, this is important! please!...
- M Mathematics 11. Error Analysis Ahmed uses the following explanation to prove that a figure is a parallelogram. What is Ahmed s error?...
- M Mathematics Please help with this! If I can mark you brainliest I will!! Algebra 1...
- H History To try to gain control over west berlin,the soviet union...
- B Biology How big is the largest known asteroid? about 10,000 kilometers in diameter about 1,000 kilometers in diameter about 100 kilometers in diameter about 10 kilometers...
Ответ:
a.
++score = score + 1
Explanation:
First you have to understand the increment operator;
There are three possible ways to increment the value of variable by 1.
1. post increment
syntax:
name++
it using in expression first then increase the value by 1.
2. Pre increment
syntax:
++name
it increase the value by 1 before it using in expression.
3. simple method
name = name +1
In the question,
option 1: ++score = score + 1
it increase the value of score by 2 because their are two increment is used first for (score + 1) and second ++score.
Therefore, the correct option is a.
Ответ:
i got and d in tecnology ask a parent or guardian
Explanation: