You are on page 1of 9

Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.

com/143689516/mta-98-364-test-2-flash-cards/

MTA 98-364 Test 2


5.0 1 reseña Dejar una valoración

ESTUDIAR

Fichas

Aprender

Escribir

Ortografía

Probar

JUGAR

Combinar

Gravedad

Autor

jetboy1

Términos de la unidad (20)

1. Which attribute b) data type


specifies the type of
data that an object Section Reference: Defining Data
can hold and specifies Types
how many bytes it will Explanation: A data type is an attribute

1 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

take up? that specifies the type of data that an


a) specifier object can hold. It also specifies how
b) data type many bytes each data type takes up.
c) validator For example, several data types define
d) data specific only whole numbers, which are good
for counting or for identification. Other
data types allow decimal numbers and
come in handy when storing values
dealing with money. Other data types
are designed to store strings or
multiple characters so that you can
define labels, descriptions, and
comments. Lastly, you have other
miscellaneous data types that can
store dates, times, and binary numbers
consisting of 0s and 1s or can be used
to store digital images.

2. What common data b) integer


type you would be
used to count Section Reference: Using Built-in Data
objects? Types
a) money Explanation: The int numeric data type
b) integer is used to store mathematical
c) float computations and is used when you do
d) double float not require a decimal point output. An
example of an integer would be: 2 or
-2

3. What common data c) float


type is used to store
decimal numbers such Section Reference: Using Built-in Data
as 3.14 and 7.07? Types
a) money Explanation: A float numeric data type
b) integer is commonly used in the scientific
c) float community and is considered an

2 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

d) varchar approximate-number data type. This


means that not all values within the
data type range will be represented
exactly. When considering using this
numeric data type, note that the float
data type ranges are different. For
storage of 4 bytes, you would use the
range of 1-24, as in float(24), and for 8
bytes, you would use the range of
25-53, as in float(53).

4. Which data type d) varchar


should you use to
store text based on Section Reference: Using Built-in Data
English? Types
a) text Explanation: A varchar character string
b) int data type is commonly used in
c) float databases in which you are supporting
d) varchar English attributes. If you are
supporting multiple languages, use the
nvarchar data type instead because
this will help minimize the issues that
come with character conversion.

5. How many bytes c) 4 byte


does the int data type
take up? Section Reference: Using Built-in Data
a) 1 byte Types
b) 2 byte Explanation: The int data type holds
c) 4 byte integer data from -2^31(-2,147,483,648)
d) 8 byte to 2^31-1(2,147,483,647). It takes 4 bytes
of data.

6. How many bytes d) 8 byte


does the money data
type take up? Section Reference: Using Built-in Data

3 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

a) 1 byte Types
b) 2 byte Explanation: The money data type
c) 4 byte holds currency values from
d) 8 byte -922,337,203,685,477.508 to
922,337,203,685,477.5807. It takes 8
bytes of data.

7. What type of a) implicit


conversion occurs
without specifying the Section Reference: Understanding
actual callout Implicit Conversions
function? Explanation: SQL Server supports
a) implicit implicit conversions, which can occur
b) explicit without specifying the actual callout
c) casting function (cast or convert). This means
d) autocasting that if you are doing calculations with
multiple data types, implicit conversion
will occur automatically.

8. How many bytes a) 1 byte


does a single
character take up if it Section Reference: Using Regular
is a varchar that Character Strings
supports English and Explanation: A regular character uses 1
most European byte of storage for each character,
languages? which allows you to define one of 256
a) 1 byte (8 bits are in a byte and 2^8=256)
b) 2 bytes possible characters that accommodate
c) 4 bytes English and some European
d) 8 bytes languages.

9. What kind of c) Unicode


character takes up two
bytes of storage and Explanation: A Unicode character uses
can include almost 2 bytes of storage per character so
any language that you can represent one of 65,536
including Chinese, (16 bits are in a 2 bytes and

4 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

Japanese, and Arabic? 2^16=65,536 characters). The additional


a) standard character allows it to store characters
b) ANSI from just about any language,
c) Unicode including Chinese, Japanese, Arabic,
d) Duocode and so on.

10. What data type a) nvarchar


should you use to
support Japanese or Section Reference: Understanding
Arabic text? Unicode Character Strings
a) nvarchar Explanation: The Unicode character
b) char strings nchar and nvarchar can be
c) Unicode either fixed or variable like their
d) varchar regular character strings. They use the
Unicode UCS-2 character set.

11. Which naming a) PascalCase


conversion would
capitalize the first Section Reference: Creating and Using
character of each Tables
word with no spaces? Explanation: It really doesn't make a
a) PascalCase difference how you use upper- and
b) camelCase lowercase, as long as you are
c) CapCase consistent. Two common naming
d) FirstCase conventions are PascalCase and
camelCase. Examples of PascalCase
include such names as OrderDetails or
CustomerAddresses.

12. What is a virtual b) view


table consisting of
different columns from Section Reference: Creating Views
one or more tables? Explanation: A view is simply a virtual
a) index table consisting of different columns
b) view from one or more tables. Unlike a
c) vtable table, a view is stored in the database
d) vlookup as a query object; therefore, a view is

5 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

an object that obtains its data from one


or more tables.

13. What are previously d) stored procedures


written SQL
statements that have Section Reference: Creating Stored
been stored within a Procedures
database? Explanation: A stored procedure is a
a) data statements previously written SQL statement that
b) views has been "stored" or saved into the
c) DDL statements database. Creating a stored procedure
d) stored procedures will save you time when running the
same query over and over again; you
can then execute the stored
procedure from within the database's
command environment.

14. What command is d) exec


used to execute a
stored procedure? Section Reference: Creating Stored
a) go Procedures
b) use Explanation: An example of executing
c) start a stored procedure is as follows:
d) exec
exec usp_displayallusers

The name of the stored procedure is


usp_displayallusers, and exec tells SQL
Server to execute the code in the
usp_displayallusers stored procedure.

15. What is a type of c) SQL injection


attack in which
malicious code is Section Reference: Understanding SQL
inserted into strings Injections

6 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

that are passed to the Explanation: A SQL injection is an


SQL server instance? attack in which malicious code is
a) SQL infection inserted into strings that are later
b) SQL takeover passed to instances of SQL Server
c) SQL injection waiting for parsing and execution. Any
d) SQL force procedure that constructs SQL
statements should be reviewed
continually for injection vulnerabilities,
because SQL Server will execute all
syntactically valid queries from any
source.

16. What is the set of d) collation


rules that determine
how data is sorted and Section Reference: Using Built-in Data
compared? Types
a) sort rule Explanation: Collation refers to a set of
b) filter rules that determine how data is sorted
c) constraint and compared. By default, SQL Server
d) collation has predefined collation precedence.
If you want to override how data is
sorted, you must use a collation
clause.

17. What type of data c) Boolean


type would you use to
store true/false or Section Reference: Using Build-in Data
yes/no answers? Types
a) int Explanation: Boolean is also known as
b) char a bit data type. If you are storing 8 or
c) Boolean less bit columns in a table, the columns
d) float are then stored as 1 byte; if you are
storing 9 to 16 bits, the columns are
stored as 2 bytes, and so forth. The
Boolean data type converts true and
false string values to bit values, with
true converted to 1 and false
converted to 0.

7 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

18. A char string can Answer: 8,000


be up to _______
characters long. Explanation: For the data set char, it is
identified as char [(n)] and is a fixed-
length, non-Unicode character (in
other words, regular character) and
has a length of n bytes. The value of n
must be between 1 and 8,000 bytes.
The other non-Unicode data type,
varchar[(n|max)], is a variable-length
data set, which can consist of 1 to
8,000 characters.

19. What does Answer: A character string up to 25


VARCHAR(25) characters long
represent?
Section Reference: Using Regular
Character Strings
Explanation: When you use a VAR
element, SQL Server preserves space
in the row it resides in based on the
column's defined size and not on the
actual number of characters found in
the character string itself, plus an extra
2 bytes of data are provided for offset
data. For example, if you want to
specify that a strong supports only a
maximum of 25 characters, you would
use VARCHAR(25).

20. What two Answer: Cast and Convert.


commands will
perform implicit Section Reference: Understanding
conversion? Implicit Conversions
Cast and convert play an integral
partnership with any data type function

8 de 9 15/01/21 20:23
Fichas de aprendizaje MTA 98-364 Test 2 | Quizlet https://quizlet.com/143689516/mta-98-364-test-2-flash-cards/

as they convert an expression of one


data type to another. convert was the
old style of converting, with cast being
used in the same manner.

LA UNIDAD SUELE GUARDARSE EN UNA CARPETA CON ESTAS


OTRAS UNIDADES…

MTA 98-364 Test 3 MTA 98-364 Test 4

20 términos 20 términos

jetboy1 jetboy1

MTA 98-364 Test 5 MTA 98-364 Test 1

20 términos 20 términos

jetboy1 jetboy1

1/3

9 de 9 15/01/21 20:23

You might also like