
JS Prefix and postfix
Authored by Megha .
Computers
7th Grade
Used 25+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<script>
var a=2,z;
z=++a * 2;
document.write(z);
</script>
6
4
3
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<script>
var a=2,y=10,z;
z=++a * y++;
document.write(z);
</script>
40
20
30
22
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<script>
var a=2,y=10,z;
z=++a * ++y;
document.write(z);
</script>
20
30
33
32
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<script>
var a=2,z;
z=a++ - a;
document.write(z);
</script>
-1
1
0
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<script>
var a=2,z;
z=a++ + ++a;
document.write(z);
</script>
5
6
4
7
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
var a=22, b=16,c;
document.write(“c=” +(a- ++b));
document.write(“b=”+b);
c=5b=17
c=6 b=17
c=5 b=16
c=4 b=15
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<script>
var a=2,b=5,z;
z=a++ + b++ -b;
document.write(z);
</script>
3
2
1
5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?