Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 50 pages
Exam (elaborations)

CIT 111 Final Exam Prep Questions And 100% Verified Answers (A+)

Document preview thumbnail
Preview 4 out of 50 pages

CIT 111 Final Exam Prep Questions And 100% Verified Answers (A+)...

Content preview

CIT 111 Final Exam Prep Questions And 100%
Verified Answers (A+)


You can use the AS keyword with the CREATE TABLE statement to create a copy of a
table from a ____________________ statement. - ANSWER SELECT



When you code a column list in an INSERT statement, you can omit columns with default
values and columns that allow ____________________________ values. - ANSWER NULL



If you code a column list in an INSERT statement that includes a column that's defined
with a default value, you can insert the default value for that column by coding the
____________________ keyword in the VALUES clause of the INSERT statement. -
ANSWER DEFAULT



By default, MySQL automatically commits changes to the database immediately after
each INSERT, UPDATE, and ______________ statement that you issue - ANSWER DELETE



Which uses the least amount of storage?



'example' stored in a column of type VARCHAR2(20)

'exam' stored in a column of type VARCHAR2(20)

'ex' stored in a column of type VARCHAR2(20)

they all use the same amount of storage - ANSWER 'ex' stored in a column of type
VARCHAR2(20)



The _____________________ function is an ANSI-standard function that you can use to
perform an explicit conversion. - ANSWER CAST



In MySQL 5.6 the CHAR and VARCHAR2 data types use which character set?

,A) Latin1

B) UTF-8

C) ASCII

D) ISO 8859

E) UTF-16 - ANSWER B) UTF-8



If you want to store a decimal number you must use the FLOAT data type.

True

False - ANSWER False



The best data type for a standard zip code (e.g. 83440) is:

A) INT

B) NUMBER(5, 0)

C) CHAR(5)

D) CHAR(25)

E) VARCHAR(5)

F) VARCHAR(25 - ANSWER C) CHAR(5)



This expression returns what:



SUBSTRING('Hello World', 5)

A) 'o World'

B) 'Hello'

C) Error Msg: Too few arguments

D) 'World'

E) NULL - ANSWER A) 'o World' *start at position 5*

,The EXTRACT function can be used to parse a date?

True

False - ANSWER True



Which of the following functions are useful when dealing with nulls? (Select all that
apply)

A) IFNULL

B) NVL

C) COALESCE

D) ISNULL

E) NVL2 - ANSWER A) IFNULL

C) COALESCE



The default date format for MySQL is:

A) '2014-08-19'

B) '8/19/14'

C) 'August 19, 2014'

D) '19-AUG-14' - ANSWER A) '2014-08-19'



DECIMAL(5,2) can hold which of the following values:

A) 23500.78

B) -23500.78

C) 50.78

D) 50.783

E) 730.00

F) -730.00 - ANSWER C) 50.78

E) 730.00

, F) -730.00



The DATE data type can store time as well as date information?

True

False - ANSWER False



Which uses the least amount of storage?



'example' stored in a column of type CHAR2(20)

'exam' stored in a column of type CHAR2(20)

'ex' stored in a column of type CHAR2(20)

they all use the same amount of storage - ANSWER they all use the same amount of
storage



Numbers that include a decimal point are knows as ____________________. - ANSWER real
numbers



When searching for floating point numbers such as the DOUBLE and FLOAT types, you'll
want to search for ______________ values. - ANSWER approximate



If an error occurs, each of the numeric functions returns a/an ____________ value. -
ANSWER null



TIME values are formatted using the _______________ function. - ANSWER TIME_FORMAT



Adds a specified number of date parts to a date using the ______________ function. -
ANSWER DATE_ADD



The ___________ function returns the string with any leading spaces removed. - ANSWER

Document information

Uploaded on
December 4, 2024
Number of pages
50
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
£10.18

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Easton
3.9
(120)
Sold
585
Followers
221
Items
28043
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions