100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

INF3707 Assignment 2 2024 memo questions are the same

Rating
5,0
(1)
Sold
6
Pages
27
Uploaded on
26-05-2024
Written in
2023/2024

INF3707 Assignment 2 2024 memo questions are the same











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
May 26, 2024
Number of pages
27
Written in
2023/2024
Type
Other
Person
Unknown

Subjects

Content preview

INF3707-24-Y  Welcome Message  Assessment 2

QUIZ




Started on Sunday, 19 May 2024, 8:30 AM
State Finished
Completed on Tuesday, 21 May 2024, 7:20 PM
Time taken 2 days 10 hours
Marks 45.00/51.00
Grade 88.24 out of 100.00


Question 1
Correct

Mark 1.00 out of 1.00




Name Null? Type

--------- ----- ------------

GIFT VARCHAR2(15)

MINRETAIL NUMBER(5,2)
MAXRETAIL NUMBER(5,2)

Based on the structure of the PROMOTION table, which of the following
commands will add a PRIMARY KEY constraint to the GIFT column? ​


1. CREATE constraint promo_pk (gift VARCHAR2(15) PRIMARY KEY;

2.
ALTER TABLE promotion MODIFY constraint promo_pk (gift PRIMARY
KEY);

3. ALTER TABLE promotion SET constraint promo_pk PRIMARY KEY gift;

4. 
ALTER TABLE promotion ADD constraint promo_pk PRIMARY
KEY(gift);




Your answer is correct.
The correct answer is:


ALTER TABLE promotion ADD constraint promo_pk PRIMARY KEY(gift);

,Question 2

Incorrect

Mark 0.00 out of 1.00




If a column alias contains a blank space, it must be enclosed in __________.




1. Single quotation marks (' '). 

2. Asterisks (* *).

3. Percent signs (% %).

4. Double quotation marks (" ").




Your answer is incorrect.
If a column has an alias that has spaces between the words, it should be
enclosed in a double quotation marks (" ").

The correct answer is:
Double quotation marks (" ").




Question 3
Correct

Mark 1.00 out of 1.00




Which of the following can't be modified with the ALTER SEQUENCE command?


1. INCREMENT BY

2. START WITH 

3. MINVALUE

4. MAXVALUE




Your answer is correct.

The correct answer is:
START WITH

, Question 4

Correct

Mark 1.00 out of 1.00




Which of the following commands will increase the size of the CITY column in
the CUSTOMERS table from 12 to 20 and increase the size of the LASTNAME
column from 10 to 14?




1. ALTER TABLE customers
MODIFY (city VARCHAR2(+8), lastname VARCHAR2(+4));

2. ALTER TABLE customers 
MODIFY (city VARCHAR2(20), lastname VARCHAR2(14));

3. ALTER TABLE customers
MODIFY (city (+8), lastname (+4));

4. ALTER TABLE customers
MODIFY (city (20), lastname (14));




Your answer is correct.

ALTER TABLE customers
MODIFY (city VARCHAR2(20), lastname VARCHAR2(14));



The correct answer is:
ALTER TABLE customers
MODIFY (city VARCHAR2(20), lastname VARCHAR2(14));




Question 5

Correct

Mark 1.00 out of 1.00




Which of the following keywords cannot be used to modify an existing table?


1. ALTER TABLE ......ADD

2. ALTER TABLE.......DROP COLUMN

3. ALTER TABLE ........MODIFY

4. ALTER TABLE ........ AS 




Your answer is correct.

The correct answer is:
ALTER TABLE ........ AS

Reviews from verified buyers

Showing all reviews
1 year ago

5,0

1 reviews

5
1
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

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.
CrystalIndigo University of South Africa (Unisa)
View profile
Follow You need to be logged in order to follow users or courses
Sold
486
Member since
5 year
Number of followers
226
Documents
73
Last sold
2 months ago
CrystalIndigo Solutions

providing all solutions to all computer science modules

4,1

51 reviews

5
27
4
13
3
6
2
1
1
4

Recently viewed by you

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

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions