1. Read All Questions Carefully: Make sure you understand each question.
2. Time Management: You have a specific amount of time to complete the exam.
Keep an eye on the clock and pace yourself.
3. Allowed Materials: Only use materials that are explicitly allowed. Unauthorized
materials can lead to disqualification.
4. ANS Format: Follow the required format for your ANS. For example, multiple-
choice questions might need you to select the best ANS, while essay questions
require detailed responses.
5. Academic Integrity: Adhere to the university's honor code. Any form of cheating or
plagiarism is strictly prohibited.
6. Technical Requirements: Ensure your computer and internet connection are
stable. For online exams, you might need a webcam and microphone for proctoring
purposes.
7. Submission: Submit your ANS before the time expires. Late submissions might
not be accepted.
,1. Which of the following best describes the primary goal of
JavaScript in web development?
- A. To manage daily business operations
- B. To create dynamic and interactive web content
- C. To develop new software applications
- D. To conduct market research
- ANS: B
- Rationale: The primary goal of JavaScript in web
development is to create dynamic and interactive web content,
enhancing user experience and functionality.
2. What is the primary function of the
`document.getElementById()` method in JavaScript?
- A. To manage network traffic
- B. To select an HTML element by its ID
- C. To encrypt data
- D. To conduct vulnerability assessments
- ANS: B
- Rationale: The `document.getElementById()` method is
used to select an HTML element by its ID, allowing developers to
manipulate the element's content and attributes.
,3. Which of the following is a key feature of JavaScript
closures?
- A. Physical security
- B. Lexical scoping
- C. Financial analysis
- D. Inventory management
- ANS: B
- Rationale: Lexical scoping is a key feature of JavaScript
closures, allowing functions to access variables from their parent
scope even after the parent function has closed.
Fill-in-the-Blank Questions
4. The __________ keyword is used to declare a variable with
block scope in JavaScript.
- ANS: let
- Rationale: The `let` keyword is used to declare a variable
with block scope in JavaScript, ensuring that the variable is only
accessible within the block where it is defined.
, - Rationale: Type coercion refers to the process of converting
a value from one data type to another, allowing for flexible and
dynamic data handling in JavaScript.
True/False Questions
6. JavaScript is a statically typed language.
- ANS: False
- Rationale: JavaScript is a dynamically typed language,
meaning that variables can hold values of any data type and their
types can change at runtime.
7. The `const` keyword is used to declare a variable that cannot
be reassigned.
- ANS: True
- Rationale: The `const` keyword is used to declare a variable
that cannot be reassigned, ensuring that the variable's value
remains constant throughout the program.
Multiple Response Questions
8. Which of the following are common data types in JavaScript?
(Select all that apply)
- A. Number
- B. String
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller emiliophd. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $17.99. You're not tied to anything after your purchase.