
ICT285 PASS Week 4
Authored by Jason Holloway
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for creating a table?
NEW TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
CREATE table_name TABLE (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
NEW table_name TABLE (
column1 datatype,
column2 datatype,
column3 datatype,
....
);
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to make values for the LastName attribute never equal to NULL in the CREATE TABLE statement?
LastName CHAR(25) NOT NULL
LastName CHAR(25) NEVER NULL
LastName CHAR(25) NULL
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you make WorkID a primary key in the CREATE TABLE statement?
CONSTRAINT WorkID PRIMARY KEY
CONSTRAINT PRIMARY KEY(WorkID)
CONSTRAINT WorkPK PRIMARY KEY(WorkID)
PRIMARY KEY(WorkID)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you make ArtistID in the WORK table a foreign key for ArtistID in the ARTIST table?
CONSTRAINT ArtistFK FOREIGN KEY(ArtistID) REFERENCES tutorials.ARTIST(ArtistID)
CONSTRAINT ArtistFK FOREIGN KEY REFERENCES tutorials.ARTIST(ArtistID)
CONSTRAINT ArtistFK FOREIGN KEY (ArtistID) REFERENCES (ArtistID)
CONSTRAINT FOREIGN KEY(ArtistID) REFERENCES tutorials.ARTIST(ArtistID)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the CREATE TABLE statement, how can you add a constraint to ensure DateOfBirth values are between 1900 and 2100?
CONSTRAINT CHECK ((DateOfBirth >= 1900) AND (DateOfBirth <=2100))
CONSTRAINT ValidBirthYear CHECK ((DateOfBirth >= 1900) AND (DateOfBirth <=2100))
CONSTRAINT ValidBirthYear CHECK ((DateOfBirth >= 1900) OR (DateOfBirth <=2100))
CONSTRAINT ValidBirthYear ((DateOfBirth >= 1900) OR (DateOfBirth <=2100))
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the CREATE TABLE statement, how can you add a constraint to ensure Nationality values can only be French or German?
CONSTRAINT CHECK
(Nationality ON ('French', 'German'))
CONSTRAINT NationalityValues CHECK
(Nationality EXISTS ('French', 'German'))
CONSTRAINT Nationality IN ('French', 'German'))
CONSTRAINT NationalityValues CHECK
(Nationality IN ('French', 'German'))
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for inserting data into a table?
INSERT table_name (column1, column2, column3, ...) INTO
VALUES (value1, value2, value3, ...);
INSERT VALUES (value1, value2, value3, ...) INTO table_name (column1, column2, column3, ...);
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
INSERT (value1, value2, value3, ...) INTO table_name (column1, column2, column3, ...);
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Exploring Portfolio Strategies and Analysis
Quiz
•
University
15 questions
Computer Networks Assignment : 1
Quiz
•
University
15 questions
python basics
Quiz
•
11th Grade - University
20 questions
techy quiz
Quiz
•
University
15 questions
Microsoft Excel
Quiz
•
University
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
15 questions
DBMS LAB QUIZ
Quiz
•
University
16 questions
Quiz on List and Tuples
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University