100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

ISYS 115 - Programming Logic and Design Exam Cards Questions and Answers

Rating
-
Sold
-
Pages
10
Grade
A+
Uploaded on
22-03-2025
Written in
2024/2025

ISYS 115 - Programming Logic and Design Exam Cards Questions and Answers

Institution
Programming Logic And Design
Course
Programming Logic and Design









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Programming Logic and Design
Course
Programming Logic and Design

Document information

Uploaded on
March 22, 2025
Number of pages
10
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

ISYS 115 - Programming Logic and
Design Exam Cards Questions and
Answers

Which of the following uses the correct case? - ANSWER-document. write()

Which method displays a dialog box with an OK button? - ANSWER-window. alert()

When you assign a specific value to a variable on its creation, you __________ it. -
ANSWER-initialize

Which of the following is not a JavaScript keyword used to declare a variable? -
ANSWER-variable

What is usually the primary role of a client - ANSWER-the presentation of an
interface to the user

JavaScript is built upon: - ANSWER-ECMAScript
The Document Object Model
The Browser Object Model

The syntax specifications for JavaScript are defined in: - ANSWER-ECMAScript

The specifications for the Document Object Model are determined by: - ANSWER-
the World Wide Web Consortium (W3C)

Which of the following can be used as part of a for loop to go through all the
elements in the xValues array? - ANSWER-for (let i = 0; i < xValues. length; i++)

To reference the third inline image found within the web page document, use the
following: - ANSWER-document. images[2]

Posttest loops are _______. - ANSWER-program loops in which the stopping
condition is evaluated after the command block has been executed at least once

A simple if/else statement enables you to specify code for __________ alternatives?
- ANSWER-two

To create a multidimensional array in JavaScript, you must________. - ANSWER-
nest one array within another

The forEach() method________. - ANSWER-is used to apply a function to every
element within an array without using a program loop

, To access HTML elements by the value of their class attribute, which of the following
would you use? - ANSWER-document.getElementsByClassName()

To reference the element in the third row and fourth column of the multidimensional
array xValues, use the following expression: - ANSWER-xValues[2][3]

Which of the following properties returns the number of elements in an array? -
ANSWER-Length

In an if else statement, the else command block will be run when _______. -
ANSWER-the conditional expression is falsy

If you do not include code that changes the counter value in a loop statement, your
program will be caught in a(n) __________ . - ANSWER-infinite loop

To insert HTML code within an element without overwriting code already in that
element, use the ________ method - ANSWER-insertAdjacentHTML()

Which of the following statements adds the value "oak" as the third element of the
trees array? - ANSWER-trees[2] = "oak";

Each repetition of a program loop is called a(n) ________.: - ANSWER-Iteration

Which command executes all the statements in the next function in browser
debugging tools? - ANSWER-Step Over

______ errors are problems in the design of a program that prevent it from running
as you anticipate. - ANSWER-Logic

Which of the following for statements is logically incorrect? - ANSWER-for (var count
= 10; count <= 0; count++) {
document.write(count);
}

Which of the following modes temporarily suspends, or pauses, program execution
so that you can monitor values and trace program execution? - ANSWER-Break

After you throw an exception, you use a ______ statement to handle the error. -
ANSWER-catch

Which of the following pieces of information is passed as an argument from a throw
statement to a catch statement - ANSWER-Error Message

Which of the following statements writes the value of the selection variable to the
console? - ANSWER-console.log(selection);

Which of the following statements causes a syntax error? - ANSWER-
document.write(Available points: " + availPoints);

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectknancy Boston University
View profile
Follow You need to be logged in order to follow users or courses
Sold
285
Member since
2 year
Number of followers
28
Documents
26010
Last sold
1 week ago

3.6

57 reviews

5
23
4
10
3
11
2
3
1
10

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions