Criado por Kiana Bonilla
mais de 4 anos atrás
|
||
Questão | Responda |
We primarily use JavaScript for ______-side scripting. | client |
Within what HTML element/section would we place the link to an external JavaScript file (one word)? | head |
What HTML attribute is set equal to the path and filename of an external JavaScript file? | src |
Embedded JavaScript must be placed within what HTML element (one word)? | script |
<button id="colorButton" onclick="changeColor(getElementById('colorPicker').value);">Change Color</button> Is an example of including JavaScript in what manner? | inline |
When declaring a local variable in JavaScript, what keyword must precede the variable name? | var |
Declaring a variable in JavaScript without the keyword from the previous question will make the variable to have what kind of scope? | global |
What is the minimum number of times that "Hello" will be printed? while (count < 4) { document.write("Hello"); count++; } | 0 |
What is the minimum number of times that "Hello" will be printed? do { document.write("Hello"); count++; } while (count < 4); | 1 |
<p id="para1">rabbit</p> Use the DOM to get the <p> element using the ID and change the HTML to read: turtle | document.getElementById9"para1").innerHTML="turtle"; |
Execute the same task from the previous question using the jQuery shorthand. | $("#para1").html("turtle"); |
What method sets up a function that will be called whenever a specified event occurs? Hint: the method sets up a listener | addEventListener() |
In lab 3, when you hovered over the image thumbnails, they would "pop-out" a bit. Was it JavaScript or a CSS rule that made that happen? | css |
In lab 3, when you hovered over the large image, a caption would fade in. Was it JavaScript or a CSS rule that made that happen? | JavaScript |
The basic jQuery selector for an element with id="pickme" is $("#pickme") | $(".pickme") |
A PHP variable name begins with what symbol? | $ |
Originally, PHP stood for: | personal home pages |
Now, PHP stands for | PHP: Hypertext Preprocessor |
A PHP file must have what file extension? | .php |
opening PHP tag | <?php |
closing php tag | ?> |
Write a line of code that creates a variable "num" and sets it equal to 10. | $num=10; |
Using standard PHP programming convention, how would you write a line of code that uses the define() function to create a constant named standard gravity to 9.81 ? | define("STANDARD_GRAVITY",9.81); |
What HTML does the following code produce? echo "<a href=\"http://uncw.edu\">UNCW</a>"; | <a href="http://uncw.edu">UNCW</a> |
What does the following code produce? for ($i = 1; $i < 11; $i++) { $nums .= $i; } echo $nums | 12345678910 |
What does the following code produce? for ($i = 1; $i < 11; $i++) { $nums .= $i; } echo $nums | 0 |
If the GET method is used, how would you print to the screen the value submitted for: <input type="text" name="address"> | echo $_GET['address']; |
If the POST method is used, how would you print to the screen the value submitted for: <input type="radio" name="size" value="S">Small<br> <input type="radio" name="size" value="M">Medium<br> <input type="radio" name="size" value="L">Large<br> | echo $_POST['size']; |
An array that uses named keys rather than index integer values is what kind of array [one word]? | associative |
What character begins a query string? | ? |
What looping construct is particularly useful for iterating over an array with key - value pairs? | foreach |
What does RDBMS stand for? | relational database management system |
Cassandra and MongoDB are examples of what kind of database system? | NoSQL |
Where can we find mysqli_connect.php based on this line of code? <?php require '../../mysqli_connect.php'; ?> | two levels above main site folder |
Why is it considered best practice to put the dB connection code outside of the public_html directory? | security |
What PHP function is used to assign our actual password to DB_PASSWORD ? | define() |
What is used to uniquely identify each record in a dB table? | primary key |
What kind of dB relationship links a single record in one table to possibly multiple records in another table? | one to many |
SQL stands for | structured query language |
What SQL keyword has fields as its argument(s) (i.e. field names directly follow it)? | SELECT |
SQL is case sensitive. | false |
What SQL keyword has tables as its argument(s)? | FROM |
What SQL keyword has a Boolean condition as its argument(s)? | WHERE |
When two dB tables are related, it is common to see the primary key in one table mapped to a ____ key in the other table. | foreign key |
We can upload and store files, like images, directly in a database. This type of field is known as a BLOB which stands for | binary large object |
The last step in the basic dB connection algorithm is: | free resources and close connection |
Quer criar seus próprios Flashcards gratuitos com GoConqr? Saiba mais.