
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
ICT Short Quiz
Quiz
•
University
14 questions
Guess the Video Game Characters 8
Quiz
•
KG - Professional Dev...
15 questions
UH Informatika Semester 2
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
15 questions
HTML Quiz
Quiz
•
11th Grade - University
15 questions
ລະບົບຖານຂໍ້ມູນ ທົດສອບ1
Quiz
•
University
15 questions
Grade 8 End of Unit Revision
Quiz
•
8th Grade - University
16 questions
LA3.C3: Variables
Quiz
•
9th Grade - University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University