SAS3 - Quiz1-Final

Descrição

OT for sas3
Xtine Ramos
Quiz por Xtine Ramos, atualizado more than 1 year ago
Xtine Ramos
Criado por Xtine Ramos quase 8 anos atrás
106
0

Resumo de Recurso

Questão 1

Questão
Which of the these ORDER BY clauses will display the results ordered by decreasing Salary and then by increasing Name?
Responda
  • order by Salary desc, Name
  • order by descending Salary, Name
  • order by desc Salary, Name
  • order by desc Salary, ascending Name

Questão 2

Questão
You cannot use SAS formats and labels to customize PROC SQL output
Responda
  • True
  • False

Questão 3

Questão
What column modifier is used to alter the appearance of the values in that column?
Responda
  • FORMAT=
  • LABEL=
  • LABELX=
  • INFORMAT=

Questão 4

Questão
Which of the ff. is not true regarding PROC SQL?
Responda
  • PROC SQL is terminated with a RUN statement
  • Each statement is processed individually.
  • The PROC SQL statement does not need to be repeated with each query.
  • No PROC PRINT step is needed to view query results.

Questão 5

Questão
To eliminate duplicate rows in query results, which keyword should be used?
Responda
  • DISTINCT
  • VALIDATE
  • SINGLE
  • NODUP

Questão 6

Questão
The ALL keyword is true only if the comparison is true for all returned values
Responda
  • True
  • False

Questão 7

Questão
SQL uses set operators to combine tables horizontally
Responda
  • True
  • False

Questão 8

Questão
SQL uses joins to combine tables vertically
Responda
  • True
  • False

Questão 9

Questão
Full joins include all rows from both tables, even if there are no matching rows in either table
Responda
  • True
  • False

Questão 10

Questão
To familiarize yourself with the columns in a table, which statement should be used:
Responda
  • DESCRIBE
  • PROPERTY
  • CONTENT
  • FEATURES

Questão 11

Questão
Inner joins enables a maximum of 256 tables to be joined at the same time.
Responda
  • True
  • False

Questão 12

Questão
SQL subqueries can return calues to be used in an outer query's FROM clause
Responda
  • True
  • False

Questão 13

Questão
Which keyword is used to check the SELECT statement syntax?
Responda
  • VALIDATE
  • NOERROR
  • CHECK
  • DETERMINE

Questão 14

Questão
A type of joins that returns only the matching rows
Responda
  • INNER JOIN
  • OUTER JOIN
  • LEFT JOIN
  • RIGHT JOIN

Questão 15

Questão
A subquery can return several rows of data but must only return values from a single column
Responda
  • True
  • False

Questão 16

Questão
Given the following SELECT statement, describe the incorrect syntax********************************************************SELECT a,b,c FROM tblx ORDER BY b WHERE tblx.a > 10;
Responda
  • arrangement of clauses
  • missing comma
  • missing semi-colon
  • none of the above

Questão 17

Questão
It is created by placing a query expression in a FROM clause where a table name would normally be used
Responda
  • IN LINE VIEW
  • subquery
  • virtual table
  • nested query

Questão 18

Questão
Correlated subqueries can be evaluated independently
Responda
  • True
  • False

Questão 19

Questão
If a summary function specifies only one column name, the statistic is calculated down the columb (across rows)
Responda
  • True
  • False

Questão 20

Questão
In a correlated subquery, the inner query provides information so that the subquery resolves successfully
Responda
  • True
  • False

Questão 21

Questão
A condition that will evaluate to true if the subquery returns no data
Responda
  • NOT EXIST
  • NOT IN
  • IN
  • EXIST

Questão 22

Questão
When a SELECT list contains both a column created by a summary function and a column that is not summarized, by default, the summarized data is appended to each row of the original data table (remerged) in order to produce the output.
Responda
  • True
  • False

Questão 23

Questão
The COALESCE function returns the value of the first missing argument
Responda
  • True
  • False

Questão 24

Questão
If the summary function specifies more than one column, the statistic is calculated for the row (using values from the listed columns)
Responda
  • True
  • False

Questão 25

Questão
The COUNT function returns the number of columns returned by a query
Responda
  • True
  • False

Questão 26

Questão
If you specify the ANY keyword before a subquery, the comparison is true if it is false for any of the values that the subquery returns
Responda
  • True
  • False

Questão 27

Questão
Views often save space, because a view is usually quite small compared with the data that it accesses
Responda
  • True
  • False

Questão 28

Questão
To search for actual percent or underscore characters in your text using the LIKE operator, you must use an:
Responda
  • ESCAPE CLAISE
  • FREE CLAUSE
  • LIKE CLAUSE
  • EXIT CLAUSE

Questão 29

Questão
SQL subqueries can return values to be used in an outer query's FROM clause
Responda
  • True
  • False

Questão 30

Questão
What column modifier is used to alter the appearance of the values in that column?
Responda
  • FORMAT=
  • LABELX=
  • LABEL=
  • INFORMAT=

Questão 31

Questão
Find the incorrect syntax on the ff. select statement:**********************proc sql; SELECT Employee_ID, Employee_Gender, Salary, from orion.Employee_Payroll where Employee_Gender='F' order by Salary desc; quit;
Responda
  • exceeds use of comma
  • missing semi-colon
  • missing quote
  • missing comma

Questão 32

Questão
Which of the following is not a feature of SELECT statement
Responda
  • queries to two tables
  • specifies an order for the data
  • selects data that meets certain conditions
  • formats the data

Questão 33

Questão
How many tables can be combines using a single inner join?
Responda
  • 256
  • 10
  • 2
  • 5

Questão 34

Questão
The HAVING clause is processed before the GROUP BY clause and determines which groups will be displayed
Responda
  • True
  • False

Questão 35

Questão
Which of the follwing statements is true when processing an inner join in PROC SQL
Responda
  • Builds the cartesian product of all tables listed and applies the WHERE clause to limit the rows returned
  • applies the WHERE clause to limit the rows returned then build the Cartesian product of all the tables listed and
  • builds the Cartesian product of all the tables listed and display the results
  • no need to build the Cartesian product of all the tables listed and applies the WHERE clause to limit the rows returned

Questão 36

Questão
Outer joins can only be performed on two tables at a time
Responda
  • True
  • False

Questão 37

Questão
Which of the following is not true regarding subqueries
Responda
  • Can return single row with multiple columns
  • return values to be used in the outer query’s WHERE or HAVING clause
  • can return single or multiple values
  • must return only a single column.

Questão 38

Questão
A query corresponds to a single SELECT statement within a DATA step
Responda
  • True
  • False

Questão 39

Questão
The IN CLAUSE specifies the criteria in outer joins
Responda
  • True
  • False

Questão 40

Questão
To create and populate a table with the rows from an SQL query, which of the following statement should be used:
Responda
  • CREATE TABLE
  • CREATE QUERY
  • CREATE VIEW
  • CREATE POPULATE

Questão 41

Questão
The EQUAL operator does not accept any expression that resolves to more than a single value
Responda
  • True
  • False

Questão 42

Questão
The WHERE clause is processed before a GROUP BY clause and determines which individual rows are available for grouping
Responda
  • True
  • False

Questão 43

Questão
Which of the following WHERE clauses correctly selects rows with a Job_Code value that begins with a underscore?
Responda
  • where Job_Code like '/_%' escape '/'
  • where Job_Code contains '_%'
  • where Job_Code like '%_' exit '/_'
  • where Job_Code like '_%'

Questão 44

Questão
Which of these DATA step statements is used to combine tables horizontally?
Responda
  • MERGE
  • SET
  • JOINS
  • APPEND

Questão 45

Questão
In an ORDER BY clause, order the query results by specifying the following except for:
Responda
  • a combination of any of the above, with individual items separated by semi-colon
  • an expression
  • a column name or a number representing the position of an item in the SELECT list
  • any column name from any table in the FROM clause, even if the column is not in the SELECT list

Questão 46

Questão
Correlated subqueries use very few resources and are inexpensive to execute
Responda
  • True
  • False

Questão 47

Questão
When using an askterisk for the select list, you can specify the FEEDBACK option to write the expanded SELECT statement to the SAS log
Responda
  • True
  • False

Questão 48

Questão
A subquery can return severa rows of data but must only return values from a single column
Responda
  • True
  • False

Questão 49

Questão
Left joins include all rows from the second table, even if there are no matching rows in the first table
Responda
  • True
  • False

Questão 50

Questão
What column modifier is used to alter the appearance of the values in that column?
Responda
  • FORMAT=
  • LABEL=
  • LABELX=
  • INFORMAT=

Semelhante

CRACKMAN_70
Terry Yan
CRACKMAN_70
静雯 周
ECO 351 - Business Statistics II - SAS Terminology
LemonKing
COTA VS OTR
Syd Bauer
Congruency Theorems
Alyxandria Hodgin
Stats 124 Final Review
James Blair
Selena gomez doğru yanlış testi
turunculai
Chapter 12: Combining SAS Data Sets
James Blair
Old Testament
thomaswiggs
Old Testament
jeffersonja
Client Factors
Pratik P