Quiz
Programming Q2
This quiz has question types that open in the usual player.
Questions in this quiz (8)
1Assume user types in '10'
var val = window.prompt("Enter a value: ");
window.alert("You said: "+val)- ANothing
- BYou said: 10
- CError
2(d == e);
var j=25,
k = 45;
d = 2.5,
e=2.51;- ATrue
- BFalse
3(k >= 25);
var j=25,
k = 45;
d = 2.5,
e=2.51;- ATrue
- BFalse
4Select the operator that is invalid
- A!=
- B==
- C<=
- D≥
5what symbols are used for block syntax? [blank_start]{}[blank_end]
- A{}
- B[]
- C()
6var num=10;if (num > 10)document.write("big");elsedocument.write("small");
- Abig
- Bsmall
- Cneither
7var num=10;if (num == 10){document.write("big");document.write("small");}
- Asmall
- Bbigsmall
- Cbig
8var x = 10, y = 20;
var result = (x > 10) || (y < 20);
document.write(result);- ATrue
- BFalse
Information
- Description
- Quiz on Programming Q2, created by kalli Van Stone on 19/10/2020.
- Author
- kalli Van Stone
- Language
- English
- Views
- 0
- Tags
- Rating
- No ratings yet Rate this quiz