MIST 4630

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Which of the following is a risk or challenge that needs to be addressed when considering a move to Cloud Computing? (Select all that apply)

-Potential security vulnerabilities -Reduced operational governance control -Limited portability between cloud providers -Regulatory and legal issues across multiple regions

Which of the following CSS selectors can be used to select all elements with the class "intro"?

.intro {...}

How many keys do you need to include when setting up your AWS credentials in the Eclipse AWS Toolkit?

2

Which of the following delimiters in a JSP file signals to the server that that a Java expression will be printed to the response object?

<% =... %>

Which of the following delimiters in a JSP file signals to the server that some Java code is included in the file?

<%...%>

Which of the following is a correct format for a hyperlink to the Terry College web site?

<a href="http://www.terry.uga.edu">The Terry College of Business</a>

Which of the following HTML tags makes text content a heading with the largest size?

<h1>...</h1>

Which of the following is the correct HTML for inserting an image?

<img src="image.gif" alt="MyImage">

Which of the following HTML tags will create a button that when clicked will cause the action of a form to be implemented?

<input type="submit" name="submit" value="Go" />

Which of the following HTML tags is correct for making a textbox that is named "age"?

<input type="text" name="age" />

Which of the following is a correct tag for connected an HTML page to an external style sheet?

<link ref="stylesheet" type="text/css" href="styles.css">

Which of the following HTML tags would be used to create a drop-down list?

<select>...</select>

Which HTML tag is used to specify an internal style sheet?

<style>...</style>

Which of the following HTML tags would be used to define a bulleted list?

<ul>...</ul>

Which of the following is a valid URL mapping annotation that appears in a servlet?

@WebServlet(urlPatterns = { "/guess" })

What is the name of the portal that you should use to access the AWS Cloud services for your work in this course?

AWS Educate

The __________________ is a web application for managing Amazon Web Services that provides an interactive user interface for performing many AWS tasks.

AWS Management Console

When setting up an EC2 instance, you must specify a template that contains a software configuration for your instance. Which of the following is the AWS name for such a template.

Amazon Machine Image (AMI)

Suppose that a user enters the value 21 into a textbox called age. This value is sent along with the request to a JSP file. When the value is retrieved using the request.getParameter("age") method, what is the default data type for this method?

String

After you set up an EC2 instance, you can access and manage it in which of the following ways? (Select all that apply)

Using the AWS Console Using commands from your computer terminal Using API Terms

Which of the following statements can be used to create a cookie that will be sent to the client?

C) Cookie nameCookie = new Cookie("nameCookie", studentName); response.addCookie(nameCookie);

Which of the following Eclipse Dynamic Web Project folders is the best place to import the Connector/J jar file?

WebContent/Web-Inf/lib

What does CSS stand for?

Cascading Style Sheets

Which of the following statements can be used to connect to a local MySQL database named test?

Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/test");

A __________ is a stand-alone, software component that enables a Java application to interact with a database.

database driver

Which of the following AWS services allows you to rent virtual computers on which to run your own computer applications?

EC2

Which of the following are considered to be benefits of using EC2? (Select all that apply)

ELASTIC WEB-SCALE COMPUTING FLEXIBLE CLOUD HOSTING SERVICES INTEGRATED SECURE

Which of the following AWS services allows you to deploy your dynamic applications without your having to manually set up servers or storage?

Elastic Beanstalk

The AWS compute service that lets you rent virtual computers on which to run their own computer applications is known as ___________________.

Elastic Compute Cloud (EC2)

After starting EC2 instances or deploying to Elastic Beanstalk, you can leave those components running as long as you want without using AWS credit or incurring a charge.

F

The request and response objects need to be declared before we can use them within our JSP code.

F

To store a cookie on the client, add it to the request object and, to retrieve a cookie from the client, you retrieve it off of the response object.

F

The request and response objects persist as long as the user continues to send requests to the server side application.

False

True or False. The following HTML tags will create a table with 3 rows of two columns each. <table> <tr> <td> a </td> <td> b </td> </tr> <tr> <td> c </td> <td> d </td> </tr> </table>

False

With the MVC design pattern, which of the following server side separation of concerns will be generally implemented using JSPs?

Handle client-side behavior.

Which of the following statements can be used to store a value that will persist from the time it is stored until a user is no longer actively visiting a site?

HttpSession session = request.getSession(); session.setAttribute("student", student);

What does HTML stand for?

Hypertext Markup Language

Cloud computing is often divided into three levels of services - infrastructure-as-a-service (IAAS), platform-as-a-service (PAAS), and software-as-a-service (SAAS). Which of these levels of service deals primarily with the networks, servers and storage?

IAAS

Where in an HTML document is the correct place to refer to an external style sheet?

In the <head> section.

JDBC stands for __________________.

Java Database Connectivity

Capital Expenses (CAPEX) refers to the costs of acquiring new infrastructure - for example, buying servers to set up on premises. Operating Expenses (OPEX) refers to the costs of ongoing ownership and maintenance. Which of the following is a true statement related to how Cloud computing can impact CAPEX and OPEX

Moving to cloud computing generally shifts CAPEX to OPEX.

Cloud computing is often divided into three levels of services - infrastructure-as-a-service (IAAS), platform-as-a-service (PAAS), and software-as-a-service (SAAS). Which of these levels of service deals primarily adds operating systems and middleware on top of servers network and storage?

PAAS

With the MVC design pattern, which of the following server side separation of concerns will be generally implemented using Java Servlets?

Receive a request and control which components act on the request.

Which of the following are created when the Web Server receives a request to hold any data that is sent from the client?

Request Object

Which of the following are created when the Web Server receives a request to hold the results that are to be sent back to the client?

Response Object

Which of the following AWS services allows you simply to store and retrieve any amount of data at any time, from anywhere on the web?

S3

Which of the following AWS services will you use for posting and hosting your static web pages for the module assignment?

S3

Cloud computing is often divided into three levels of services - infrastructure-as-a-service (IAAS), platform-as-a-service (PAAS), and software-as-a-service (SAAS). Which of these levels of service allows you to run applications and work with data that is stored in the cloud?

SAAS

In a relational data model, ________ provides the means for accessing and manipulating data.

SQL

Which of the following Java statements can be used to retreive the data submitted by the textbox on this form as a String? <form name="guessForm" action="guess" method="get" > <label> First Name: </label> <input type="text" name="fName" value="" /><br /> <input type="submit" name="guessButton" value="Go" /> </form>

String fName = request.getParameter("fName");

Which of the following statements will retrieve an object called student that has been stored temporarily (until the response is sent) so that it can be used to create the view?

Student student = (Student) request.getAttribute("student");

Which of the following statements will allow us to access a session attribute and store it as a local variable?

Student student = session.getAttribute("student");

A servlet is capable of handling both the controller and view concerns but it is best at handling the controller concern.

T

For our purposes, Apache Tomcat serves as the Web Server component for testing our applications, locally.

T

Multiple cookies can be carried at one time by a request.

T

Platform-as-a-Service provides more than just infrastructure by adding middleware, development tools, business intelligence (BI) services, database management systems, and more.

T

The request and response objects are available to the doGet() and doPost() methods because they are passed as parameters for these methods by the Web server.

T

When setting up an EC2 instance you should select the region. A region is a geographic area that contains one or more data centers with the hardware where your instance will "live."

T

With the MVC design pattern, it is possible to include multiple JSPs to provide different view options.

T

You can think of Compute-as-a-Service (CaaS) as being the subset of Platform-as-a-Service (PaaS) that has a focus on computer processing.

T

What is the name of the organization that develops the primary web standards of HTML and CSS?

The World Wide Consortium (W3C)

Given the following code:PreparedStatement ps = connection.prepareStatement("select firstName, mi, lastName from Student where lastName = ?";ps.setString(1, "Smith");ResultSet resultSet = ps.executeQuery();System.out.println(resultSet.getString(1)); What would be the result?

The program will have a runtime error, because the cursor in resultSet does not point to a row. You must use resultSet.next() to move the cursor to the first row in the result set. Subsequently, resultSet.next() moves the cursor to the next row in the result set.

A JSP is capable of acting as both the controller and the view component of the MVC design pattern, but it is often used just to handle the view.

True

Cloud services are generally considered to have increased availability and reliability than other types of IT infrastructure.

True

We can set the initial state of a servlet using initialization parameters.

True

When setting up a servlet, we need to create a ___________ to the servlet that will be used to set up any hyperlinks or form actions so that they will send a request for the servlet.

URL mapping

Which of the following Java commands will declare and instance of a Java model class called User when included within a JSP or servlet file?

User user = new User();

When adding a servlet to an Eclipse Dynamic Web Project, where is the best place to store the servlet within the project?

a package in the src folder

What is the return value from: preparedStatement.executeUpdate("insert into T values (100, 'Smith')") ?

an int value indicating how many rows are effected from the invocation

AWS __________ consist of one or more discrete data centers, each with redundant power, networking and connectivity, housed in separate facilities.

availability zone

Which of the following is the correct CSS syntax for setting the background of the page black?

body { background-color: black; }

How do you display a border like this:The top border = 10 pixelsThe bottom border = 5 pixelsThe left border = 20 pixelsThe right border = 1pixel?

border-width:10px 1px 5px 20px;

In order from inside to the outside, what are the components of the CSS box model?

content padding border margin

Which of the following are valid default file names for the welcome file of an Eclipse Java Dynamic Web Application? Select all that applyWhich of the following are valid default file names for the welcome file of an Eclipse Java Dynamic Web Application? Select all that apply

default.jsp index.jsp index.html

What is the name of the servlet method that will execute when the following html form is received? <form name="guessForm" action="guess" method="get" > <label> First Name: </label> <input type="text" name="fName" value="" /><br /> <input type="submit" name="guessButton" value="Go" /> </form>

doGet()

What is the name of the servlet method that will execute when the following html form is received? <form name="guessForm" action="guess" method="post" > <label> First Name: </label> <input type="text" name="fName" value="" /><br /> <input type="submit" name="guessButton" value="Go" /> </form>

doPost()

When you submit a form using the HTTP _________ method, any data in the form is concatenated to the URL shown in the browser.Correct.

get

Which of the following CSS will add a background color for all <h1> elements?

h1 {background-color:#FFFFFF;}

The allocating or releasing of more IT resources that are of the same type as current resources is referred to as ___________.

horizontal scaling

After posting your web pages to your AWS S3 bucket, which of the following represents the form of the URL to the home page of your static web site?

http://s3.amazonaws.com/your.name>.mist4630.bucket/index.html

Which of the following servlet methods is the best place to include code that will retrieve servlet initialization parameters?

init()

A database URL for a MySQL database named test on host panda.armstrong.edu is ________.

jdbc:mysql://panda.armstrong.edu/test

With the MVC design pattern, which of the following server side separation of concerns will be generally implemented using plain old java objects (POJOs)?

modeling business components

When you submit a form using the HTTP _________ method, any data in the form is added to the HTTP request message but not visible in the browser.

post

If a prepared statement preparedStatement is a SQL SELECT statement, you execute the statement using _________.

preparedStatement.executeQuery();

If a prepared statement preparedStatement is a SQL Insert statement, you execute the statement using _________.

preparedStatement.executeUpdate();

Assume that you have the following statement: PreparedStatement ps = connection.prepareStatement("select firstName, mi, lastName from Student where firstName = ? and lastName = ?"; To set a value John to the first parameter, use _________.

ps.setString(1, "John");

Which of the following is a possible value to using the CSS position attribute to style an HTML element? (select all that apply)

relative, absolute, fixed

Which of the following statements will store an object called student temporarily so that it can be passed to and used by a view component? The object will no longer be available once the response is sent by the server.

request.setAttribute("student", student);

Assume that a database contains several records for the last name of Smith. Analyze the following code:PreparedStatement ps = connection.prepareStatement("select firstName, mi, lastName from Student where lastName = ?";ps.setString(1, "Smith");ResultSet resultSet = ps.executeQuery();resultSet.next();System.out.println(resultSet.getString(1));

resultSet.getString(1) returns the firstName field in the result set.

Which of the following methods will move the cursor for the ResultSet rs one record forward?

rs.next()

Which of the following characteristics of Cloud computing refers to the ability to increase and decrease the amount of Cloud resources that are used as needed?

scalability

Which of the following state management techniques is useful for storing small amounts of data on the client side so that it can be retreived by the server during a later session?

storing data as a cookie

Which of the following state management techniques is useful for passing data between components only during one request/response event?

storing data as request attributes

Which of the following state management techniques is useful for keeping data persistent as long as a user keeps a session open to our application?

storing data as session attributes

Which of the following state management techniques is best for storing large amounts of data that will persist for a relatively long timeframe?

storing data in a database

Assume that you move the cursor of a ResultSet rs forward one record, but there are no more records there. What would be the result?

the rs.next() method would return a value of false

Which of the following statements will retrieve a servlet initialization paramater and store it as a serlvet instance variable?

this.title = config.getInitParameter("Title");


संबंधित स्टडी सेट्स

NSCA CSCS Program Design CH. 17-22

View Set

Exam 4: Social Cognition and Attitudes

View Set

Microsoft Certified Azure Fundamentals Exam (AZ-900)

View Set

BUS111 Chapter 5 Electronic Messages and Memos

View Set