LIS 2360 Exam Questions

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What is the Git command that records file snapshots permanently in version history (cache/staging area)?

$ git commit -m "[descriptive message]"

How do you create a new local repository

$ git init

What is the Git command to upload all local branch commits to the remote repository?

$ git push

What is the git command that will allow you to view all of the new or modified files to be committed?

$ git status

The AND operator is

&&

JavaScript code in an HTML document goes within which HTML element?

<script></script>

If you want to execute one set of statements when a condition evaluates to a truthy value and another set of statements when the condition evaluates to a falsy value, you need the __________ statement

if/else

Which of the following is an example of a composite or complex data type?

Array

This is used to locate and view any error messages that a browser might generate when processing your JavaScript code

Browser console

This type of web site is used to share information such as forms, manuals, organization schedules with employees or members

Intranet

Which of these characteristics are not true about the application protocol, Hypertext Transfer Protocol?

It is a connection-oriented protocol

____ can turn static documents into applications such as games or calculators

JavaScript

A(n) ____ statement is used to exit control statements

break

A(n) ____ label in a switch statement represents a specific value and contains one or more statements that execute if the value of the label matches the value of the switch statement's expression

case

At the core of DHTML is ____.

DOM

Through the ____ object you can access other objects that represent elements on a Web page.

Document

A ____ statement restarts a loop with a new iteration

continue

The ____ label contains statements that execute when the value returned by the switch statement expression does not match a case label

default

"DHTML" refers to a single technology.

False

A local repository can be created using two approaches: create a brand new repository (git init) or pull a new repository (git pull)

False

Git Pull allows a user to pull the changes in a local repository to a remote repository

False

Git is a free and open source decentralized version control system

False

HTML is a set of rules for exchanging text, graphics, sound, video, and other multimedia files

False

In JavaScript programming, you can only use the words yes and no to indicate Boolean values

False

The following example returns a list of all elements where the id="intro" var x = document.getElementsByClassName("intro");

False

The following statement finds all of the <span> elements in the HTML document: var x = document.getElementsByTagName("p");

False

VCSs are not beneficial and are a waste of time to web designers/developers who do not work with a development team. VCSs are only beneficial to development teams working on a project

False

Version control systems allow files to be overwritten in the common (remote) repository

False

If the web server receives a request for a page from a client and the server cannot find the requested page, it will send this message to the client. This message means "Page Not Found"

HTTP 404 Error Message

This program can be used to see if a computer on the Internet is alive

Ping

A command-line utility, Tracert for Windows and Traceroute in Unix systems, is a route-tracing utility to determine the path that an IP packet has taken to reach a destination

True

A peer-to-peer network consist of devices (web servers or end user computers) that participate on equal terms in a type of communication. In contrast, the client-server model is where one computer services requests of many clients/devices

True

Each element on a Web page is represented in the HTML DOM by its own object.

True

Git allows every user to have a complete copy of the shared remote repository data stored locally on their own machines

True

If a variable is declared and does not include the var keyword, the variable is automatically considered a global variable in JavaScript

True

JavaScript, unlike most full programming languages, does not require declaring a data type

True

SMTP is a protocol for sending emails over the Internet

True

The DOM is a W3C (World Wide Web Consortium) standard.

True

The Internet is a worldwide collection of computer networks that link billions of computer used by businesses, government, educational institutions, etc

True

The getElementsByName() method always returns an array, even if there is only one element in the document with a matching name attribute.

True

The innerHTML property is used to get or replace the content of an HTML element.

True

The keyword var is used to declare a variable

True

There are three main Git states that a users' files can reside in: committed, modified, and staged

True

Version control systems keep track of who changed the file/project, when the change was made, what changes were made, and allows the developer to revert back to a previous version of the file/project

True

You can place <script> elements in either the document head or in the document body

True

You modify values in existing array elements in the same fashion as you modify values in a standard variable, except you include brackets and the element index

True

The statements in a __________statement always executes once, before a conditional expression is evaluated

do/while

A ____ variable is one that is declared outside a function and is available to all parts of your program

global

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>

document.getElementById("demo").innerHTML = "Hello World!";

Which of the following is the correct syntax for accessing an element with the id value headline?

document.getElementById("headline")

Which of the following is the correct syntax for accessing the value of the href attribute for the third a element in a document?

document.getElementByTagName("a")[2].href

Each piece of data contained in an array is called a(n) ____

element

This data type is used to store numbers that contain decimal places or that are written in exponential notation

floating-point number

In JavaScript programming, you can write your own procedures, called ____, which refer to a related group of JavaScript statements that are executed as a single unit

functions

The ____ method returns an array of elements that match a specified tag name.

getElementsByTagName()

Each repetition of a looping statement is called a(n) ____________

iteration

JavaScript is a ____ programming language

loosely typed

How do you call a function named "myFunction"?

myFunction()

Which of the following references the second element in the newSections array?

newSections[1]

The JavaScript function for receiving input is _________

prompt()

________ are special words that are part of the JavaScript language syntax

reserved words

The ____ property of the Image object allows JavaScript to dynamically change an image.

src

The ____ method displays a dialog box with a message, a text box, an OK button, and a Cancel button

window.prompt()


Set pelajaran terkait

Chapter 2: Production Possibilities, Opportunity Cost, and Economic Growth

View Set

Psych Prep U Obsessive-Compulsive and Related Disorders

View Set

Lewis - Med Surg - Ch 38: Nursing Assessment: Gastrointestinal System

View Set

Chapter 3 - Life Insurance Policies

View Set

Week 4: Social Psych (Conformity)

View Set