Sei sulla pagina 1di 11

7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator

Create Settings Send


Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
Done Help   
  Database Quiz
(https://quiz.proprofs.com/home)
Search 100000+ questions

Questions 
.

    Multiple Choice     Checkbox

(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?

DROP TABLE Student

DELETE TABLE Student

DELETE FROM Student

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

Create Settings Send


(3)
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
Done 3. Which
Help of the following is NOT needed for PHP to connect to MySQL?:
  (https://quiz.proprofs.com/home)
Search 100000+ questions
Provider

Server
Questions 
Database

    Multiple Choice     Checkbox Username

    True/False     Fill in the blank


(4)

    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?:

A table is missing an index according to the Optimizer

The disk drive containing the MDF le is running out of space.

An index seek is running on a big table


https://www.proprofs.com/quiz-school/manage/?id=2504604 2/11
7/23/2019 Create The
Onlinetables
Scoredqueried have
Quizzes and too
Tests many columns
- ProProfs Quiz Creator

Create Settings Send


Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
(6)
Done Help
  (https://quiz.proprofs.com/home)
Search 100000+ questions 6. Suppose a SQL Server table Product has ID as the rst column, which
is the primary
Questions  key with IDENTITY enabled, Name as the second column and Company
as the third
    Multiple Choice     Checkbox column. Some, but not all, of the values currently in the table are given
 

    True/False     Fill in the blank

    Essay     Matching

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 produces a syntax error because ID is missing in the SELECT.

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

You attempted to insert a NULL value into an indexed column.


Questions 
You attempted to insert a varchar(5) value into a varchar(10) column

    Multiple Choice     Checkbox You speci ed ve columns in your query but only four values to insert.

    True/False     Fill in the blank


(8)

    Essay     Matching


8. Which of the following is true about DISTINCT?:

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?
 

It returns the top 40 rows.

It returns the top 30 rows

It returns rows 41-70.

https://www.proprofs.com/quiz-school/manage/?id=2504604 It returns rows 31-70. 4/11


7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator

Create Settings Send


(10) (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports)
Reports Preview
Done 10. Help of the following scenarios could cause an UPDATE statement to
Which
  (https://quiz.proprofs.com/home)
Search 100000+ questions fail, either by
erroring out, by updating too much or too little, or by creating
Questions  inconsistent data?:
Updating a primary key that has a foreign key constraint, when there is no
    Multiple Choice     Checkbox cascade update
in place.
    True/False     Fill in the blank Updating based on a WHERE clause involving a non-key column

Updating a varchar(10) column with a varchar(15) value.


    Essay     Matching
All of the above.

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

It returns no rows from the table.


Questions 
It returns all rows from the table
    Multiple Choice     Checkbox It throws an error

It runs inde nitely until killed by the user or another process


    True/False     Fill in the blank

    Essay     Matching (13)

Preview
13. Which of the following is true of the two queries below?:
    Hotspot
 

More

Popular Settings 

Both return the same number of records


Popular Themes 
Both return the same rows but Query I may return duplicates.

Both return the same rows but Query II may return duplicates

Query I may return rows that Query II will not return.

(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.

I is invalid and only II should be used.


    Multiple Choice     Checkbox
II is invalid and only I can be used.

    True/False     Fill in the blank

(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

Create The Settings


results of the rstSend
query depend on how MyTable is initially sorted
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
Both will return at least one row or both will return 0 rows.
Done Help
  All of the above are true.
(https://quiz.proprofs.com/home)
Search 100000+ questions

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.

It may incur extra processing time that is of no bene t to some users.


Popular Themes 

(18)

18. MySQL is which of the following?:

A database management system

A programming language

A le system

https://www.proprofs.com/quiz-school/manage/?id=2504604 A framework for PHP 8/11


7/23/2019 Create Online Scored Quizzes and Tests - ProProfs Quiz Creator

Create Settings Send


(19)
Reports (/quiz-school/report.php?title=database-quiz_17ht&show=score-reports) Preview
Done 19. Help of the following systems uses PL/SQL?:
Which
  (https://quiz.proprofs.com/home)
Search 100000+ questions
Oracle

SQL Server
Questions 
Microsoft Access
    Multiple Choice     Checkbox MongoDB

    True/False     Fill in the blank


(20)

    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?

It is a language invented by Microsoft for querying databases

It is a Database Management System invented by Microsoft

It is hardware that can store databases on it.

It supports T-SQL, PL/SQL, and MySQL

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

    Multiple Choice     Checkbox


(23)

    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.

It must be generated by the database manager according to a de ned sequence


More

(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.

    True/False     Fill in the blank

    Essay     Matching

Preview
    Hotspot

More

Popular Settings 

Popular Themes 

https://www.proprofs.com/quiz-school/manage/?id=2504604 11/11

Potrebbero piacerti anche