| | #1 |
| Warrior Member Join Date: 2012
Posts: 12
Thanks: 4
Thanked 2 Times in 1 Post
|
Here is a series of three steps: Step 1: A = 10 Step 2: B = 20 Step 3: A = B A and B are variables, that is they can stand for any value. The "=" sign stands for assignment. It means "assign the value on the right to the variable on the left". After all three steps above have been completed, what are the values of A and B? * A = 30, B = 0 A = 30, B = 20 A = 20, B = 20 A = 20, B = 0 A = 10, B = 10 A = 10, B = 20 A = 20, B = 10 A = 0, B = 10 |
| | |
| | #2 |
| HyperActive Warrior Registered Member Join Date: 2013
Posts: 103
Thanks: 4
Thanked 4 Times in 4 Posts
|
A=20 B=20 The variables will be equal to the last number assigned to them. |
| | |
| | #3 |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 |
So where do you go to school?
|
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | |
| | |
| | #4 |
| VIP Warrior War Room Member Join Date: 2006 Location: , , USA.
Posts: 1,795
Thanks: 70
Thanked 287 Times in 259 Posts
| |
| | |
| | #5 |
| Bananas are Yellow! Registered Member War Room Member Join Date: 2013 Location: Wyoming, PA, USA
Posts: 1,046
Thanks: 2,549
Thanked 1,600 Times in 928 Posts
Blog Entries: 4 | |
| Put MY voice on YOUR video: AwesomeAmericanAudio.com | |
| | |
| | #6 |
| VIP Warrior War Room Member Join Date: 2006 Location: , , USA.
Posts: 1,795
Thanks: 70
Thanked 287 Times in 259 Posts
|
I think I was a bit more subtle than you, in that I pretty much just called him (and I'm going to be subtle again) not very smart.
|
| | |
| | #7 |
| Warrior Member Join Date: 2015
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
Answer is 3rd Option from the given above list. B is getting assigned to A, since assignment operator is used.
|
| | |
| | #8 |
| Warrior Member Join Date: 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
A = 30, B = 0 <-- i am pretty sure this would return a syntax error |
| | |
| | |
| | #9 |
| Warrior Member Join Date: 2018
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
Step 3 made the variable constant A = 10, B = 20 that is right yaser abu sh |
| | |
| | #10 |
| New Warrior Member Join Date: 2018
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
A=20 and B=20
|
| | |
| Bookmarks |
| Tags |
| explain |
| |