
ICT285 PASS Week 4
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Jason Holloway
Used 2+ times
FREE Resource
Enhance your content in a minute
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, ...);
Create a free account and access millions of resources
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
15 questions
Internet Basics
Quiz
•
5th Grade - University
15 questions
JavaScript
Quiz
•
University
20 questions
DBMS Quiz
Quiz
•
University
20 questions
STS Informatika
Quiz
•
10th Grade - University
20 questions
The Internet (ISP)
Quiz
•
12th Grade - University
20 questions
Quiz Harian Gdevelop MPK
Quiz
•
University
15 questions
Exception handling -oracle plsql
Quiz
•
University
20 questions
UTS Audit TI
Quiz
•
University
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
34 questions
Unit 5 Review - The Middle Ages in Europe-B
Quiz
•
9th Grade - University
26 questions
Day2 classwork: Permutation and combination
Quiz
•
2nd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
