Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Questions
.
(1)
True/False Fill in the blank 1. Using MySQLi in PHP, you have retrieved the results of a query to a
MySQL database
Essay Matching and stored the rows in $result. $result->fetch_assoc() returns what?:
Preview
The associated query string
Hotspot
An error because fetch_assoc is not a function.
More A Boolean indicating whether there are any rows
The next row from the result set each time it is called.
Popular Settings
(2)
Popular Themes
2. Assuming no references or constraints exist that would prevent the
delete, which
statement clears the data from table Student while leaving the table
and schema intact?
https://www.proprofs.com/quiz-school/manage/?id=2504604
DELETE Student 1/11
7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator
Server
Questions
Database
Essay Matching 4. What is the maximum number of objects you can have in a Microsoft
Access 2016
Preview
Hotspot database?:
65,535
More
32,768
1,000
Popular Settings
255
Popular Themes
(5)
5. The CPU usage on SQL Server is consistently above 90%. What could
be the root
cause?:
Preview
Hotspot
More
Popular Settings
Popular Themes
It inserts a row with a newly generated primary key, 'Acme' as Name, and NULL as
Company.
It inserts a row with a newly generated primary key, 'Tea' as Name, and 'Acme' as
Company.
It produces a syntax error because all INSERT statements must have a VALUES
clause
https://www.proprofs.com/quiz-school/manage/?id=2504604 3/11
7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator
Create
(7)
Settings Send
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
7. InHelp
which of these scenarios would an INSERT always fail?:
Done
(https://quiz.proprofs.com/home)
Search 100000+ questions You did not provide a value for the primary key in your query
Multiple Choice Checkbox You speci ed ve columns in your query but only four values to insert.
Preview
Rows containing NULL values will automatically be excluded from the results
Hotspot
DISTINCT applies to all columns provided in the SELECT statement
More DISTINCT sometimes can return duplicate rows depending on the data.
Only column names and not calculations are allowed in a DISTINCT statement
Popular Settings
(9)
Popular Themes
9. What does the following query do in MySQL?
Preview
Hotspot
(11)
More
11. You are tasked with showing department names and total sales by
departments in a
Popular Settings store for those departments that sold more than $10,000 during the
month of May 2017.
Popular Themes Which clause in the query to write would be best to ensure only those
departments that
sold more than $10,000 would be considered?:
GROUP BY
HAVING
WHERE
WHEN
https://www.proprofs.com/quiz-school/manage/?id=2504604 5/11
7/23/2019 (12) Create Online Scored Quizzes and Tests - ProProfs Quiz Creator
Create Settings
12. What does Send
the following statement do?:
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
Done Help
(https://quiz.proprofs.com/home)
Search 100000+ questions
Preview
13. Which of the following is true of the two queries below?:
Hotspot
More
Popular Settings
Both return the same rows but Query II may return duplicates
(14)
14. What is best way to describe the difference between the following two
MySQLi
https://www.proprofs.com/quiz-school/manage/?id=2504604 6/11
7/23/2019 statements?
Create Online Scored Quizzes and Tests - ProProfs Quiz Creator
Create I) $connSettings
= Send
Reportsmysqli_connect('localhost','username','password','database');
(/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
Done II)Help
$conn = new
(https://quiz.proprofs.com/home)
Search 100000+ questions mysqli('localhost','username','password','database');
I is obsolete and only II should be used.
Questions
I is procedural and II is object-oriented.
(15)
Essay Matching
15. What is a difference between a connection string for Microsoft Access
Preview
Hotspot and a
connection string for MySQL?:
More The Access connection requires a user name and password. MySQL does not.
The Access connection requires a Persist Security Info value. MySQL does not.
Popular Settings The Access connection does not need the provider or the driver. MySQL requires
the
driver.
Popular Themes
The Access connection will require a path to an MDB le. MySQL requires a
server name.
(16)
16. Which of the following is true of SELECT * FROM MyTable LIMIT 1 and
SELECT
DISTINCT * FROM MyTable?:
https://www.proprofs.com/quiz-school/manage/?id=2504604 7/11
7/23/2019 Create The
Onlinesecond query and
Scored Quizzes mayTests
return manyQuiz
- ProProfs rows.
Creator
Questions
(17)
17. Several different applications use the same SQL stored procedure to
Multiple Choice Checkbox
return data and
display it to the user in some manner. The stored procedure takes a
True/False Fill in the blank
start date and end
date as the only inputs. Which of the following is a drawback to using
Essay Matching
an ORDER BY clause
Preview
in the stored procedure itself?:
Hotspot
It is slow if it is used on a nullable column.
More It prevents the SELECT query from taking advantage of any indexes.
It forces statistics to be rebuilt on the underlying tables each time the stored
procedure is
Popular Settings
ran.
(18)
A programming language
A le system
SQL Server
Questions
Microsoft Access
Multiple Choice Checkbox MongoDB
Essay Matching 20. Which of the following does NOT exist in MySQL?:
Preview
Temporary tables
Hotspot
Views
More Common Table Expressions
Stored Procedures
Popular Settings
(21)
Popular Themes
21. Which of the following best describes SQL Server?
https://www.proprofs.com/quiz-school/manage/?id=2504604
(22) 9/11
7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator
22. What is the maximum number of foreign keys a table in SQL Server can
Create have?: Settings Send
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
1
Done Help
(https://quiz.proprofs.com/home)
2
Search 100000+ questions
32
Questions There is no limit beyond memory and/or disk space
True/False Fill in the blank 23. Which of the following is NOT true of a primary key for a table?:
It cannot be NULL
Essay Matching
It can consist of multiple columns
Preview
Hotspot It must contain a unique value for each row of data.
(24)
Popular Settings
24. In an ERD, suppose there is an Employee entity there is a lot of
Popular Themes data/metadata
concerning the Employee. Which of the following would make more
sense as an attribute
than as a separate entity?:
ID
Address
Department
WorkHistory
https://www.proprofs.com/quiz-school/manage/?id=2504604 10/11
7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator
Create
(25)
Settings Send
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
25. AHelp
MAX statement requires which of the following clauses?:
Done
(https://quiz.proprofs.com/home)
Search 100000+ questions GROUP BY
HAVING
Questions
WHERE
Multiple Choice Checkbox It could be done with just a SELECT and needs nothing special.
Preview
Hotspot
More
Popular Settings
Popular Themes
https://www.proprofs.com/quiz-school/manage/?id=2504604 11/11