Skip to content
VUBuddy

CS521 Quiz 2 May 2026

Web Systems and Technologies PDF 35 KBUpdated 23 Oct 2026
Quiz CS521 Quiz 2 May 2026 PDF 35 KB
vubuddy.com
Type
Quiz
Course
CS521 Web Systems and Technologies
Size
PDF 35 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 35 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 2, 3, 4 of 5. Download the file for all 5 pages.

Quiz 1 - CS521 (Q1/10)

Question:

Which loop in JavaScript is suitable for executing a block of code a specific number of times?

  1. for loop
  2. if statement
  3. do-while loop
  4. while loop

Correct answer: for loop

Copied: 5/18/2026, 10:19:56 AM

Quiz 2 - CS521 (Q2/10)

Question:

What is the scope of a variable declared inside a function in JavaScript?

  1. Global scope
  2. Program scope
  3. Compiler scope
  4. Local scope

Correct answer: Local scope

Copied: 5/18/2026, 10:20:13 AM

Quiz 3 - CS521 (Q3/10)

Question:

In JavaScript, what is a nested function?

  1. A function that is defined within another function.
  2. A function that can be called from multiple scopes.
  3. A function that returns another function.
  4. A function that takes multiple arguments.

Copied: 5/18/2026, 10:20:28 AM

Quiz 4 - CS521 (Q4/10)

Question:

Which event type is triggered when a user clicks on an HTML element?

  1. keypress
  2. mouseover
  3. click
  4. scroll

Correct answer: click

Copied: 5/18/2026, 10:20:45 AM

Quiz 5 - CS521 (Q5/10)

Question:

What is the correct way to declare a variable in JavaScript?

  1. var x;
  2. variable x;
  3. x = 5;
  4. x var;

Correct answer: var x;

Copied: 5/18/2026, 10:21:10 AM

Quiz 6 - CS521 (Q6/10)

Question:

What is the correct way to write an if statement in JavaScript?

  1. if x = 10 then { }
  2. if x == 10 { }
  3. if (x == 10) { }
  4. if {x == 10} then { }

Correct answer: if (x == 10) { }

Copied: 5/18/2026, 10:21:25 AM

Quiz 7 - CS521 (Q7/10)

Question:

What is jQuery?

  1. A markup language for structuring web content.
  2. A JavaScript library for creating dynamic web pages and simplifying web development.
  3. A database management system.
  4. A programming language used for server-side web development.

Correct answer: A JavaScript library for creating dynamic web pages and simplifying web development.

Copied: 5/18/2026, 10:21:41 AM

Quiz 8 - CS521 (Q8/10)

Question:

What does the Document Object Model (DOM) represent in JavaScript?

  1. The database that stores web page content.
All CS521 files →
CS521 Web Systems and Technologies All CS521 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.