Kyle Peterson
Quiz por , criado more than 1 year ago

CIS 440 Quiz 2 of Fall 2020 offered by Minnesota State University, Makato.

98
0
0
Kyle Peterson
Criado por Kyle Peterson mais de 3 anos atrás
Fechar

MNSU CIS 440 Fall 2020 Quiz 2

Questão 1 de 25

1

Microsoft SQL Server uses:

Selecione uma das seguintes:

  • T-SQL

  • PL/SQL

  • DDL

  • DML

Explicação

Questão 2 de 25

1

The COUNT function is designed to tally the number of non-null "values" of an attribute and is often used in conjunction with the DISTINCT clause.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 3 de 25

1

With the exception of the database creation process, most RDBMS vendors use SQL that deviates little from the ANSI standard SQL.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 4 de 25

1

Which clause is specifically used with aggregate functions?

Selecione uma das seguintes:

  • WHERE

  • DISTINCT

  • HAVING

  • ORDER BY

Explicação

Questão 5 de 25

1

The underscore wildcard is used just like % but instead of matching multiple characters, the underscore matches just a single character.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 6 de 25

1

Which SQL statement is used to return only different values?

Selecione uma das seguintes:

  • SELECT UNIQUE

  • SELECT DIFFERENT

  • SELECT DISTINCT

  • All of the above

Explicação

Questão 7 de 25

1

Which SQL keyword is used to sort the result-set?

Selecione uma das seguintes:

  • SORT

  • SORT BY

  • ORDER

  • ORDER BY

Explicação

Questão 8 de 25

1

Which one of the following is NOT part of DDL?

Selecione uma das seguintes:

  • SELECT INTO

  • CREATE

  • ALTER

  • TRUNCATE

Explicação

Questão 9 de 25

1

CAST is unique to T-SQL.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 10 de 25

1

Which one of the following JOIN includes all rows from the second table and matching rows from the first table?

Selecione uma das seguintes:

  • Inner Join

  • Left Outer Join

  • Right Outer Join

  • Full Outer Join

Explicação

Questão 11 de 25

1

What is the most common type of join?

Selecione uma das seguintes:

  • Inner Join

  • Left Outer Join

  • Right Outer Join

  • Full Outer Join

  • Self Join

Explicação

Questão 12 de 25

1

Which SQL statement is used to create a table in a database?

Selecione uma das seguintes:

  • CREATE TABLE

  • CREATE DB

  • CREATE DATABASE TABLE

  • CREATE DATABASE TAB

Explicação

Questão 13 de 25

1

Which SQL statements uses the keyword SET?

Selecione uma das seguintes:

  • SELECT

  • UPDATE

  • MODIFY

  • DELETE

Explicação

Questão 14 de 25

1

A table may be joined to itself.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 15 de 25

1

The FULL OUTER JOIN syntax is not supported by Microsoft Access.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 16 de 25

1

A set of SQL statements (one or more) typically grouped together to perform a specific routine is called ____________.

Selecione uma das seguintes:

  • Views

  • Cursors

  • Stored Procedures

  • Indexes

Explicação

Questão 17 de 25

1

According to the rules of precedence, which of the following computations should be completed first?

Selecione uma das seguintes:

  • performing additions and subtractions

  • performing multiplications and divisions

  • performing operations within parentheses

  • performing power operations

Explicação

Questão 18 de 25

1

The special operator used to check whether an attribute is within a range of values is ___________.

Selecione uma das seguintes:

  • BETWEEN

  • LIKE

  • IN

  • NULL

Explicação

Questão 19 de 25

1

To list the contents of a table, you must use the DISPLAY command.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 20 de 25

1

The SQL data manipulation command HAVING:

Selecione uma das seguintes:

  • restricts the selection of rows based on a conditional expression.

  • restricts the selection of grouped rows based on a condition.

  • modifies an attribute's value in one or more table's rows.

  • groups the selected rows based on one or more attributes.

Explicação

Questão 21 de 25

1

You can call a stored procedure from within itself.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 22 de 25

1

A temporary stored procedure with global scope has the following prefix:

Selecione uma das seguintes:

  • #

  • ##

  • !

  • EXECUTE_AS

Explicação

Questão 23 de 25

1

Which one of the following is used to prevent SQL injection attacks?

Selecione uma das seguintes:

  • Stored Procedures

  • Triggers

  • User-Defined Functions

  • Views

Explicação

Questão 24 de 25

1

-- Using a variable with CONCAT
DECLARE @a VARCHAR(30) = 'My birthday is on '
DECLARE @b DATE = '1980/08/25'
SELECT CONCAT (@a, @b) AS RESULT;

The above query will yield an error.

Selecione uma das opções:

  • VERDADEIRO
  • FALSO

Explicação

Questão 25 de 25

1

Which type of JOIN reflects is the following statement:

All rows from the left side of the join, even if there is not a match, and all rows from the right side, even if there is not a match, show up in the results.

Selecione uma das seguintes:

  • INNER JOIN

  • LEFT OUTER JOIN

  • FULL OUTER JOIN

  • RIGHT OUTER JOIN

  • MERGE

Explicação