CIT 410 - Exam 1

0.0(0)
Studied by 9 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/52

flashcard set

Earn XP

Description and Tags

Last updated 2:34 PM on 10/2/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

53 Terms

1
New cards

The Document Type Definition or the DOCTYPE for HTML5 looks like:

<!DOCTYPE html>
2
New cards

When do you need to use a fully qualified, absolute URL in a hyperlink?

When linking to a page on an external web site

3
New cards

The text contained between the

<title> ... <title> 

tags is:

Displayed in the title bar of the browser window or tab

4
New cards

Which of the following is not part of a web application stack?

  • A code validator

  • An operating system

  • Web service software

  • A database

A code validator

5
New cards

Which of the following is the most common choice for a web server?

  • Linux-based OS

  • Mac OS

  • Windows Server

  • None of the above

Linux-based OS

6
New cards

____ are programs that test code to ensure that it contains no syntax errors

Validators

7
New cards

A request and response for a file are made by

a client and a server

8
New cards

HTML markup is implemented via

tags (AKA elements)

9
New cards

A host that provides storage space for saving and retrieving records is called a ____.

file server

10
New cards

To add the comment, Welcome John Smith, the syntax would be _____

<!--Welcome John Smith -->
11
New cards
<p>In the figure, what does Box A represent?</p>

In the figure, what does Box A represent?

Text box

12
New cards

Identify the correct hierarchy of tags to create a web table:

  • <table>, <tr>, <td> </td>, </tr>, </table>

  • ​<table>, <td>, <tr> </td>,</tr> </table>

  • <tr>, <table>, <td> </td>,</table>, </tr>

  • ​<tr>, <td>, <table>,</table>,</tr>,</td>

<table>, <tr>, <td> </td>, </tr>, </table>

13
New cards

Which of the following HTML Elements is used to create a table title

  • table

  • caption

  • style

  • span

caption

14
New cards

A ___ is a control used to enter text strings that may include several lines of content

text area box

15
New cards

An order form contains an area for web visitors to select their state or province. You need to limit the amount of space on the form that is used for this feature. Select the form control that is best to use for this purpose:

  • check box

  • radio button

  • text box

  • select list

select list

16
New cards

To apply the same style to more than one element on a web page, configure a CSS ___

class

17
New cards

Select the form control below that doesn’t use the <input> tag

  • text box

  • select list

  • check box

  • radio button

select list

18
New cards

Select the statement below that is true about forms

  • the <form> tag is optional

  • It is recommended to use mailto: as the action on a form since that is the easiest for the web developer

  • A form can be used to pass information to a program or script on the web server

  • none of these

A form can be used to pass information to a program or script on the web server

19
New cards

Select the tag used to visually group a number of form controls

  • group

  • fieldset

  • form

  • legend

fieldset

20
New cards

Select the true statement from the choices below

  • A scrolling text box is created using an <input> tag with the type = “textarea”

  • A text box is created using the <input> tag with the type = “box”

  • A select list is created using <select> and <input> tags

  • none of these

none of these

21
New cards

Select the type of form that “disguises” the characters that are typed

  • text

  • password

  • encrypt

  • textbox

password

22
New cards

The purpose of the ____ is to configure a label for a <fieldset>

<legend>

23
New cards

To associate text with a form control, the text string and the form element should be enclosed within the ___ element

label

24
New cards

Use the ____ attribute on the <form> tag to specify the name and location of the script that will process the form control values

action

25
New cards

When configuring a group of radio button form controls, the value of the ___ attribute on each radio button must be the same

name

26
New cards

You would like to conduct a survey and ask your web page visitors to indicate the computer operating systems that they use. Each visitor could use more than one computer operating system. Select the form control that is best to use for this purpose:

  • Check box

  • Radio button

  • Text box

  • Scrolling text box

Check box

27
New cards

get and post are two possible values for the _____ attribute

method

28
New cards

When form data is appended to a URL, what is it called?

Query String

29
New cards

What attribute of form input elements becomes the variable which stores the user’s data?

name

30
New cards

When using a label element that is not wrapped around an input element, which attributes should match in the label and form control elements respectively

for and id

31
New cards

JavaScript is used as a programming tool for

creating interactive web forms and animated graphics

32
New cards

__ programming distributes the load to prevent a server from getting overloaded with program-related requests

Client-side

33
New cards

__ is the programming language for client-side programs

JavaScript

34
New cards

Javascript code is attached to an HTML file using the ____ element

script

35
New cards

A user can create an embedded script by removing the __ attribute and placing all of the JavaScript code within the script element

src

36
New cards

__ is the process of locating and fixing a programming error

Debugging

37
New cards

A(n) __ is any group of characters enclosed within either double or single quotation marks in JavaScript

text string

38
New cards

A(n) __ is a collection of commands that performs an action or returns a value

function

39
New cards

the DOM for a web page provides a hierarchy of nodes that represent

the elements, contents, attributes, and comments in HTML

40
New cards

To call the jQuery accordion method for a div element that has “panel” as its id attribute, you would code this JavaScript:

$(“#panel”).accordion();

41
New cards

The HTTP response for a dynamic web page is passed

from the web server to the browser

42
New cards

A PHP variable name:

  • can start with a letter, a digit, or two underscores

  • is case-sensitive

  • can be a PHP reserved word

  • can contain special characters

is case-sensitive

43
New cards

A PHP variable begins with that symbol?

$

44
New cards

PHP provides a concatenation operator. What symbol is used?

. (dot)

45
New cards

After the if statement that follows is executed, what will the value of $discountAmount be?

$order_total = 200;

if ($order_total > 200) {

$discount_amount = $order_total *.3;

} else if ($order_total > 100) {
    $discount_amount = $order_total
.2;
} else {
    $discount_amount = $order_total * .1;
}

40

46
New cards

How many times will the while loop that follows be executed?

$months = 5;
$i = 1;
while ($i > $months) {
   $futureValue = $futureValue * (1 + $monthlyInterestRate);
   $i = $i+1;
}

0

47
New cards

When the web server receives an HTTP request for a PHP page, the web server calls the

PHP interpreter

48
New cards

A PHP constant name:

should be all upper case

49
New cards

What would be the output from the following:

$word = "script";

     echo "Define '$word', please.";

Define ‘script’, please.

50
New cards

What would be the output form the following:

$word = "script";

     echo 'Define " '. $word . ' ", please.';

Define “script”, please

51
New cards

What would be the output from the following:

$word = "script";

     echo "Define \"$word\", please.";

Define “script”, please

52
New cards

What would be the output from the following:

$word = "script";

     echo 'Define \'$word\', please.';

Define ‘$word’, please

53
New cards

What would be the output from the following:

$word = "script";

     $word .= "script";

     echo ''$word";

scriptscript

Explore top notes

note
NOUNS
Updated 1100d ago
0.0(0)
note
AP Physics 1: Ultimate Guide
Updated 693d ago
0.0(0)
note
CELLULAR RESPIRATION
Updated 1728d ago
0.0(0)
note
Chemistry
Updated 279d ago
0.0(0)
note
Chapter 23- Alkenes
Updated 1278d ago
0.0(0)
note
Chapter 5: Foundations: History
Updated 1082d ago
0.0(0)
note
NOUNS
Updated 1100d ago
0.0(0)
note
AP Physics 1: Ultimate Guide
Updated 693d ago
0.0(0)
note
CELLULAR RESPIRATION
Updated 1728d ago
0.0(0)
note
Chemistry
Updated 279d ago
0.0(0)
note
Chapter 23- Alkenes
Updated 1278d ago
0.0(0)
note
Chapter 5: Foundations: History
Updated 1082d ago
0.0(0)

Explore top flashcards