
PGE Topic 3.3 Dialog Boxes
Authored by ho mc
Computers
11th - 12th Grade
Used 36+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What does x and y represent in the script shown?
prompt("x","y");
arguments.
array.
sentences.
values.
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which one of the following JavaScript statements produces the output shown?
alert("Nitec in\nWeb\nApplications")
alertbox("Nitec in\nWeb\nApplications");
alert("Nitec in<br>Web<br>Applications");
alertbox("Nitec in <br>Web<br>Applications");
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which one of the following JavaScript statements produces the output as shown?
alert("Please Enter Your Name:", "Your Name");
confirm("Please Enter Your Name:", "Your Name");
alertbox("Please Enter Your Name:", "Your Name");
prompt("Please Enter Your Name:", "Your Name');
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which one of the following methods produces the output as shown?
The confirm() method
The prompt() method
The alert() method
The write() method
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which one of the following statements is TRUE with regards to a confirm() method?
If the user clicks the Cancel button, true is returned.
If the user clicks the OK button, true is returned.
This method can have more than 2 buttons.
This method can take multiple arguments with reference to the question being asked in the dialog box.
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
How do you write "Hello ITE" in an alert box?
alertBox(“Hello ITE”);
alert(“Hello ITE”);
msgBox(“Hello ITE”);
msgBox = (“Hello ITE”);
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be displayed if the JavaScript code shown is executed?
var x = alert("what's your name?");
No image will be displayed
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?