- The array $array = (“One”=>1, “Two”=>2, “Three”=>3) is numeric
- True [Incorrect]
- False [Correct!]
- Which equation equates to 14?
- 4 + 5 2 – 4 [10]
- (4 + 5) 2 – 4 [Correct!]
- 4 + 5 (2 – 4) [-6]
- 4 + (5 2) – 4 [10]
- The foreach() function in PHP is used when dealing with:
- Strings [Incorrect]
- Arrays [Correct!]
- Objects [Incorrect]
- Lists [Incorrect]
- Which PHP reserved array holds values passed in the URL?
- $_POST [Incorrect]
- $_GET [Correct!]
- $_SESSION [Incorrect]
- None of these [Incorrect]
- Which of the following is NOT a valid variable name?
- $variable [Incorrect]
- $string [Incorrect]
- $_string1 [Incorrect]
- $and-then [Correct!]
- Which of the following is an incorrect definition?
- Apache = Web Server [Incorrect]
- PHP = Object oriented language [Incorrect]
- MySQL = Database Server [Incorrect]
- HTML = Operating System [Correct!]
- Which of the following PHP functions runs until a condition is met?
- foreach() [Incorrect]
- while() [Correct!]
- during() [Incorrect]
- None of these [Incorrect]
- Declaring strings using single quotes means PHP syntax in the string will be shown.
- True [Correct!]
- False [Incorrect]
- Which HTML element is used for JavaScript?
- <scripting> [Incorrect]
- <javascript> [Incorrect]
- <jscript> [Incorrect]
- <script> [Correct!]
- Where can we place JavaScript?
- <head> [This is one place]
- <body> [This is one place]
- A & B [Correct!]
- None of these [Incorrect]
- JavaScript and Java are the same thing.
- True [Incorrect]
- False [Correct!]
- DOM stands for
- Document Object Model [Correct!]
- Document Oriented Media [Incorrect]
- Document Object Manager [Incorrect]
- None of these [Incorrect]
- When a user views a page containing a JavaScript program, which machine actually executes the script?
- The user’s browser [Correct!]
- The Web server [Incorrect]
- Both [Incorrect]
- None of the above [Incorrect]
- Which of the following cannot be done with JavaScript?
- Validating a form [Incorrect]
- Sending a form’s contents by email [Correct!]
- Storing the form’s contents to a database file on the server [Incorrect]
- None of the above [Incorrect]
- Which of the following is not a valid JavaScript variable name?
- 1stname [Correct!]
- _firstName [Incorrect]
- FirstName [Incorrect]
- None of these [Incorrect]
- What is the correct JavaScript syntax to write “Hello World”?
- System.out.println(“Hello World”) [Incorrect]
- println (“Hello World”) [Incorrect]
- document.write(“Hello World”) [Correct!]
- response.write(“Hello World”) [Incorrect]
- jQuery uses CSS selectors to interact with page elements.
- True [Correct!]
- False [Incorrect]
- In jQuery, $(‘div’) would select
- The first div element [Incorrect]
- All div elements [Correct!]
- An element named div [Incorrect]
- Which jQuery function makes sure the contained code only runs when the page is done loading?
- $(body).onload() [Incorrect]
- $(document).loaded() [Incorrect]
- $document.ready() [Correct!]
- None of these [Incorrect]
- jQuery is an add-on library for JavaScript, not an independent language.
- True [Correct!]
- False [Incorrect]
Candela Citations
CC licensed content, Shared previously
- The Missing Link. Authored by: Michael Mendez. Provided by: Open SUNY Textbooks. Located at: https://textbooks.opensuny.org/the-missing-link-an-introduction-to-web-development-and-programming/. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike