You are on page 1of 3

Peiwen Liu - 24W_CST8285_310_311_312_313 Web Programming - Algonquin College 2024-03-19, 10:45 AM

Class Activity 7 - Results

Attempt 1 of 1

Written Mar 10, 2024 2:53 PM - Mar 10, 2024 2:55 PM

Released Apr 2, 2022 12:01 AM

Question 1 1 / 1 point

Which JavaScript event is commonly used to trigger form validation when a


user submits a form?

onmouseover

onsubmit

onclick

onkeydown

Question 2 1 / 1 point

Which of the following is an invalid variable declaration in PHP?

$_3rows

$a65746

$3rows

$myVar

https://brightspace.algonquincollege.com/d2l/lms/quizzing/user/qui…08254&isInPopup=0&cfql=0&fromQB=0&fromSubmissionsList=1&ou=613703 Page 1 of 3
Peiwen Liu - 24W_CST8285_310_311_312_313 Web Programming - Algonquin College 2024-03-19, 10:45 AM

Question 3 1 / 1 point
Why is PHP more secure than many other methods for web interaction?

It does not interact with other systems.

It is a client-side language.

It is a server-side language.

Question 4 1 / 1 point

one of the benefits of scripting language is that it can accomplish the task
quickly without concern for machine efficiency because it is interpretable
and dynamically typed language

True
False

Question 5 1 / 1 point

Server-side programming languages are responsible for handling and


processing user requests, generating dynamic content, and interacting with
databases.

True
False

Question 6 1 / 1 point

What is the purpose of the return false statement in a JavaScript form


validation function?

hint: check the code provided as form example

https://brightspace.algonquincollege.com/d2l/lms/quizzing/user/qui…08254&isInPopup=0&cfql=0&fromQB=0&fromSubmissionsList=1&ou=613703 Page 2 of 3
Peiwen Liu - 24W_CST8285_310_311_312_313 Web Programming - Algonquin College 2024-03-19, 10:45 AM

It prevents the form from being submitted

It automatically submits the form

It clears all form fields

It reloads the page

Question 7 1 / 1 point

Server-side programming is essential for handling secure operations and


processing sensitive information, such as user authentication.

True
False

Question 8 1 / 1 point

The primary purpose of using JavaScript for form validation is To improve


user experience by providing real-time feedback.

True
False

Done

https://brightspace.algonquincollege.com/d2l/lms/quizzing/user/qui…08254&isInPopup=0&cfql=0&fromQB=0&fromSubmissionsList=1&ou=613703 Page 3 of 3

You might also like